Menu

sm type tag: htmltitle

2002-10-31
2003-07-31
  • Darryl Cousins

    Darryl Cousins - 2002-10-31

    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

     
    • Mattias Segnestam

      Trying the same thing and the <title> stays empty.

      Same versions, on Windows

       
    • Darryl Cousins

      Darryl Cousins - 2002-10-31

      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

       
    • David Weinraub

      David Weinraub - 2003-07-31

      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

       

Log in to post a comment.

MongoDB Logo MongoDB