Portlet that displays Portaltabs
If you do not want the Portaltabs on top of your Plonesite but want to display the Links at the slots this is for you
This Howto puts the Portaltabs into a Portlet:
Create a new Pagetemplate 'portlet_portaltabs' in your custom folder:
Create a new Pagetemplate 'portlet_portaltabs' in your custom folder:
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"
i18n:domain="plone">
<body>
<!-- THE SECTION TABS DEFINITION -->
<div metal:define-macro="portlet"
tal:omit-tag=""
tal:define="selected_tabs python:here.selectedTabs(template_id, here);
selected_portal_tab selected_tabs/portal;"
tal:condition="portal_tabs">
<div class="portlet" >
<h5 i18n:translate="heading_sections">Sections</h5>
<div class="portletBody">
<ul >
<tal:tabs tal:repeat="tab portal_tabs">
<li tal:attributes="id string:portletab-${tab/id};
class python:test(selected_portal_tab==tab['id'], 'selected', 'plain');">
<a href="" class="" tal:attributes="href tab/url;"
accesskey="accesskeys-tabs" i18n:attributes="accesskey" >
<img alt="" src=""
tal:define="actionid tab/id;
icon python:aitool.renderActionIcon('portalTabs_actions', actionid, None);"
tal:condition="icon"
tal:replace="structure icon" />
<tal:block omit-tag="" i18n:translate="">
<span tal:replace="tab/name">Tab Name</span>
</tal:block>
</a>
</li>
</tal:tabs>
</ul>
</div>
</div>
</div>
</body>
</html>
