[triangle-zpug] Question - How to prevent folders showing up as Tabs
cbc at unc.edu
Tue Jan 30 01:12:08 CET 2007
Robert Geiger wrote:
> Not being an expert in TAL
You can become and expert in TAL in about four hours by reading:
> how would one do this?
> <tal:tabs tal:repeat="tab portal_tabs"><li tal:attributes="id
> python:test(selected_portal_tab==tab['id'], 'selected', 'plain');">
with this (probably not ideal) hack:
<tal:tabs tal:repeat="tab portal_tabs"><li tal:attributes="id
python:test(selected_portal_tab==tab['id'], 'selected', 'plain');"
This will display only portal_tabs with a review_state of 'published' or
*no review state at all* (because portal_tabs are action objects which
don't have to refer to workflowed content) using the workflow in effect
on the object being browsed.
You might also want to walk through the machinery behind how "filter on
workflow state" works in Navigation Settings. It affects only the nav
tree and the site map, presumably, and not portal tabs.
office: 332 Chapman Hall phone: (919) 962-4323
mail: Campus Box #3300, UNC-CH, Chapel Hill, NC 27599
More information about the triangle-zpug