[Zope] ZPT ==> DTML conversion impossible?
Mon, 8 Jul 2002 17:36:05 +0100
Here's the page template snippet with <br> tags instead of <ul> and
<div tal:define="siblings here/siblings.py">
<p tal:condition="not:siblings"><b>There are no sibling folders here.</b></p>
Everything you want to repeat is inside the inner <div> tag, but by
adding the tal:omit-tag attribute, you tell it not to output the
<div>, only its contents.
Hope that makes sense.
If you still want to do it in dtml, the following will work:
<a href="<dtml-var absolute_url>"><dtml-var title_or_id></a>
Yes, it is shorter, but I think using page templates is more elegant
and is well worth learning.
On Mon, Jul 08, 2002 at 06:05:23PM +0200, Jaroslav Lukesh wrote:
> I was get following code sample from examples (Root
> Folder/Examples/Navigation). It is working standalone, but I need no
> <ul><li> tags, only simple <br> between listed items instead.