[pmwiki-users] Conditional markup question
sti at pooq.com
sti at pooq.com
Tue Jan 22 13:40:12 CST 2008
Jan Erik Moström wrote:
> Second question for today: I'm creating my own skin and I want
> to have a conditional markup, I only want to see the page
> actions if I'm logged in. I looked at the ConditionalMarkup page
> and as far as I understand I should be able to write
>
> (:if authid:)
> <!--PageActionsFmt-->
> <!--wiki:$SiteGroup.PageActions-->
> (:ifend:)
>
> in my template file. But I'm doing something wrong since this
> gives me
>
> (:if authid:)
> + View
> + Edit
> + History
> + Print
> (:ifend:)
>
> So I'm obviously missing something, but what?
Standard PmWiki markup doesn't work in template files. There are ways to
embed some in templates but it would be a very messy way to do that.
You'd be better off just editing the Site.PageActions page and putting
(:if authid:) as a condition there.
More information about the pmwiki-users
mailing list