mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
- extracting utility methods from sample website into generalized extension functions that can be used from xsl, freemarker (i hope), and jsp. they all use AVMRemote to access data and each context has it's own adapter. - implemented callout functions from xsl. able to load multiple documents and traverse them. - removed QNames from TemplatingService and added them to WCMModel. this will break edit on any existing assets - you'll have to create new ones that have the right properties. still not happy with model since besides not having child associations in place, i don't have a way of differentiating between the generated xmls and the other generated assets. major bug. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@4138 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
134 lines
4.4 KiB
XML
134 lines
4.4 KiB
XML
<model name="wcm:wcmmodel" xmlns="http://www.alfresco.org/model/dictionary/1.0">
|
|
|
|
<description>WCM Specific Types</description>
|
|
<author>Alfresco</author>
|
|
<published>2006-10-06</published>
|
|
<version>1.0</version>
|
|
|
|
<imports>
|
|
<import uri="http://www.alfresco.org/model/dictionary/1.0" prefix="d"/>
|
|
<import uri="http://www.alfresco.org/model/content/1.0" prefix="cm"/>
|
|
</imports>
|
|
|
|
<namespaces>
|
|
<namespace uri="http://www.alfresco.org/model/wcmmodel/1.0" prefix="wcm"/>
|
|
</namespaces>
|
|
|
|
<types>
|
|
<!-- Consider this an abstract type for most purposes. -->
|
|
<type name="wcm:avmcontent">
|
|
<title>AVM Content</title>
|
|
<parent>cm:content</parent>
|
|
</type>
|
|
|
|
<type name="wcm:avmplaincontent">
|
|
<title>AVM Plain content</title>
|
|
<parent>wcm:avmcontent</parent>
|
|
</type>
|
|
|
|
<type name="wcm:avmlayeredcontent">
|
|
<title>AVM Layered Content</title>
|
|
<parent>cm:content</parent>
|
|
<properties>
|
|
<property name="wcm:avmfileindirection">
|
|
<title>File Layer Indirection</title>
|
|
<type>d:noderef</type>
|
|
<mandatory>true</mandatory>
|
|
</property>
|
|
</properties>
|
|
</type>
|
|
|
|
<!-- Consider this abstract for most purposes. -->
|
|
<type name="wcm:avmfolder">
|
|
<title>AVM Folder</title>
|
|
<parent>cm:folder</parent>
|
|
</type>
|
|
|
|
<type name="wcm:avmplainfolder">
|
|
<title>AVM Plain Folder</title>
|
|
<parent>wcm:avmfolder</parent>
|
|
</type>
|
|
|
|
<type name="wcm:avmlayeredfolder">
|
|
<title>AVM Layered Folder</title>
|
|
<parent>wcm:avmfolder</parent>
|
|
<properties>
|
|
<property name="wcm:avmdirindirection">
|
|
<title>Directory Layer Indirection</title>
|
|
<type>d:noderef</type>
|
|
<mandatory>true</mandatory>
|
|
</property>
|
|
</properties>
|
|
</type>
|
|
</types>
|
|
|
|
<aspects>
|
|
|
|
<!-- An XForms capture template aspect. -->
|
|
<aspect name="wcm:template">
|
|
<title>XForms Template</title>
|
|
<properties>
|
|
<property name="wcm:schemaroottagname">
|
|
<title>Schema Root Tag Name</title>
|
|
<type>d:text</type>
|
|
<mandatory>true</mandatory>
|
|
</property>
|
|
</properties>
|
|
<associations>
|
|
<association name="wcm:templateoutputmethods">
|
|
<title>Template Output Methods</title>
|
|
<source>
|
|
<role>wcm:capture</role>
|
|
<mandatory>false</mandatory>
|
|
<many>false</many>
|
|
</source>
|
|
<target>
|
|
<class>wcm:templateoutputmethod</class>
|
|
<role>wcm:presentation</role>
|
|
<mandatory>false</mandatory>
|
|
<many>true</many>
|
|
</target>
|
|
</association>
|
|
</associations>
|
|
</aspect>
|
|
|
|
<!-- An XML to something else transformer. -->
|
|
<aspect name="wcm:templateoutputmethod">
|
|
<title>Template Output Method</title>
|
|
<properties>
|
|
<property name="wcm:templateoutputmethodtype">
|
|
<title>Type</title>
|
|
<type>d:text</type>
|
|
<mandatory>true</mandatory>
|
|
</property>
|
|
<property name="wcm:templateoutputmethodderivedfileextension">
|
|
<title>File extension for generated assets</title>
|
|
<type>d:text</type>
|
|
<mandatory>true</mandatory>
|
|
</property>
|
|
<property name="wcm:templatesource">
|
|
<title>Template Source</title>
|
|
<type>d:noderef</type>
|
|
<mandatory>true</mandatory>
|
|
</property>
|
|
</properties>
|
|
</aspect>
|
|
|
|
<aspect name="wcm:templatederived">
|
|
<title>XML file generated by a template</title>
|
|
<properties>
|
|
<property name="wcm:templatederivedfrom">
|
|
<title>Template that generated this asset</title>
|
|
<type>d:noderef</type>
|
|
<mandatory>true</mandatory>
|
|
</property>
|
|
<property name="wcm:templatederivedfromname">
|
|
<title>Template that generated this asset</title>
|
|
<type>d:noderef</type>
|
|
<mandatory>true</mandatory>
|
|
</property>
|
|
</properties>
|
|
</aspect>
|
|
</aspects>
|
|
</model>
|