<model name="custom:customModel" xmlns="http://www.alfresco.org/model/dictionary/1.0">
…..
<aspects>
<!– Definition of new Content Aspect: myAspect–>
<aspect name="custom:myAspect">
<title>My Aspect</title>
<properties>
<property name="custom:myAspect_ci">
<title>CI</title>
<type>d:int</type>
</property>
<property name="custom:myAspect_ca">
<title>CA</title>
<type>d:text</type>
</property>
<property name="custom:myAspect_ej">
<title>EJ</title>
<type>d:int</type>
</property>
<property name="custom:dgrfccll2_no">
<title>NO</title>
<type>d:int</type>
</property>
</properties>
</aspect>
</aspects>
</model>
<alfresco-config>
…..
<!– Lists the custom aspect in business rules Action wizard –>
<config evaluator="string-compare" condition="Action Wizards">
<aspects>
<aspect name="custom:myAspect"/>
</aspects>
</config>
<!– Displays the properties in view details page –>
<config evaluator="aspect-name" condition="custom:myAspect">
<property-sheet>
<separator name="sepCust1" display-label="My Aspect" component-generator="HeaderSeparatorGenerator" />
<show-property name="custom:myAspect_ci"/>
<show-property name="custom:myAspect_ca"/>
<show-property name="custom:myAspect_ej"/>
<show-property name="custom:myAspect_no"/>
</property-sheet>
</config>
</alfresco-config>
<alfresco-config>
…..
<aspects>
<!– Aspects that a user can see –>
<visible>
<aspect name="cm:generalclassifiable" />
<aspect name="cm:complianceable" />
<aspect name="cm:dublincore" />
<aspect name="cm:effectivity" />
<aspect name="cm:summarizable" />
<aspect name="cm:versionable" />
<aspect name="cm:templatable" />
<aspect name="cm:emailed" />
<aspect name="emailserver:aliasable" />
<aspect name="cm:taggable" />
<aspect name="app:inlineeditable" />
<!– My aspects –>
<aspect name="custom:myAspect" />
</visible>
<!– Aspects that a user can add. Same as "visible" if left empty –>
<addable>
</addable>
<!– Aspects that a user can remove. Same as "visible" if left empty –>
<removeable>
</removeable>
</aspects>
<alfresco-config>
<!– cm:content type (existing nodes) –>
<config evaluator="node-type" condition="cm:content">
<forms>
<!– Default form configuration for the cm:content type –>
<form>
<field-visibility>
…..
<!– My aspects –>
<show id="custom:myAspect_ci" />
<show id="custom:myAspect_ca" />
<show id="custom:myAspect_ej" />
<show id="custom:myAspect_no" />
</field-visibility>
…..
</form>
<!– Document Library pop-up Edit Metadata form –>
<form id="doclib-simple-metadata">
<field-visibility>
…..
<!– My aspects –>
<show id="custom:myAspect_ci" />
<show id="custom:myAspect_ca" />
<show id="custom:myAspect_ej" />
<show id="custom:myAspect_no" />
</field-visibility>
<edit-form template="../documentlibrary/forms/doclib-simple-metadata.ftl" />
…..
</form>
<!– Document Library Inline Edit form –>
<form id="doclib-inline-edit">
<field-visibility>
…..
<!– My aspecs –>
<show id="custom:myAspect_ci" />
<show id="custom:myAspect_ca" />
<show id="custom:myAspect_ej" />
<show id="custom:myAspect_no" />
</field-visibility>
</form>
…..
</forms>
</config>
</alfresco-config>
## Data Dictionary
# Aspects
…..
# My aspects
aspect.custom_myAspect=MYASPECT
…..
# Display labels for Content Domain Model
…..
# My aspects
cm_contentmodel.aspect.myAspect.title=MYASPECT
cm_contentmodel.aspect.myAspect.description=My aspect
cm_contentmodel.property.myAspect_ci.title=CI
cm_contentmodel.property.myAspect_ci.description=CI
cm_contentmodel.property.myAspect_ca.title=CA
cm_contentmodel.property.myAspect_ca.description=CA
cm_contentmodel.property.myAspect_ej.title=EJ
cm_contentmodel.property.myAspect_ej.description=EJ
cm_contentmodel.property.myAspect_no.title=NO
cm_contentmodel.property.myAspect_no.description=NO
…..
<alfresco-config>
<!– cm:content type (existing nodes) –>
<config evaluator="node-type" condition="cm:content">
<forms>
<!– Default form configuration for the cm:content type –>
<form>
<field-visibility>
<show id="cm:name" />
…..
<!– My aspects –>
<show id="custom:myAspect_ci" for-mode="edit" force="true" />
<show id="custom:myAspect_ca" for-mode="edit" force="true" />
<show id="custom:myAspect_ej" for-mode="edit" force="true" />
<show id="custom:myAspect_no" for-mode="edit" force="true" />
</field-visibility>
<appearance>
…..
<!– My aspects –>
<field id="custom:myAspect_ci" mandatory="true">
<control template="/org/alfresco/components/form/controls/textfield.ftl" />
</field>
<field id="custom:myAspect_ca" mandatory="true">
<control template="/org/alfresco/components/form/controls/textfield.ftl" />
</field>
<field id="custom:myAspect_ej" mandatory="true">
<control template="/org/alfresco/components/form/controls/textfield.ftl" />
</field>
<field id="custom:myAspect_no" mandatory="true">
<control template="/org/alfresco/components/form/controls/textfield.ftl" />
</field>
</appearance>
</form>
<!– Document Library pop-up Edit Metadata form –>
<form id="doclib-simple-metadata">
<field-visibility>
…..
<!– My aspects –>
<show id="custom:myAspect_ci" for-mode="edit" force="true" />
<show id="custom:myAspect_ca" for-mode="edit" force="true" />
<show id="custom:myAspect_ej" for-mode="edit" force="true" />
<show id="custom:myAspect_no" for-mode="edit" force="true" />
</field-visibility>
<edit-form template="../documentlibrary/forms/doclib-simple-metadata.ftl" />
<appearance>
…..
<!– My aspects –>
<field id="custom:myAspect_ci" mandatory="true">
<control template="/org/alfresco/components/form/controls/textfield.ftl" />
</field>
<field id="custom:myAspect_ca" mandatory="true">
<control template="/org/alfresco/components/form/controls/textfield.ftl" />
</field>
<field id="custom:myAspect_ej" mandatory="true">
<control template="/org/alfresco/components/form/controls/textfield.ftl" />
</field>
<field id="custom:myAspect_no" mandatory="true">
<control template="/org/alfresco/components/form/controls/textfield.ftl" />
</field>
</appearance>
</form>
<!– Document Library Inline Edit form –>
<form id="doclib-inline-edit">
<field-visibility>
…..
<!– My aspects –>
<show id="custom:myAspect_ci" for-mode="edit" force="true" />
<show id="custom:myAspect_ca" for-mode="edit" force="true" />
<show id="custom:myAspect_ej" for-mode="edit" force="true" />
<show id="custom:myAspect_no" for-mode="edit" force="true" />
</field-visibility>
<appearance>
…..
<!– My aspects –>
<field id="custom:myAspect_ci" mandatory="true">
<control template="/org/alfresco/components/form/controls/textfield.ftl" />
</field>
<field id="custom:myAspect_ca" mandatory="true">
<control template="/org/alfresco/components/form/controls/textfield.ftl" />
</field>
<field id="custom:myAspect_ej" mandatory="true">
<control template="/org/alfresco/components/form/controls/textfield.ftl" />
</field>
<field id="custom:myAspect_no" mandatory="true">
<control template="/org/alfresco/components/form/controls/textfield.ftl" />
</field>
</appearance>
</form>
</forms>
</config>
<!– cm:folder type (existing nodes) –>
…..
</alfresco-config>
# Display labels for Content Domain Model
…..
# My aspects
custom_customModel.aspect.myAspect.title=MYASPECT
custom_customModel.aspect.myAspect.description=My aspect
custom_customModel.property.myAspect_ci.title=CI
custom_customModel.property.myAspect_ci.description=CI
custom_customModel.property.myAspect_ca.title=CA
custom_customModel.property.myAspect_ca.description=CA
custom_customModel.property.myAspect_ej.title=EJ
custom_customModel.property.myAspect_ej.description=EJ
custom_customModel.property.myAspect_no.title=NO
custom_customModel.property.myAspect_no.description=NO
…..
Content from pre 2016 and from language groups that have been closed.
Content is read-only.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.