How Are Pages Displayed by the Software?

Article ID: 000026

Problem:

How Are Pages Displayed by the Software?



Solution:

The process of displaying a page within all post 3.0 versions consists of a few steps.

1) You begin with the template. The template should contain a (!MAINBODY!) tag and (!CSSSTYLESHEET!) tags.

2) The page mainbody content is generated. Depending on the function of the page you are trying to access is content generated. If you are browsing the home page that is generated. If you are looking at a specific ad that content is generated.

The page css controls are generated. Again depending on the page function.

The mainbody content is placed within the template of the first step where the (!MAINBODY!) is. The css and javascript content is placed where the (!CSSSTYLESHEET!) tag is. Even if you do not want to display the css generated by the script within the design (you may have it referenced within an external stylesheet) you still need to make sure the (!CSSSTYLESHEET!) tag within the page template so that vital javascript information is placed within the document.

3) Modules are placed within the template. The modules that are "registered" or attached to the current page are built one by one and their respective tags are searched for with the template (in its current state with the mainbody content within it) and replaced with the generated content. Make sure the module is attached to the page and that modules tag is placed within the template that the page uses or the content will not appear.

4) The generated page with all of its content is displayed to the browser.
Filed under: