04-23-2008 06:24 AM
04-23-2008 08:14 AM
04-23-2008 09:31 AM
<model name="my:mynewmodel" xmlns="http://www.alfresco.org/model/dictionary/1.0">
<!– Optional meta-data about the model –>
<description>Example custom Model</description>
<author></author>
<version>1.0</version>
<!– Imports are required to allow references to definitions in other models –>
<imports>
<!– Import Alfresco Dictionary Definitions –>
<import uri="http://www.alfresco.org/model/dictionary/1.0" prefix="d"/>
<!– Import Alfresco Content Domain Model Definitions –>
<import uri="http://www.alfresco.org/model/content/1.0" prefix="cm"/>
</imports>
<!– Introduction of new namespaces defined by this model –>
<!– NOTE: The following namespace my.new.model should be changed to reflect your own namespace –>
<namespaces>
<namespace uri="my.new.model" prefix="my"/>
</namespaces>
<types>
<!– Definition of new Content Type: Standard Operating Procedure –>
<type name="my:sop">
<title>Documento di Progetto Renco</title>
<parent>cm:content</parent>
<properties>
<property name="my:fifDate">
<type>d:date</type>
</property>
<property name="my:publishedDate">
<type>d:datetime</type>
</property>
<property name="my:authorisedBy">
<type>d:text</type>
</property>
</properties>
<associations>
<association name="my:signOff">
<source>
<mandatory>false</mandatory>
<many>false</many>
</source>
<target>
<class>cm:content</class>
<mandatory>false</mandatory>
<many>false</many>
</target>
</association>
<child-association name="my:processSteps">
<source>
<mandatory>false</mandatory>
<many>false</many>
</source>
<target>
<class>cm:content</class>
<mandatory>false</mandatory>
<many>true</many>
</target>
</child-association>
</associations>
</type>
</types>
<aspects>
<!– Definition of new Content Aspect: Image Classification –>
<aspect name="my:imageClassification">
<title>Image Classfication</title>
<properties>
<property name="my:width">
<type>d:int</type>
</property>
<property name="my:height">
<type>d:int</type>
</property>
<property name="my:resolution">
<type>d:int</type>
</property>
</properties>
</aspect>
</aspects>
</model>
04-23-2008 09:55 AM
<#– Records Report - Template to apply to a records space to report on status of records –>
<style>
body {font:small/1.2em arial,helvetica,clean,sans-serif;font:x-small;margin-top: 10px; margin-right: 10px; margin-bottom: 0px; margin-left: 10px;min-width:500px;}
</style>
<#assign datetimeformat="dd MMM yyyy HH:mm">
<#assign currentpath="+PATH:\"${space.qnamePath}//*\"">
<#assign rma="{http://www.alfresco.org/model/record/1.0}">
<#macro debug errcat="" errmsg="">
<#– <tr><th colspan="2">${errcat}</th><td colspan="8">${errmsg}</td></tr> –>
</#macro>
<table width="100%" border="0" cellpadding="1" cellspacing="1">
<#if hasAspect(document, "${rma}record") = 1>
<tr>
<td><b>Record - ${document.properties["rma:recordIdentifier"]} <#if hasAspect(document, "${rma}cutoff") = 1> <font style='color:red'>Cutoff</font></#if></b></td>
</tr>
<tr>
<td><hr></td>
</tr>
<#if hasAspect(document, "${rma}vitalrecord") = 1>
<tr>
<td>
<#if document.properties["rma:nextReviewDate"]?exists>
Vital record due for next review at ${document.properties["rma:nextReviewDate"]?string("dd MMM yyyy HH:mm")}
<#else>
Vital record with no review date set.
</#if>
</td>
</tr>
</#if>
<#if hasAspect(document, "${rma}scheduledCutoff") = 1 && hasAspect(document, "${rma}cutoff") = 0>
<tr>
<td>
<#if document.properties["rma:cutoffDateTime"]?exists>
Scheduled for cutoff at ${document.properties["rma:cutoffDateTime"]?string("dd MMM yyyy HH:mm")}
<#else>
Scheduled for cutoff with no cut off date set.
</#if>
</td>
</tr>
</#if>
<#if hasAspect(document, "${rma}held") = 1>
<tr><td>
<#if document.properties["rma:frozen"]>
This record is frozen
<#else>
<#if document.properties["rma:holdUntil"]?exists>
Held until ${document.properties["rma:holdUntil"]?string("dd MMM yyyy HH:mm")}
<#else>
Held with no held date specified
</#if>
</#if>
</td></tr>
</#if>
<#if hasAspect(document, "${rma}obsolete") = 1>
<tr>
<td>This record is obsolete</td>
</tr>
</#if>
<#if hasAspect(document, "${rma}superseded") = 1>
<tr>
<td>This record has been superseded</td>
</tr>
</#if>
<#if hasAspect(document, "${rma}transfered") = 1>
<tr>
<td>This record has been transfered</td>
</tr>
</#if>
<#else>
<tr>
<td>This template can only be applied to a record</td>
</tr>
</#if>
</table>
04-23-2008 11:11 AM
<table width="100%" border="0" cellpadding="1" cellspacing="1">
<#list space.children as child>
<#if child.isDocument>
<tr>
<td><b>${child.name}</b></td>
<td><b>${child.properties["my:fifDate"]?date}</b></td>
</tr>
</#if>
</#list>
</table>
12-03-2008 01:57 AM
Caused by: freemarker.core.ParseException: Encountered "&" at line 1, column 533 in workspace://SpacesStore/b4f4ad64-ac57-425c-950f-823177b4e6fc.
Was expecting one of:
<STRING_LITERAL> …
<RAW_STRING> …
"false" …
"true" …
<INTEGER> …
<DECIMAL> …
"." …
"+" …
"-" …
"!" …
"[" …
"(" …
"{" …
<ID> …
at freemarker.core.FMParser.generateParseException(FMParser.java:4697)
at freemarker.core.FMParser.jj_consume_token(FMParser.java:4568)
at freemarker.core.FMParser.UnaryExpression(FMParser.java:323)
at freemarker.core.FMParser.MultiplicativeExpression(FMParser.java:435)
at freemarker.core.FMParser.AdditiveExpression(FMParser.java:385)
at freemarker.core.FMParser.RangeExpression(FMParser.java:556)
at freemarker.core.FMParser.RelationalExpression(FMParser.java:511)
at freemarker.core.FMParser.EqualityExpression(FMParser.java:476)<model name="my:mynewmodel" xmlns="http://www.alfresco.org/model/dictionary/1.0">
<!– Optional meta-data about the model –>
<description>Example custom Model</description>
<author></author>
<version>1.0</version>
<!– Imports are required to allow references to definitions in other models –>
<imports>
<!– Import Alfresco Dictionary Definitions –>
<import uri="http://www.alfresco.org/model/dictionary/1.0" prefix="d"/>
<!– Import Alfresco Content Domain Model Definitions –>
<import uri="http://www.alfresco.org/model/content/1.0" prefix="cm"/>
</imports>
<!– Introduction of new namespaces defined by this model –>
<!– NOTE: The following namespace my.new.model should be changed to reflect your own namespace –>
<namespaces>
<namespace uri="my.new.model" prefix="my"/>
</namespaces>
<types>
<!– Definition of new Content Type: Standard Operating Procedure –>
<type name="my:BookSKU">
<title>BooK SKU</title>
<parent>cm:content</parent>
<properties>
<property name="my:fifDate">
<type>d:date</type>
</property>
<property name="my:publishedDate">
<type>d:datetime</type>
</property>
<property name="my:authorisedBy">
<type>d:text</type>
</property>
</properties>
<associations>
<association name="my:signOff">
<source>
<mandatory>false</mandatory>
<many>false</many>
</source>
<target>
<class>cm:content</class>
<mandatory>false</mandatory>
<many>false</many>
</target>
</association>
<child-association name="my:processSteps">
<source>
<mandatory>false</mandatory>
<many>false</many>
</source>
<target>
<class>cm:content</class>
<mandatory>false</mandatory>
<many>true</many>
</target>
</child-association>
</associations>
</type>
</types>
<aspects>
<!– Definition of new Content Aspect: Image Classification –>
<aspect name="my:imageClassification">
<title>Image Classfication</title>
<properties>
<property name="my:width">
<type>d:int</type>
</property>
<property name="my:height">
<type>d:int</type>
</property>
<property name="my:resolution">
<type>d:int</type>
</property>
</properties>
</aspect>
</aspects>
</model>
<table width="100%" border="0" cellpadding="1" cellspacing="1">
<#list space.children as child>
<#if child.isDocument>
<tr>
<td><b>${child.name}</b></td>
<td><b>${child.properties["my:fifDate"]?date}</b></td>
</tr>
</#if>
</#list>
</table>
12-05-2008 11:55 AM
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>
<beans>
<!– Registration of new models –>
<bean id="extension.dictionaryBootstrap" parent="dictionaryModelBootstrap" depends-on="dictionaryBootstrap">
<property name="models">
<list>
<value>alfresco/extension/custom_content.xml</value>
</list>
</property>
</bean>
</beans>
12-08-2008 03:47 AM
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>
<beans>
<!– Registration of new models –>
<bean id="extension.dictionaryBootstrap" parent="dictionaryModelBootstrap" depends-on="dictionaryBootstrap">
<property name="models">
<list>
<value>alfresco/extension/BookSKU.xml</value>
</list>
</property>
</bean>
</beans>
<alfresco-config>
<!– **************************** AV Config Start ************************–>
<!– Make sure that the properties for FTBContent are available –>
<config evaluator="node-type" condition="ccs:BookSKU">
<property-sheet>
<show-property name="mimetype" display-label-id="content_type" component-generator="MimeTypeSelectorGenerator"/>
<show-property name="size" display-label-id="size" converter="org.alfresco.faces.ByteSizeConverter" show-in-edit-mode="false"/>
<show-property name="ccs:DisplayName"/>
<show-property name="ccs:SAPArticleID"/>
<show-property name="ccs:Author"/>
<show-property name="ccs:ISBN"/>
<show-property name="ccs:ListPrice"/>
<show-property name="ccs:SalePrice"/>
</property-sheet>
</config>
<!– List ccs:FTBContent when creating new content –>
<config evaluator="string-compare" condition="Content Wizards">
<content-types>
<type name="ccs:BookSKU"/>
</content-types>
</config>
<!– Lists the custom aspect in business rules Action wizard –>
<config evaluator="string-compare" condition="Action Wizards">
<subtypes>
<type name="ccs:BookSKU"/>
</subtypes>
</config>
</alfresco-config>
12-08-2008 01:00 PM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.