SiteLite Documentation


Sequence


What happens

When SiteLite builds a page the algorithm is coarsely as follows:


if (the page option is M)
{
  Get the template for this type of page
  Extract the contents from all the page's blocks
  Insert the blocks in the page according to template tags
  Collect all indexes and collections
}
Set up sequence links, next, previous and home
Place indexs and all tables of contents
Set in all site- or page relevant things from the script file
Do general replace from the replace part of the script file
Control and adjust links to layout resources

This sequence is important if you want to use the Replace mechanism extensively. As you may see, it is possible to do a lot of interesting stuff by putting tags in the contents blocks and use this tags as replace tags. You may somehow consider the pages you build as templates which get their final contents from extensive replaces. If you get too great ideas from this you should consider if it is better to change the original template files.