Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix relatedItemBox: show thumbs, title and desc correctly #72

Merged
merged 1 commit into from
Nov 12, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ Fixes:

- *add item here*

- fix relatedItemBox: show thumbs, title and desc correctly
https://github.com/plone/Products.CMFPlone/issues/1226
[fgrcon]

2.5.16 (2015-10-28)
-------------------
Expand Down
23 changes: 14 additions & 9 deletions plone/app/layout/viewlets/document_relateditems.pt
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,20 @@
item_wf_state item/review_state|python: context_state.workflow_state();
item_wf_state_class python: 'state-' + normalizeString(item_wf_state);
item_url item/getURL|item/absolute_url;
item_url python:(item_type in use_view_action) and item_url+'/view' or item_url"
tal:attributes="class item_type_class">
<a href="" class=""
tal:attributes="href item_url;
title desc;
class string:$item_wf_state_class"
tal:content="item/pretty_title_or_id">
Related Item
</a>
item_url python:(item_type in use_view_action) and item_url+'/view' or item_url;
item_has_image python:item.getIcon"
tal:attributes="title item_type">
<a >
<img class="image-icon"
tal:define="getIcon python:item.getURL() +'/@@images/image/icon'"
tal:condition="item_has_image"
tal:attributes="src string:$getIcon">
<span tal:attributes="class string:$item_type_class $item_wf_state_class url;"
tal:content="item/pretty_title_or_id">
Item Title</span>
<span class="discreet"
tal:content="item/Description">
</a>
</span>
</li>
</ul>
Expand Down