[pmwiki-users] Couple of Questions....

Jonathan Scott Duff duff at pobox.com
Thu Oct 6 13:44:18 CDT 2005


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:)
> 	[[Main/HomePage|Home]]
> (:if:)

(:if ! name Main.HomePage:)
[[Main/HomePage|Home]]
(:if:)

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 file:

$Conditions['fullname'] = "FmtPageName('\$FullName',\$pagename)==\$condparm";

Which would allow you to say:

(:if ! fullname Main.HomePage:)
[[Main/HomePage|Home]]
(:if:)

Though I guess you could use the "match" conditional without any
modification to config.php:

(:if ! match Main.HomePage:)
[[Main/HomePage|Home]]
(:if:)

-Scott
-- 
Jonathan Scott Duff
duff at pobox.com




More information about the pmwiki-users mailing list