Skip to content

nan

Sections
Personal tools
You are here: Home » How Tos » Portlet that displays Portaltabs   portlet4portaltabs
Log in
No Software Patents!

Under the influence of the patent system and big industry lobbyists, the European Union is on the verge of making a huge mistake: to pass a law that would legalize software patents.

 

Portlet that displays Portaltabs

Document Actions
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:

<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>
Created by nan
Last modified 2005-01-07 10:21 PM
« November 2009 »
Su Mo Tu We Th Fr Sa
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30          
 
 

Powered by Plone

This site conforms to the following standards: