<!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>> From: pmwiki-users-bounces@pmichaud.com on behalf of Patrick R. Michaud<BR>
> Subject: Re: [pmwiki-users] weird title<BR>
> <BR>
> It's because of the #teasers markup at the end of the page --<BR>
> #teasers is doing the equivalent of<BR>
><BR>
> (:include Main.AboutThisSite lines=5:)<BR>
><BR>
> and that's grabbing the (:title:) directive from Main.AboutThisSite.<BR>
> Since the current implementation causes the last instance of (:title:)<BR>
> to be recognized, that's the one that counts.<BR>
><BR>
> I'm planning to correct this aspect of (:title:), as soon as I<BR>
> figure out what "correct" is. :-)<BR>
<BR>
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. <BR>
<BR>
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>
When any of these photo pages is viewed individually,<BR>
the "right" thing occurs. If there is no description,<BR>
the description section displays the title of the page.<BR>
<BR>
But, when viewed in the pagelist page. 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. This<BR>
is obviously not what I want.<BR>
<BR>
I'm not sure how to solve this, I am sure there are<BR>
several ways. 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. Will the {=$Title} get<BR>
propagated inside of included pages in a pagelist<BR>
template (it didn't with my recipe)?<BR>
<BR>
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. Maybe the suggested absolute "this page" syntax<BR>
would be the right solution, something like {@$Title}?<BR>
<BR>
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>
-Martin<BR>
</FONT>
</P>
</BODY>
</HTML>