python - How to access an array with TAL -
i have python file creates array path image , page url
self.banner1 = [self.context.defaultbanner1.filename,self.context.defaultbanner1burl]
i want access within page using tal. have tried without success
<h1 tal:content="view/banner1[0]"></h1>
how access array using tal?
you can't path expression, can use python expression:
<h1 tal:content="python:view.banner1[0]" />
Comments
Post a Comment