<!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! 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> -Josh</FONT>
</P>
<P><FONT SIZE=2> </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>> 1. I created a custom template and I lost the guibuttons when I edit. </FONT>
<BR><FONT SIZE=2>> The lines for the edit buttons are uncommented in the config file. Is </FONT>
<BR><FONT SIZE=2>> 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>> 2. I want to use a conditional tag on the sidebar to not display the </FONT>
<BR><FONT SIZE=2>> link to Main.HomePage when I am on Main.HomePage. Can you use NOT </FONT>
<BR><FONT SIZE=2>> conditions when using conditional formatting...something like:</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> (:if not name Main.HomePage:)</FONT>
<BR><FONT SIZE=2>> [[Main/HomePage|Home]]</FONT>
<BR><FONT SIZE=2>> (: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. 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>