The Main Templates
Let's have another look at a couple of comments and highlights. Smarty does allow comments in the templates. Anything between {* and *} will be omitted during the compilation phase as in any decent programming language
main_1.tpl
... wait a moment...
Save the above as
templates/main.tpl.
Here you see that we have a template variable called
sitetitle that we can set if we wish. We also have a few Smarty comments and finally we have two module definitions. The first one will not work as we have not written it yet so let's comment it out:
{* cmsmodule name="dynamic_page" *}
Let's write the sidebar template as well. At this point we will add a couple of module definitions but wisely comment them out as we do not have the modules written yet: When the time comes we will remove the comments, believe me!
sidebar_1.tpl
... wait a moment...
Save the above to templates/sidebar.tpl.
Now it seems that we are in the desperate need for a CSS!