82 lines
3.2 KiB
XML
Executable File
82 lines
3.2 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;
|
|
dossierTTM string:thay-tren-mang;
|
|
dossierTBD string:ban-doc-va-dien-dan;
|
|
dossierLu here/getId"
|
|
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>
|
|
|
|
<!-- collection Thay tren mang -->
|
|
<div tal:condition="python:dossierLu == dossierTTM">
|
|
<a href="" tal:attributes="href string:${portal_url}/thay-tren-mang-moi">
|
|
Xem thư mục Thấy trên mạng</a>
|
|
</div>
|
|
<!-- collection Bạn đọc và diễn đàn -->
|
|
<div tal:condition="python:dossierLu == dossierTBD">
|
|
<a href="" tal:attributes="href string:${portal_url}/BanDocVaZD">
|
|
Xem thư mục Bạn đọc và Diễn Đàn </a>
|
|
</div>
|
|
|
|
<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>
|
|
|
|
<!-- avec description
|
|
<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/macros/listing" />
|
|
</tal:listing>
|
|
-->
|
|
|
|
<!-- idem vue standard mais sans description -->
|
|
<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_sans_desc/macros/listing" />
|
|
</tal:listing>
|
|
|
|
<!-- cacher le lien "More"
|
|
<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>
|
|
|