<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2653.12">
<TITLE>RE: [pmwiki-users] RE: How to create Directive for Titles</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2>Christian,</FONT>
</P>

<P><FONT SIZE=2>That didn't work...I still get this:</FONT>
</P>

<P><FONT SIZE=2>(:title TypePageTitle:)</FONT>
<BR><FONT SIZE=2>!{Welcome} Page Title</FONT>
</P>

<P><FONT SIZE=2>I'm going to go through my PHP books and see if I can find something...</FONT>
<BR><FONT SIZE=2>I'll let you know if I do...</FONT>
</P>

<P><FONT SIZE=2>-Josh </FONT>
</P>
<BR>

<P><FONT SIZE=2>-----Original Message-----</FONT>
<BR><FONT SIZE=2>From: chr@home.se [<A HREF="mailto:chr@home.se">mailto:chr@home.se</A>] </FONT>
<BR><FONT SIZE=2>Sent: Friday, October 07, 2005 1:16 PM</FONT>
<BR><FONT SIZE=2>To: pmwiki-users@pmichaud.com</FONT>
<BR><FONT SIZE=2>Subject: [pmwiki-users] RE: How to create Directive for Titles</FONT>
</P>

<P><FONT SIZE=2>On Fri, 7 Oct 2005, Miller, Joshua wrote:</FONT>
</P>

<P><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; Thank you all for your help!</FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; Now, I am trying to create a button to insert&nbsp; (:title TypePageTitle:)&nbsp; </FONT>
<BR><FONT SIZE=2>&gt; !{$Title spaced}</FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; Into the Wiki with a single click.</FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; My button code in y config file looks like:</FONT>
</P>

<P><FONT SIZE=2>Hmm... sounds like you need to quote it somehow. For a general string, e.g. &quot;$Titlespaced&quot; you'd do &quot;\$Titlespaced&quot;. For a string in single quotes this is generally not needed, e.g. '$Titlespaced', but I'm guessing the string below in single quotes is evaluated later on. So try the modified code below (I've inserted '\\' which I hope becomes a '\'):</FONT></P>

<P><FONT SIZE=2>$GUIButtons['h1'] = array(400,</FONT>
<BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '(:title TypePageTitle:)\\n!{\\$Titlespaced} ',</FONT>
<BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '\\n', '$[Page Title]',</FONT>
<BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '$GUIButtonDirUrlFmt/h2.gif&quot;$[Page Title]&quot;');</FONT>
</P>

<P><FONT SIZE=2>Btw, is there some cookpage where all these additional ideas for GUI-buttons could be written down?</FONT>
</P>

<P><FONT SIZE=2>/Christian</FONT>
</P>

<P><FONT SIZE=2>-- </FONT>
<BR><FONT SIZE=2>Christian Ridderström, +46-8-768 39 44&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <A HREF="http://www.md.kth.se/~chr" TARGET="_blank">http://www.md.kth.se/~chr</A></FONT>
</P>
<BR>
<BR>

<P><FONT SIZE=2>_______________________________________________</FONT>
<BR><FONT SIZE=2>pmwiki-users mailing list</FONT>
<BR><FONT SIZE=2>pmwiki-users@pmichaud.com</FONT>
<BR><FONT SIZE=2><A HREF="http://host.pmichaud.com/mailman/listinfo/pmwiki-users" TARGET="_blank">http://host.pmichaud.com/mailman/listinfo/pmwiki-users</A></FONT>
</P>

</BODY>
</HTML>