<!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] RE: RE: How to create Directive for Titles</TITLE>
</HEAD>
<BODY>

<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: Friday, October 07, 2005 3:53 PM</FONT>
<BR><FONT SIZE=2>To: Dominique Faure</FONT>
<BR><FONT SIZE=2>Cc: chr@home.se; pmwiki-users@pmichaud.com</FONT>
<BR><FONT SIZE=2>Subject: Re: [pmwiki-users] RE: RE: How to create Directive for Titles</FONT>
</P>

<P><FONT SIZE=2>On Fri, Oct 07, 2005 at 09:06:58PM +0200, Dominique Faure wrote:</FONT>
<BR><FONT SIZE=2>&gt; This was not so hard: in fact we only needed something whing could be </FONT>
<BR><FONT SIZE=2>&gt; rendered *at the end* as a '$':</FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; $GUIButtons['h1'] = array(400,</FONT>
<BR><FONT SIZE=2>&gt;&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!{&amp;#36;Titlespaced} ',</FONT>
<BR><FONT SIZE=2>&gt;&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>&gt;&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>I think you guys mean this:</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; '(: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; ':)\\n!{&amp;#36;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; '$[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; '$GUIButtonDirUrlFmt/h2.gif&quot;$[Page Title]&quot;');</FONT>
</P>

<P><FONT SIZE=2>so that whatever text is highlighted gets used as the title. Also, using {$Titlespaced} doesn't make much sense (to me) if you're typing in the title anyway, so I've replaced it with {$Title}.</FONT></P>

<P><FONT SIZE=2>Though, this seems of limited usefulness as a GUI button. It's a button that you'll use at most once per page whereas the other GUI buttons can be used over and over again throughout the document.</FONT></P>

<P><FONT SIZE=2>It seems like it would be best to just have a specialized markup (as the subject of this thread says) that gets transformed into the appropriate markup on page save. I seem to recall that PmWiki has this ability, but I don't remember how to trigger it off hand.</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>

<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>
<BR>

<P><FONT SIZE=2>Thanks to all that helped.&nbsp; That worked out great!!</FONT>
</P>

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

</BODY>
</HTML>