<!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] How to create Directive for Titles</TITLE>
</HEAD>
<BODY>
<BR>
<P><FONT SIZE=2>Thank you all for your help!</FONT>
</P>
<P><FONT SIZE=2>Now, I am trying to create a button to insert </FONT>
<BR><FONT SIZE=2> (:title TypePageTitle:)</FONT>
<BR><FONT SIZE=2> !{$Title spaced}</FONT>
</P>
<P><FONT SIZE=2>Into the Wiki with a single click.</FONT>
</P>
<P><FONT SIZE=2>My button code in y config file looks like:</FONT>
</P>
<P><FONT SIZE=2>$GUIButtons['h1'] = array(400, '(:title TypePageTitle:)\\n!{$Titlespaced} ', '\\n', '$[Page Title]',</FONT>
<BR><FONT SIZE=2>'$GUIButtonDirUrlFmt/h2.gif"$[Page Title]"');</FONT>
</P>
<P><FONT SIZE=2>As you can guess...the output looks like this:</FONT>
</P>
<P><FONT SIZE=2>(:title TypePageTitle:)</FONT>
<BR><FONT SIZE=2>!{Welcome} Page Title</FONT>
</P>
<P><FONT SIZE=2>What can I put in the GUIButton code to insert $Titlespaced instead of the value of that particular variable?</FONT>
</P>
<P><FONT SIZE=2>Thanks a bunch!!</FONT>
<BR><FONT SIZE=2>Regards,</FONT>
<BR><FONT SIZE=2>-Josh</FONT>
</P>
<BR>
<BR>
<P><FONT SIZE=2>-----Original Message-----</FONT>
<BR><FONT SIZE=2>From: Dominique Faure [<A HREF="mailto:dominique.faure@gmail.com">mailto:dominique.faure@gmail.com</A>] </FONT>
<BR><FONT SIZE=2>Sent: Friday, October 07, 2005 11:37 AM</FONT>
<BR><FONT SIZE=2>To: Miller, Joshua</FONT>
<BR><FONT SIZE=2>Subject: Re: [pmwiki-users] How to create Directive for Titles</FONT>
</P>
<P><FONT SIZE=2>> Is there any way to write a directive that will take the text from the </FONT>
<BR><FONT SIZE=2>> title and display it again so that I can have something like this:</FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>> (:title Title of My Page:)</FONT>
<BR><FONT SIZE=2>> !$pagetitle</FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>You should have a look on</FONT>
<BR><FONT SIZE=2><A HREF="http://www.pmwiki.org/wiki/PmWiki/MarkupVariables" TARGET="_blank">http://www.pmwiki.org/wiki/PmWiki/MarkupVariables</A> and use the {$Titlespaced} markup variable as in:</FONT>
</P>
<P><FONT SIZE=2>(:title My Title:)</FONT>
<BR><FONT SIZE=2>! {$Titlespaced}</FONT>
</P>
<P><FONT SIZE=2>Regards,</FONT>
<BR><FONT SIZE=2>Dom</FONT>
</P>
</BODY>
</HTML>