Skip to content


Subversion checkout URL

You can clone with
Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: erral/collective.portlet.ngcollection
base: 6d245524f3
head fork: erral/collective.portlet.ngcollection
compare: 8951d35564
  • 3 commits
  • 1 file changed
  • 0 commit comments
  • 1 contributor
Showing with 10 additions and 4 deletions.
  1. +10 −4 collective/portlet/ngcollection/
14 collective/portlet/ngcollection/
@@ -3,7 +3,9 @@
tal:define="collection_url view/collection_url;
plone_view context/@@plone;
toLocalizedTime nocall:plone_view/toLocalizedTime;
- getIcon nocall:plone_view/getIcon;">
+ viewActions here/portal_properties/site_properties/typesUseViewActionInListings|python:();
+ getIcon nocall:plone_view/getIcon;"
+ tal:attributes="class string:portlet portletCollection ${view/css_class}">
<dt class="portletHeader">
<span class="portletTopLeft"></span>
@@ -16,11 +18,14 @@
<tal:events tal:repeat="obj view/results">
<dd class="portletItem"
tal:define="oddrow repeat/obj/odd;
+ useView python:obj.portal_type in viewActions;
+ itemUrl python:useView and obj.getURL() + '/view' or obj.getURL();
item_icon python:getIcon(obj);"
tal:attributes="class python:oddrow and 'portletItem even' or 'portletItem odd'">
<a href="#"
- tal:attributes="href obj/getURL;
+ tal:attributes="href itemUrl;
title obj/Description">
<img tal:replace="structure item_icon/html_tag" />
<span tal:replace="obj/pretty_title_or_id">
@@ -39,9 +44,10 @@
<span class="portletBottomLeft"></span>
<a tal:attributes="href collection_url"
- tal:content="structure view/show_more_label">
+ tal:content="structure view/show_more_label"
+ i18n:translate="more_url">
- </a>
+ </a>
<span class="portletBottomRight"></span>

No commit comments for this range

Something went wrong with that request. Please try again.