[pmwiki-users] Conditional data

Tegan Dowling tmdowling at gmail.com
Wed Apr 5 06:33:04 CDT 2006


On 4/5/06, Octocias <octocias at googlemail.com> wrote:
>
> Hi,
>
> I would like to be able to use ONE wiki page to display EITHER a summary
> or the detail.
>
> Like this:
>
> in the wikipage, I want to say:
>
> if ( page name ends with "summary" )
> {
>     display this: "blah blah blah"
> }
> else
> {
>     display this chunk of content.
> }
>
> The problem is... I will be INCLUDING those wiki pages, so that means the
> file names will be the HOST's file name, not the included filename.
>
> Any suggestions of how I can get around this? Seems it would be cool if I
> could pass a variable to the page.
>

Try (:if name *summary:)
(:include summarysource:)(:if ! name *summary:)
(:include fulltext:)(:ifend:)

Maybe?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/pmwiki-users/attachments/20060405/d523e363/attachment.html 


More information about the pmwiki-users mailing list