Loading...
 
Skip to main content

Features / Usability


Categories in Module

I'm just starting to work with Tiki and learn PHP. I want to use Tiki as a content management system, but I am trying to modify the articles system to better facilitate the design and structure I want.

Like I said, I'm just starting to work with this. I wanted to put the category browsing page (tiki-browse_categories.tpl) into a module on the left. I stripped it of a lot of stuff because I just wanted it to display the categories. It displays correctly when I call the page from the "categories" link in the menu. However, when I put the same code into a module, none of the Smarty tags {} work. Specifically, {$tree} and {$path}{/tr}.

What do I need to do to get these to output correctly in a module?

The page is here: http://65.109.243.122/site/tiki-browse_categories.phpQuestion and the top module on the left is the one with the same

Thanks.

you can't use smarty syntax directly in a module
You have to write a smarty block for that.
ex: lib/smarty_tiki/block_translation.php