Files

56 lines
2.1 KiB
XML
Executable File

<tal:manager replace="structure provider:collage.ContentManager" />
<tal:variables define="plone_view here/@@plone;
toLocalizedTime nocall: plone_view/toLocalizedTime;
isAnon view/isAnon;
mtool view/mtool;
portal_url view/portal_url;
normalizeString view/normalizeString;
site_properties view/site_properties">
<div class="standard-topic"
tal:define="topicContents view/getContents"
tal:condition="topicContents">
<a tal:omit-tag="not: view/isAlias"
tal:attributes="href context/absolute_url">
<h2 metal:define-macro="title"
tal:define="kssview context/@@collage_kss_helper"
tal:attributes="id string:title-${kssview/getUniqueIdentifier};
class python: kssview.getKssClasses('title')"
tal:condition="here/Title">
<span metal:define-slot="inside"
tal:replace="here/Title">title</span>
</h2>
</a>
<p class="description-topic">
<span metal:define-macro="description"
tal:define="view context/@@collage_kss_helper"
tal:attributes="id string:description-${view/getUniqueIdentifier};
class python: view.getKssClasses('description')"
tal:condition="here/Description">
<span metal:define-slot="inside"
tal:replace="here/Description">description</span>
</span>
</p>
<!-- idem vue standard mais avec about -->
<tal:listing i18n:domain="plone"
define="view context/@@collage_kss_helper/getKssView;
getKssClasses python: view.getKssClasses;
templateId string:folder_summary_view;
folderContents topicContents">
<metal:listing-macro use-macro="here/folder_listing_with_about/macros/listing" />
</tal:listing>
<a tal:attributes="href here/absolute_url"
tal:condition="python:len(topicContents) == here.itemCount"
i18n:domain="plone" i18n:translate="box_morelink">More...</a>
</div>
</tal:variables>