Loading...
 
 Error
  • Contact the site administrator. The index needs rebuilding.
Features / Usability

Features / Usability


Re: Custom module parameters

posts: 3665 United States

The nopage parameter works only for wiki pages, that's why things like nopage[]=forum8 won't work.

If you only want the module to appear on the "home" page of the forum, I think you're going to have to use a smarty expression to evaluate the specific Tiki template being used. For example:

Copy to clipboard
{if $mid eq 'tiki-view_forum.tpl'} {module module="NameOfModuleToDisplay"} {/if}

 

This would display the module NameOfModuleToDislay only when Tiki displays the "home" page of a forum (such as https://tiki.org/tiki-view_forum.php?forumId=4) but not when display a post or thread (such as https://tiki.org/tiki-view_forum_thread.php?comments_parentId=57062).

Alternatively, you could customize the template TPL (tiki_view_forum.tpl) directly, and build a set of if statements.

HTH,

- Rick  |  My Tiki BlogMy Tiki UserPage

Why be a dummy? Get smarty! TikiForSmarties.com
Tiki for Smarties, your source for the best (and only) Tiki books, guides, and tutorials.
There are no comments at this time.