Bugfixes for Freemarker theme support
git-svn-id: https://svn.libreccm.org/ccm/trunk@6220 8810af33-2d31-482b-a856-94f89814c4dfmaster
parent
756a66eaab
commit
7837170b4a
|
|
@ -6,7 +6,7 @@
|
|||
>
|
||||
|
||||
<#function getFileAttachments item>
|
||||
<#return item["./fileAttachments"]>
|
||||
<#return item["./fileAttachments"]?sort_by("fileOrder")>
|
||||
</#function>
|
||||
|
||||
<#function getFileType file>
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
<#function getRelatedLinks item linkListName="NONE">
|
||||
|
||||
<#return item["./links[./linkListName='${linkListName}']"]>
|
||||
<#return item["./links[./linkListName='${linkListName}']"]?sort_by("linkOrder")>
|
||||
</#function>
|
||||
|
||||
<#function getLinkType link>
|
||||
|
|
@ -25,7 +25,7 @@
|
|||
</#function>
|
||||
|
||||
<#function getLinkDescription link>
|
||||
<#return link["./linkDescription"]>
|
||||
<#return link["./linkDescription"].@@text>
|
||||
</#function>
|
||||
|
||||
<#function getLinkOrder link>
|
||||
|
|
|
|||
|
|
@ -18,14 +18,14 @@
|
|||
</#function>
|
||||
|
||||
<#function getContactEntry item keyId>
|
||||
<#return item["./contactentries[keyId=${keyId}]"]>
|
||||
<#return item["./contactentries[keyId='${keyId}']"]>
|
||||
</#function>
|
||||
|
||||
<#function getContactEntryLabel entry>
|
||||
<#return item["./key"]>
|
||||
<#return entry["./key"]>
|
||||
</#function>
|
||||
|
||||
<#function getContactEntryValue entry>
|
||||
<#return item["./value"]>
|
||||
<#return entry["./value"]>
|
||||
</#function>
|
||||
|
||||
|
|
|
|||
|
|
@ -25,6 +25,10 @@
|
|||
<#return item["./contacts/contact[./@contactType='${contactType}']/contactentries[./keyId='${entry}']/value"]>
|
||||
</#function>
|
||||
|
||||
<#function getContact item contactType="commonContact">
|
||||
<#return item["./contacts/contact[@contactType='${contactType}']"]>
|
||||
</#function>
|
||||
|
||||
<#function getContactEntries item contactType="commonContact">
|
||||
<#return item["./contacts/contact[@contactType='${contactType}']/contactentries"]>
|
||||
</#function>
|
||||
|
|
|
|||
|
|
@ -77,7 +77,7 @@
|
|||
((com.arsdigita.navigation.ui.object.ComplexObjectList) eventList).getDefinition().setDescendCategories(true);
|
||||
((com.arsdigita.navigation.ui.object.ComplexObjectList) eventList).getDefinition().addOrder("startDate");
|
||||
|
||||
((com.arsdigita.navigation.ui.object.SimpleObjectList) itemList).getRenderer().setPageSize(maxItems);
|
||||
((com.arsdigita.navigation.ui.object.ComplexObjectList) eventList).getRenderer().setPageSize(maxItems);
|
||||
((com.arsdigita.navigation.ui.object.ComplexObjectList) eventList).getRenderer().addAttribute("objectType");
|
||||
((com.arsdigita.navigation.ui.object.ComplexObjectList) eventList).getRenderer().addAttribute("title");
|
||||
((com.arsdigita.navigation.ui.object.ComplexObjectList) eventList).getRenderer().addAttribute("lead");
|
||||
|
|
|
|||
|
|
@ -96,7 +96,7 @@
|
|||
</#function>
|
||||
|
||||
<#function getItemLink item>
|
||||
<#return item["./nav:path"]>
|
||||
<#return item["./nav:path"].@@text>
|
||||
</#function>
|
||||
|
||||
<#function getItemLead item>
|
||||
|
|
|
|||
|
|
@ -68,7 +68,7 @@
|
|||
</#function>
|
||||
|
||||
<#function getProjects data>
|
||||
<#return data["."]>
|
||||
<#return data["./project"]>
|
||||
</#function>
|
||||
|
||||
<#function getProjectId project>
|
||||
|
|
|
|||
Loading…
Reference in New Issue