Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#12 Error in portletCategories macro (SimpleBlog_macros)

open
SimpleBlog (9)
5
2005-01-11
2005-01-11
No

Because default call of portletCategories occurs
*after* calling portletRecent, the value of "toggle" is
normally set. However, if you want portletCategories to
appear first, you get an error.

Incorrect code:
<tal:toggle tal:define="global toggle python:toggle or 0"/>

Corrected code:
<tal:toggle tal:define="global toggle toggle | python:0"/>

Discussion