<!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 6.5.7233.28">
<TITLE>RE: [pmwiki-users] weird title</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=2>&gt; From: pmwiki-users-bounces@pmichaud.com on behalf of Patrick R. Michaud<BR>
&gt; Subject: Re: [pmwiki-users] weird title<BR>
&gt;&nbsp;<BR>
&gt; It's because of the #teasers markup at the end of the page --<BR>
&gt; #teasers is doing the equivalent of<BR>
&gt;<BR>
&gt;&nbsp;&nbsp;&nbsp;&nbsp; (:include Main.AboutThisSite lines=5:)<BR>
&gt;<BR>
&gt; and that's grabbing the (:title:) directive from Main.AboutThisSite.<BR>
&gt; Since the current implementation causes the last instance of (:title:)<BR>
&gt; to be recognized, that's the one that counts.<BR>
&gt;<BR>
&gt; I'm planning to correct this aspect of (:title:), as soon as I<BR>
&gt; figure out what &quot;correct&quot; is.&nbsp; :-)<BR>
<BR>
&nbsp; I'm not sure what correct is either in this case, but<BR>
I can describe a scenario that I currently have that I<BR>
am not pleased with.&nbsp;<BR>
<BR>
&nbsp; I use a pagelist to include a series of photo pages.<BR>
On each photo page I define a title using (:title:).<BR>
I also have a #description section on each photo page<BR>
in which I put {$Title} as a default description<BR>
which will be replaced in some cases with a lengthier<BR>
description.<BR>
<BR>
&nbsp; When any of these photo pages is viewed individually,<BR>
the &quot;right&quot; thing occurs.&nbsp; If there is no description,<BR>
the description section displays the title of the page.<BR>
<BR>
&nbsp; But, when viewed in the pagelist page.&nbsp; The<BR>
description in each photo page that does not have a<BR>
real description (and therefore simply contains<BR>
{$Title}), displays the last title processed.&nbsp; This<BR>
is obviously not what I want.<BR>
<BR>
&nbsp; I'm not sure how to solve this, I am sure there are<BR>
several ways.&nbsp; I have not experimented yet with the<BR>
new pagelist code, but maybe all that is needed is for<BR>
me to use {=$Title} instead of {$Title} in each of my<BR>
description sections.&nbsp; Will the {=$Title} get<BR>
propagated inside of included pages in a pagelist<BR>
template (it didn't with my recipe)?<BR>
<BR>
&nbsp; If this works, it would solve the problem when<BR>
photo pages are included from pagelists, but it would<BR>
not solve it if they were manually included from other<BR>
pages.&nbsp; Maybe the suggested absolute &quot;this page&quot; syntax<BR>
would be the right solution, something like {@$Title}?<BR>
<BR>
&nbsp; Lastly, as someone else already did, to correct the<BR>
pagelist page's title, putting the (:title:) directive<BR>
at the end of the page is a currently a work around,<BR>
<BR>
&nbsp; -Martin<BR>
</FONT>
</P>

</BODY>
</HTML>