On 28-08-2009 at 08:40:54 GRolf <ger...@pictureparking.com> wrote:

I tried that too - however, the inserted html is escaped so the < are
htmlentities

structure keyword prevents that:

${structure '<div>'}

How can I now best ensure that this header content is nicely parsed
into the header-slot, without having to put metal:fill-slot code in
each and every page template ?

That's one way to do it:

$phptal->setTemplate("page.xhtml");
$phptal->page_body = $phptal->execute();

$phptal->setTemplate("general.xhtml");
echo $phptal->execute();

and in general.xhtml have ${structure page_body}.


Another is to add <tal:block metal:use-macro="…"> using prefilter.

--
regards, Kornel

_______________________________________________
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
http://lists.motion-twin.com/mailman/listinfo/phptal

Reply via email to