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

Miller, Joshua 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
didn't have:
  <!--HeaderText--> 
in my template file.

Just in case anyone has a similar problem.

Regards
-Josh 

-----Original Message----- 
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:) 
>       [[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 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/pmwiki-users/attachments/20051007/2b425159/attachment.html 


More information about the pmwiki-users mailing list