<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=US-ASCII">
<TITLE>RE: [pmwiki-users] Couple of Questions....</TITLE>

<META content="MSHTML 6.00.2900.2722" name=GENERATOR></HEAD>
<BODY>
<P><SPAN class=995152015-07102005><FONT size=2>I discovered that the reason my 
GUI Buttons weren't showing up was because I didn't have:<BR></FONT></SPAN><FONT 
face="Courier New">&nbsp;&nbsp;&lt;!--HeaderText--&gt;</FONT><SPAN 
class=995152015-07102005>&nbsp;<BR><FONT size=2>in my template 
file.</FONT></SPAN></P>
<P><SPAN class=995152015-07102005><FONT size=2>Just in case anyone has a similar 
problem.</FONT></SPAN></P>
<P><SPAN class=995152015-07102005><FONT 
size=2>Regards<BR>-Josh</FONT>&nbsp;</SPAN></P>
<P><FONT size=2>-----Original Message-----</FONT> <BR><FONT size=2>From: 
Jonathan Scott Duff [<A href="mailto:duff@pobox.com">mailto:duff@pobox.com</A>] 
</FONT><BR><FONT size=2>Sent: Thursday, October 06, 2005 2:44 PM</FONT> 
<BR><FONT size=2>To: Miller, Joshua</FONT> <BR><FONT size=2>Cc: 
pmwiki-users@pmichaud.com</FONT> <BR><FONT size=2>Subject: Re: [pmwiki-users] 
Couple of Questions....</FONT> </P>
<P><FONT size=2>On Thu, Oct 06, 2005 at 02:22:33PM -0400, Miller, Joshua 
wrote:</FONT> <BR><FONT size=2>&gt; 1.&nbsp; I created a custom template and I 
lost the guibuttons when I edit.&nbsp; </FONT><BR><FONT size=2>&gt; The lines 
for the edit buttons are uncommented in the config file.&nbsp; Is 
</FONT><BR><FONT size=2>&gt; there something else that I need to call to get 
them to display?</FONT> </P>
<P><FONT size=2>Perhaps put $EnableGUIButtons = 1; in your config.php 
file?</FONT> </P>
<P><FONT size=2>&gt; 2.&nbsp; I want to use a conditional tag on the sidebar to 
not display the </FONT><BR><FONT size=2>&gt; link to Main.HomePage when I am on 
Main.HomePage.&nbsp; Can you use NOT </FONT><BR><FONT size=2>&gt; conditions 
when using conditional formatting...something like:</FONT> <BR><FONT size=2>&gt; 
</FONT><BR><FONT size=2>&gt; (:if not name Main.HomePage:)</FONT> <BR><FONT 
size=2>&gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [[Main/HomePage|Home]]</FONT> 
<BR><FONT size=2>&gt; (:if:)</FONT> </P>
<P><FONT size=2>(:if ! name Main.HomePage:)</FONT> <BR><FONT 
size=2>[[Main/HomePage|Home]]</FONT> <BR><FONT size=2>(:if:)</FONT> </P>
<P><FONT size=2>Use "!" rather than "not". Though that won't work as the 
"name"</FONT> <BR><FONT size=2>conditional only checks against the pagename sans 
group and what you want is the pagename *with* the group.</FONT> </P>
<P><FONT size=2>I just looked and there doesn't appear to be a condition for 
checking the full page name.&nbsp; You can add one by putting the following in 
your config.php file:</FONT></P>
<P><FONT size=2>$Conditions['fullname'] = 
"FmtPageName('\$FullName',\$pagename)==\$condparm";</FONT> </P>
<P><FONT size=2>Which would allow you to say:</FONT> </P>
<P><FONT size=2>(:if ! fullname Main.HomePage:)</FONT> <BR><FONT 
size=2>[[Main/HomePage|Home]]</FONT> <BR><FONT size=2>(:if:)</FONT> </P>
<P><FONT size=2>Though I guess you could use the "match" conditional without any 
modification to config.php:</FONT> </P>
<P><FONT size=2>(:if ! match Main.HomePage:)</FONT> <BR><FONT 
size=2>[[Main/HomePage|Home]]</FONT> <BR><FONT size=2>(:if:)</FONT> </P>
<P><FONT size=2>-Scott</FONT> <BR><FONT size=2>--</FONT> <BR><FONT 
size=2>Jonathan Scott Duff</FONT> <BR><FONT size=2>duff@pobox.com</FONT> 
</P></BODY></HTML>