Nonstandard arrows, that means arrows that don't have the default color (red) or another symbol.
content_overview_template
, create one.content_overview_template
. Go to the auxiliary image block
part of the template. Probably it is at the end of the code.<!-- auxiliary image block --> <tal:block tal:repeat="ob python:here.getAllMapAreas(mapColTypes=['ECHO_collection','ECHO_resource','ECHO_link'])"> <a tal:replace="structure python:here.createMapAux(ob,target='_top',backLink=here.REQUEST.get('backLink',None))"/> </tal:block> <tal:block tal:repeat="ob python:here.getAllMapAreas(mapColTypes=['ECHO_externalLink'])"> <a tal:replace="structure python:here.createMapAux(ob,target='_blank')"/> </tal:block> <!-- end of auxiliary image block -->
The function createMapAux()
can have an attribute arrowsrc
. There you can specify another icon.
The following example uses the image at /permanent/icons/pfeil_gelb (on the foxridge) as icon:
<a tal:replace="structure python:here.createMapAux(ob,arrowsrc='http://nausikaa2.rz-berlin.mpg.de/digitallibrary/servlet/Scaler/?dw=15&fn=/permanent/icons/pfeil_gelb', target='_top',backLink=here.REQUEST.get('backLink',None))"/>
If you want different icons for different ECHO objects, you have to create more tal:block
statements. The function getAllMapAres()
has an attribute mapColTypes
, which specifies the object-type that is taken.
In the next example, for all ECHO_collections, there is created an standard arrow and for all ECHO_links there is created an yellow arrow:
<tal:block tal:repeat="ob python:here.getAllMapAreas(mapColTypes=['ECHO_collection'])"> <a tal:replace="structure python:here.createMapAux(ob,target='_top',backLink=here.REQUEST.get('backLink',None))"/> </tal:block> <tal:block tal:repeat="ob python:here.getAllMapAreas(mapColTypes=['ECHO_link'])"> <a tal:replace="structure python:here.createMapAux(ob,arrowsrc='http://nausikaa2.rz-berlin.mpg.de/digitallibrary/servlet/Scaler/?dw=15&fn=/permanent/icons/pfeil_gelb', target='_top',backLink=here.REQUEST.get('backLink',None))"/> </tal:block>
If you want a differentiation of your objects by name, use the function getLinkId()
to get the id of the object. See the Zope manual and the python manual for more information about writing Zope Page Templates.