Plone Action Icons at the Bottom
by
Harald Hoyer
—
last modified
Oct 23, 2007 09:53
Howto show small icons for the document actions
/Plone/portal_view_customizations -> zope.interface.interface-plone.abovecontenttitle.documentactions [Customize]
<div class="visualClear"><!-- --></div>
<div i18n:domain="plone"
class="documentActions">
<tal:docactions tal:condition="view/actions">
<h5 class="hiddenStructure" i18n:translate="heading_document_actions">Document Actions</h5>
<ul tal:define="normalizeString nocall: context/@@plone/normalizeString">
<tal:actions repeat="daction view/actions">
<li tal:attributes="id python:'document-action-' + normalizeString(daction['id'])">
Here is the modified part:
<a href=""
tal:attributes="href daction/url;
title daction/description">
<img tal:condition="daction/icon" tal:attributes="src daction/icon; alt daction/title; title daction/title"/>
<tal:action tal:condition="not:daction/icon" tal:content="daction/title" i18n:translate="">
Action name
</tal:action>
</a>
</li>
</tal:actions>
</ul>
</tal:docactions>
<div tal:replace="structure provider:plone.documentactions" />
</div>
Now you can add Icons to <instance>/portal_actionicons
Harald Hoyer

thank you
To spare other people's troubles, please consider adding an explanation the last step ("...add icons to ...").
I was wondering if a similar technique can be used to place icons at the top, to restore Plone 2 default behavior.
Please advise.
Thanks a gain.