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"/>