diff --git a/ccm-cms-types-address/web/themes/freemarker/ccm-cms-types-address.ftl b/ccm-cms-types-address/web/themes/freemarker/ccm-cms-types-address.ftl new file mode 100644 index 000000000..86ca61f4e --- /dev/null +++ b/ccm-cms-types-address/web/themes/freemarker/ccm-cms-types-address.ftl @@ -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 getPostalCode item> + <#return item["./postalCode"]> + + +<#function getState item> + <#return item["./state"]> + + +<#function getCountry item> + <#return item["./country"]> + + +<#function getIsoCountryCode item> + <#return item["./isoCountryCode"]> + \ No newline at end of file diff --git a/ccm-cms-types-contact/web/themes/freemarker/ccm-cms-types-contact.ftl b/ccm-cms-types-contact/web/themes/freemarker/ccm-cms-types-contact.ftl new file mode 100644 index 000000000..3cd82fff5 --- /dev/null +++ b/ccm-cms-types-contact/web/themes/freemarker/ccm-cms-types-contact.ftl @@ -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 getPerson item> + <#return item["./person"]> + + +<#function getContactEntries item> + <#return item["./contactentries"]> + + +<#function getContactEntry item keyId> + <#return item["./contactentries[keyId=${keyId}]"]> +<#/function> + +<#function getContactEntryLabel entry> + <#return item["./key"]> + + +<#function getContactEntryValue entry> + <#return item["./value"]> + +