Loading...
 
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.

Upcoming Events

1)  18 Apr 2024 14:00 GMT-0000
Tiki Roundtable Meeting
2)  16 May 2024 14:00 GMT-0000
Tiki Roundtable Meeting
3)  20 Jun 2024 14:00 GMT-0000
Tiki Roundtable Meeting
4)  18 Jul 2024 14:00 GMT-0000
Tiki Roundtable Meeting
5)  15 Aug 2024 14:00 GMT-0000
Tiki Roundtable Meeting
6)  19 Sep 2024 14:00 GMT-0000
Tiki Roundtable Meeting
7) 
Tiki birthday
8)  17 Oct 2024 14:00 GMT-0000
Tiki Roundtable Meeting
9)  21 Nov 2024 14:00 GMT-0000
Tiki Roundtable Meeting
10)  19 Dec 2024 14:00 GMT-0000
Tiki Roundtable Meeting