So, given a list of pages you would like them to either be rendered if the exist or have nothing inserted. Sounds like a job for the lighty documented ? character in path expressions. Try something like: <div tal:replace="here/?thepage | nothing">Page Content</div> hth, -Casey On Saturday 09 November 2002 09:42 pm, Mark Gibson wrote:
For your consideration:
<span tal:omit-tag="" tal:repeat="thepage python:['pageA','pageB']"> <span tal:condition="nocall:here/thepage | nothing" tal:content="structure here/thepage"></span> </span>
Basicaly, I want to test if 'pageA' exists, and if so, render it. I'd like to do something like tal:condition="nocall:here/$thepage | nothing", but this doesn't seem to work.
Any ideas of how to do this?
Thanks, Mark