Freemarker support for ccm-cms-types-contact and ccm-cms-types-address
git-svn-id: https://svn.libreccm.org/ccm/trunk@5964 8810af33-2d31-482b-a856-94f89814c4dfmaster
parent
42ed90df4f
commit
d60270bcf5
|
|
@ -0,0 +1,26 @@
|
||||||
|
<#ftl ns_prefixes={
|
||||||
|
"bebop":"http://www.arsdigita.com/bebop/1.0",
|
||||||
|
"cms":"http://www.arsdigita.com/cms/1.0",
|
||||||
|
"nav":"http://ccm.redhat.com/navigation",
|
||||||
|
"ui": "http://www.arsdigita.com/ui/1.0"}
|
||||||
|
>
|
||||||
|
|
||||||
|
<#function getCity item>
|
||||||
|
<#return item["./city"]>
|
||||||
|
</#function>
|
||||||
|
|
||||||
|
<#function getPostalCode item>
|
||||||
|
<#return item["./postalCode"]>
|
||||||
|
</#function>
|
||||||
|
|
||||||
|
<#function getState item>
|
||||||
|
<#return item["./state"]>
|
||||||
|
</#function>
|
||||||
|
|
||||||
|
<#function getCountry item>
|
||||||
|
<#return item["./country"]>
|
||||||
|
</#function>
|
||||||
|
|
||||||
|
<#function getIsoCountryCode item>
|
||||||
|
<#return item["./isoCountryCode"]>
|
||||||
|
</#function>
|
||||||
|
|
@ -0,0 +1,31 @@
|
||||||
|
<#ftl ns_prefixes={
|
||||||
|
"bebop":"http://www.arsdigita.com/bebop/1.0",
|
||||||
|
"cms":"http://www.arsdigita.com/cms/1.0",
|
||||||
|
"nav":"http://ccm.redhat.com/navigation",
|
||||||
|
"ui": "http://www.arsdigita.com/ui/1.0"}
|
||||||
|
>
|
||||||
|
|
||||||
|
<#function getAddress item>
|
||||||
|
<#return item["./address/address"]>
|
||||||
|
</#function>
|
||||||
|
|
||||||
|
<#function getPerson item>
|
||||||
|
<#return item["./person"]>
|
||||||
|
</#function>
|
||||||
|
|
||||||
|
<#function getContactEntries item>
|
||||||
|
<#return item["./contactentries"]>
|
||||||
|
</#function>
|
||||||
|
|
||||||
|
<#function getContactEntry item keyId>
|
||||||
|
<#return item["./contactentries[keyId=${keyId}]"]>
|
||||||
|
<#/function>
|
||||||
|
|
||||||
|
<#function getContactEntryLabel entry>
|
||||||
|
<#return item["./key"]>
|
||||||
|
</#function>
|
||||||
|
|
||||||
|
<#function getContactEntryValue entry>
|
||||||
|
<#return item["./value"]>
|
||||||
|
</#function>
|
||||||
|
|
||||||
Loading…
Reference in New Issue