<!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] New Recipe: EditTitle</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2>&nbsp;</FONT>
</P>

<P><FONT SIZE=2>-----Original Message-----</FONT>
<BR><FONT SIZE=2>From: Waylan Limberg [<A HREF="mailto:waylan@gmail.com">mailto:waylan@gmail.com</A>] </FONT>
<BR><FONT SIZE=2>Sent: Tuesday, October 11, 2005 12:26 PM</FONT>
<BR><FONT SIZE=2>To: PmWiki Users</FONT>
<BR><FONT SIZE=2>Subject: [pmwiki-users] New Recipe: EditTitle</FONT>
</P>

<P><FONT SIZE=2>I have just added a new recipe: <A HREF="http://www.pmwiki.org/wiki/Cookbook/EditTitle" TARGET="_blank">http://www.pmwiki.org/wiki/Cookbook/EditTitle</A></FONT>
</P>

<P><FONT SIZE=2>As is explained on that page, the recipe adds an input field to the edit form for editing the pages title. To do this, it strips the &quot;(:title ...&quot; markup from the content and displays the content in the textarea without it. At the same time, it gets the page title from said markup and displays that in the new input field. Upon save, the markup is added back into the page content with the new title. The reasons for that aproach are discussed breifly on the page and have been discussed on the list before as well.</FONT></P>

<P><FONT SIZE=2>Any comments, suggestions, improvements welcome.</FONT>
<BR><FONT SIZE=2>--</FONT>
<BR><FONT SIZE=2>----</FONT>
<BR><FONT SIZE=2>Waylan Limberg</FONT>
<BR><FONT SIZE=2>waylan@gmail.com</FONT>
<BR><FONT SIZE=2>-----------------------------------------------------------</FONT>
</P>
<BR>

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

<P><FONT SIZE=2>Nice script- I think I am going to really like it!</FONT>
<BR><FONT SIZE=2>Two quick things:</FONT>
<BR><FONT SIZE=2>Your file name is: edititle.php (1 t shared by edit and title)</FONT>
<BR><FONT SIZE=2>Your include is:&nbsp;&nbsp; include_once(cookbook/edittitle.php);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (2 t's)</FONT>
</P>

<P><FONT SIZE=2>I would suggest renaming your file to edittitle.php</FONT>
</P>

<P><FONT SIZE=2>Also- on your cookbook page, you are missing the quotes around the include...</FONT>
<BR><FONT SIZE=2>So it should be:</FONT>
<BR><FONT SIZE=2>include_once(&quot;cookbook/edittitle.php&quot;);</FONT>
</P>

<P><FONT SIZE=2>I'll let you know if I notice anything else when I play with it more.</FONT>
</P>

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

</BODY>
</HTML>