<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
It looks like I could do<br>
<br>
&nbsp;&nbsp;&nbsp; $GroupName=PageVar($pagename,'$Group',$pagename);<br>
<br>
instead of <br>
<br>
$pagename=MakePageName($pagename,$pagename);<br>
&nbsp;&nbsp;&nbsp; $GroupName=PageVar($pagename,'$Group');<br>
<br>
Is that true?<br>
<br>
- Henrik<br>
<br>
Henrik Bechmann wrote:
<blockquote cite="mid:BAYC1-PASMTP038BEC957BA85DB442AC688CCB0@CEZ.ICE"
 type="cite">
  <pre wrap="">Hans has pointed out that Pm has an older version of a similar idea at 
<a class="moz-txt-link-freetext" href="http://www.pmwiki.org/wiki/Cookbook/GroupTitle">http://www.pmwiki.org/wiki/Cookbook/GroupTitle</a>, but that was written 
before PTV's were invented, and it doesn't include the [[target|!+]] 
markup which is essential for my application (pagelist templates and the 
like). IAC I've added a cross reference to Pm's version on my recipe page.

But I'm really mostly wanting confirmation that my code is OK. So far it 
looks fairly analogous to Pm's code...

More comments?

- Henrik

Henrik Bechmann wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">All,

I have added a cookbook recipe at 
<a class="moz-txt-link-freetext" href="http://www.pmwiki.org/wiki/Cookbook/GroupTitles">http://www.pmwiki.org/wiki/Cookbook/GroupTitles</a> which creates the 
functionality of (:title:) for groups, so page titles and group titles 
now have exact analogues:

Group titles (with installation of my recipe) have $GroupTitle and 
$GroupTitlespaced page variables,
    and the page link markup [[target|!+]],
    and are set by page text variable entries in Site.GroupTitles
Page titles have $Title and $Titlespaced page variables,
    and the markup [[target|+]],
    and are set by the (:title:) directive

I've actually deployed this, but I'm not at all confident that the code 
(very little) is properly structured.

I'd be very grateful if folks more knowledgeable than I reviewed the 
code implementation and commented.

For example

$pagename=MakePageName($pagename,$pagename);

looks a little suspicious to me.

The code is at <a class="moz-txt-link-freetext" href="http://www.pmwiki.org/pmwiki/uploads/Cookbook/grouptitles.php">http://www.pmwiki.org/pmwiki/uploads/Cookbook/grouptitles.php</a>

Thanks in advance,

- Henrik

  
    </pre>
  </blockquote>
  <pre wrap=""><!---->
  </pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">-- 

Henrik Bechmann
bechmann.ca
Webmaster, celos.ca webhosting services</pre>
</body>
</html>