[pmwiki-users] conditional markup q.

noskule noskule at gmx.net
Thu Mar 9 06:38:28 CST 2006


hi list
I try to do a conditional markup statement do display disscussion- and 
presentationtab . .

I have two (or maby more) Tabs for related pages

[Discussion] [Presentation]

the tabs lives here: 
http://pmwiki.netstreams.org/index.php/Site/RelatedPages

If I click on [Discussion] I would like a [back to Mainpage] tab, so I 
did this:

* (:if ! match -Discussion$:)[[{$Name}-Discussion | Discussion]](:if 
match -Discussion$ :)[[{$BaseName}|back to {$BaseName}]](:if:)
* (:if ! match -Presentation$:)[[{$Name}-Presentation | 
Presentation]](:if match -Presentation$ :)[[{$BaseName}]](:if:)

now I try to avoid the Presentation tab on a discussion page and via 
versa and did try somthing like:

* (:if ! match -Discussion$ || -Presentation$:)[[{$Name}-Discussion | 
Discussion]](:if match -Discussion$ :)[[{$BaseName}|back to 
{$BaseName}]](:if:)
* (:if ! match -Presentation$ || -Discussion$:)[[{$Name}-Presentation | 
Presentation]](:if match -Presentation$ :)[[{$BaseName}]](:if:)

this didnt work. Does somebody have me a hint. One more thing is, with 
more "Related Pages" tabs this system seams not realy smart. So if there 
is an alternativ so just tell my . . .. .



grz nos




More information about the pmwiki-users mailing list