2. Can any module on the page set the title? For example, sometimes you want the html title to reflect the result of the module processing. If so, does the module simply call
$this->addDirective('htmlTitle', 'My Title');
and the SM_Module code will know to propogate the htmlTitle directive up to the containing template?
Until I get this figured, I have fixed titles in my template. Ugh...
Thanks and regards,
David
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
Does anyone else have a bug with the <sm type="htmltitle"> tag? Or is it just me?
function codePlateConfig() {
$this->setMyTemplate('main');
}
function codePlateThink() {
$this->addDirective('htmlTitle','mytitle');
}
That is to say it doesn't accept my directive and is empty.
siteManager-2.4.0-pre1
PHP-4.2.3
Apache-1.3.27
Trying the same thing and the <title> stays empty.
Same versions, on Windows
I'm guessing the problem is in smLayoutTemplate.
I've tied playing with setValidTagTypeList and setExcludeTagTypeList but to no avail.
Wierd is that <sm type="htmlbody"> does print a body tag but <sm type="htmltitle"> does nothing.
Blessings, Darryl
(Kaczordek)
siteManager-2.4.0-pre1
PHP-4.2.3
Apache-1.3.27
MySQL-3.23.51
Linux - Slackware-8.1
Me, too. Similar versions.
The essential questions for me are:
1. What is the calling syntax? Is it:
$this->addDirective('htmlTitle', 'My Title');
Is $this the codePlate?
2. Can any module on the page set the title? For example, sometimes you want the html title to reflect the result of the module processing. If so, does the module simply call
$this->addDirective('htmlTitle', 'My Title');
and the SM_Module code will know to propogate the htmlTitle directive up to the containing template?
Until I get this figured, I have fixed titles in my template. Ugh...
Thanks and regards,
David
see mailing list discussion:
http://marc.theaimsgroup.com/?t=105624261800001&r=1&w=2