Foren / Cotonti / Support / Simple Question

blocks and links navigation?

lukgoh
#36733 7. Januar 2013, 16:51

Also in the administration section of your Cotonti website you will see a link to "Menu slots in tpl-files" somewhere like: www.yourdomain.com/admin.php?m=config&n=edit&o=core&p=menus and you can set your links there. Then you only need to include a {TAG}  in the header or footer tpls. 

For example, if you use the Menu slot #1 which I recommend, you would set your html links in the value box and then use the tag {PHP.cfg.menu1} which will work in any tpl. 

 I still don't quite understand  the tpl feature

One of the reasons Cotonti is so awesome is because it keeps all the PHP (logic) seperate from the HTML and styles using a very smart templating system. The template system uses TPL files to build its template. You will see you have a tpl file for each part of the website, header, footer, index and so on. This way you are never tied to certain html or styles because they are not hard coded in with the logic (PHP). 

The most important thing to remember, as Twiebie said: Your header and footer is always displayed. Only the middle bit changes depending on the page for example:

Header.tpl

Index.tpl or Page.tpl or Users.tpl etc.

Footer.tpl

Luke.