Ok, I done it in some other way:

In my template of website, after define-slot="content" I add block with forum:


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

<metal:block tal:condition="exists:forum">
<div id="forum-cont">

<table id="forum" cellspacing="0" cellpadding="0">
<tr>
   <td id="top" colspan="4">
       <img src="/img/for/top.jpg" onClick="location.href='/forum'"/>
       <span><a href="">Home</a> &raquo; <a href="">Forum</a></span>
   </td>
</tr>

<metal:block metal:define-slot="forumContent"/>

</table>
</div>

<metal:block metal:define-slot="forumFoot"/>
</metal:block>
....
</html>

And, when it is a forum page, I give to phptal $forum variable with 'true' value and template with "forumContent" slot - "content" slot stay empty.

But if somebody will have better idea to add forum, write! :)


cheers,
szymek

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

Reply via email to