[triangle-zpug] Question - How to prevent folders showing up as Tabs
Robert Geiger
robert at geigers.net
Mon Jan 29 21:18:52 CET 2007
Not being an expert in TAL, how would one do this?
I looked at this global_sections.pt.....
<!-- THE SECTION TABS DEFINITION -->
<div metal:define-macro="portal_tabs"
tal:omit-tag=""
tal:define="selected_tabs python:here.selectedTabs('index_html',
here, portal_tabs);
selected_portal_tab selected_tabs/portal;"
tal:condition="portal_tabs">
<h5 class="hiddenStructure"
i18n:translate="heading_sections">Sections</h5>
<ul id="portal-globalnav">
<tal:tabs tal:repeat="tab portal_tabs"><li tal:attributes="id
string:portaltab-${tab/id};
class
python:test(selected_portal_tab==tab['id'], 'selected', 'plain');">
<a href=""
tal:content="tab/name"
tal:attributes="href tab/url;
title tab/description|nothing">
Tab Name
</a></li></tal:tabs>
</ul>
</div>
And looked at the selectedTabs() as well. It was not obvious which one
I should consider modifying...
I'm not yet what you might call a plonista, but I'm willing to learn!
Thanks,
rg
Chris Calloway wrote:
> Robert Geiger wrote:
>> I feel a big DOH! coming on...
>
> If you want some folders to show tabs and not others, you can skin
>
> CMFPlone/skins/plone_templates/global_sections.pt
>
> to filter portal_tabs for only published tabs. Then you can check
> Automatically Generate Tabs, and only published tabs will appear while
> visible tabs remain hidden.
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: robert.vcf
Type: text/x-vcard
Size: 171 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/trizpug/attachments/20070129/404b1aff/attachment.vcf>
More information about the TriZPUG
mailing list