I have website which uses phptal, it is main tempate:

<html metal:define-macro="main">
....
<body>
...
<div metal:define-slot="content"/>
...
</body></html>

And it is some page template:

<html metal:use-macro="inc/main.html/main">
<div metal:fill-slot="content">
This is an expamle
</div>
</html>

And now I want to have a forum (made by me and friendl) in this website, so I wrote forum template:

<html metal:use-macro="inc/main.html/main">
<div metal:fill-slot="content">
<tal:block metal:define-macro="forum">
Head of forum
<tal:block metal:define-slot="forumContent"/>
</tal:block>
</div>
</html>

And some forum-page template:

<tal:block metal:use-macro="pages/forum.html/forum">
<tal:block metal:fill-slot="forumContent">
Table with categories
</tal:block>
</tal:block>

And in php:
$tal=new PHPTAL('inc/main.html');
$tal->setTemplate('pages/forum.html');
$tal->setTemplate('pages/forum/main.html');

And it doesn't work - there is only forum, without "inc/main" template :/ What I done wrong?


cheers!
szymek


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

Reply via email to