I have solved this by using macros instead of just trying to *include*
the TAL snippit.
I wrapped the snippit in a tag like this:
and called it on each tempalte that uses it liek this:
use-macro="context/templates/widgets/template-lister/macros/lister">
Erik Myllymaki wrote:
I am trying to separate out small bits of HTML that are used on many
pages of a site.
In one case I use a secondary navigation on some pages in the right
column that is supposed to look in the containing folder's sub-folders
and list the Page Templates that is finds there.
I create a folder called /templates/widgets and within there I have a
Page Template called template-lister.
Quick Links
Location Title
title
Posting Title
No Postings at this time
If I put this code directly in each Page Template that uses it, it works
fine, but when removed from each Page Template and called like so:
tal:omit-tag="" />
it uses the context of the "/templates/widgets" folder and does not work.
Because this bit of TAL is used on many pages and the style of it
changes often, I really want to pull it out into one place for easy
updating.
I know I am missing something elemental here ...
Thanks for any advice.
___
Zope maillist - Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists - http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )
___
Zope maillist - Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )