[pmwiki-users] Couple of Questions....
web at cityofelmira.net
Fri Oct 7 10:24:14 CDT 2005
I discovered that the reason my GUI Buttons weren't showing up was because I
in my template file.
Just in case anyone has a similar problem.
From: Jonathan Scott Duff [mailto:duff at pobox.com <mailto:duff at pobox.com> ]
Sent: Thursday, October 06, 2005 2:44 PM
To: Miller, Joshua
Cc: pmwiki-users at pmichaud.com
Subject: Re: [pmwiki-users] Couple of Questions....
On Thu, Oct 06, 2005 at 02:22:33PM -0400, Miller, Joshua wrote:
> 1. I created a custom template and I lost the guibuttons when I edit.
> The lines for the edit buttons are uncommented in the config file. Is
> there something else that I need to call to get them to display?
Perhaps put $EnableGUIButtons = 1; in your config.php file?
> 2. I want to use a conditional tag on the sidebar to not display the
> link to Main.HomePage when I am on Main.HomePage. Can you use NOT
> conditions when using conditional formatting...something like:
> (:if not name Main.HomePage:)
(:if ! name Main.HomePage:)
Use "!" rather than "not". Though that won't work as the "name"
conditional only checks against the pagename sans group and what you want is
the pagename *with* the group.
I just looked and there doesn't appear to be a condition for checking the
full page name. You can add one by putting the following in your config.php
Which would allow you to say:
(:if ! fullname Main.HomePage:)
Though I guess you could use the "match" conditional without any
modification to config.php:
(:if ! match Main.HomePage:)
Jonathan Scott Duff
duff at pobox.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the pmwiki-users