PITS /
01362: Allow quoted page names in conditional markup
Summary: Allow quoted page names in conditional markup
Created: 2015-01-17 18:48
Status: Open
Category: Feature
From: simon
Assigned:
Priority: 3
Version: 2.2.71
OS: n/a
Description: Allow page names to be quoted in conditional markup, e.g.
(:if ontrail "trail name spaced" "thispage":)
This is because to enable trails to 'look nice' it is useful to specify the name with spaces.
My use case is
>>comment<< [[#grouptrail]] (:template default wrap=inline trail="{*$Groupspaced}" :) (:template each:) (:if ontrail "{$$trail}" "{=$FullName}":) %comment% do not display trail index page of off trail %% %wikitrail%[[{<$FullName} | {<$Namespaced}]] < [[{$$trail}]] > [[{>$FullName}| {>$Namespaced}]] (:ifend:) [[#grouptrailend]] >>smaller<< (:pagelist group={*$Group} list=all fmt=#grouptrail:) |
Another example of a trail page is "My trail page(#trail#trailend)"
simon January 17, 2015, at 06:49 PM
Currently you can have a second parameter trail="{*$Group}" trailspaced="{*$Groupspaced}"
and use each where appropriate. Alternatively, use only trail="{*$Group}"
and the link like < [[{$$trail}|+]] >
which will make the link display the page title, or even < [[{$$trail}| {{$$trail}.HomePage$Groupspaced} ]] >
. --Petko January 18, 2015, at 12:48 AM