Loading...
 
Themes

Themes


Re: Modify custom code in site identity

Japan

You don't necessarily need to know Smarty syntax to use the custom code area. What do you want to be displayed there? Normal HTML can be used also.

What documentation links are broken, so we can fix them?

-- Gary

Thanks for input on the custom code section.

I'm wanting to put a "banner" type site header at the top of the page. Why might I use the custom code section instead of tiki-top_bar.tpl; is tiki-top_bar literally intended to be only a "bar" or do people use it for the "banner"?

Here are the broken links:

http://doc.tikiwiki.org/tiki-index.php?page=Smarty+Templates&highlight=smarty%20code

http://smarty.php.net/crashcourse.php: Crash Course in Smarty
http://smarty.php.net/manual/en: Smarty Manual

Japan

The advantage of using the custom code section is that you can input HTML via the Tiki interface in your browser. Well, if you have the "edit templates" feature turned on, you can edit templates this way, too, but I generally don't activate that so usually think of template editing as doing the job locally and then transferring the files to the Tiki site.

The Tiki Site Identity/Look & Feel config interface has an explicit banner option, if you just need to display an ad banner. This is quite a bit easier than adding banner code manually to a template.

The tiki-top_bar.tpl file in old versions of Tiki was literally the page-top line of Tiki version info. Then it got a horizontal menu and has more or less been replaced as a place to add new content, since Site Identity was introduced. In many current themes, tiki-top_bar.tpl is strictly for a menu and sometimes a search form.

About the links, the doc.tw.o page link works as far as I can tell. The smarty.php.net links I updated on the doc page; thanks for pointing that out (though the links did lead to a referal page for the new Smarty site so maybe these links weren't broken so much as just a little bent wink ).

-- Gary