<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=US-ASCII">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2653.12">
<TITLE>RE: [pmwiki-users] Couple of Questions....</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2>Scott-</FONT>
</P>

<P><FONT SIZE=2>Your suggestion for Number 2 worked like a charm!&nbsp; Thanks a bunch!</FONT>
</P>

<P><FONT SIZE=2>As for Number 1- I have that in the config file...any other ideas?</FONT>
</P>

<P><FONT SIZE=2>Thanks</FONT>
<BR><FONT SIZE=2>&nbsp;-Josh</FONT>
</P>

<P><FONT SIZE=2>&nbsp;</FONT>
</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 &quot;!&quot; rather than &quot;not&quot;. Though that won't work as the &quot;name&quot;</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'] = &quot;FmtPageName('\$FullName',\$pagename)==\$condparm&quot;;</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 &quot;match&quot; 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>