02-20-2008 05:43 AM
<!– Configuring advanced search –>
<config evaluator="string-compare" condition="Advanced Search">
<advanced-search>
<content-types>
<type name="custom:custom_document" />
</content-types>
<custom-properties>
<meta-data type="custom:custom_document" property="custom:prop_language" />
<meta-data aspect="custom:marketing_document" property="custom:prop_type" />
<meta-data aspect="custom:commercial_document" property="custom:prop_organisation" />
</custom-properties>
</advanced-search>
</config>
<!– Properties of content type 'custom Document' –>
<config evaluator="node-type" condition="custom:custom_document">
<property-sheet>
<show-property name="custom:prop_language" display-label-id="document_language" />
</property-sheet>
</config>
…
the search is working fine but the labels of this properties are not shown in the advanced search, but the property name instead (e.g. prop_language)The <type> attribute is the model type containing the property and the <property> attribute specifies the property to use. The display label for the property will also be taken from the repository model definiton.
02-20-2008 07:34 AM
02-20-2008 08:58 AM
<beans>
<!– Registration of new models –>
<bean id="extension.dictionaryBootstrap" parent="dictionaryModelBootstrap"
depends-on="dictionaryBootstrap">
<property name="models">
<list>
<value>de/swipe/alfresco/model/swipeModel.xml</value>
</list>
</property>
<property name="labels">
<list>
<value>de/swipe/alfresco/model/swipeModel</value>
</list>
</property>
</bean>
</beans>
# content type titles
swipe_swipemodel.type.swipe_swipe_document.title=SWIPe Document
swipe_swipemodel.property.prop_language.title=Language
# aspect titles
swipe_swipemodel.aspect.swipe.swipe_marketing_document.title=Marketing Document
swipe_swipemodel.property.swipe.prop_type.title=Type
swipe_swipemodel.aspect.swipe.swipe_commercial_document.title=Commercial Document
swipe_swipemodel.property.swipe.prop_direction.title=Direction
swipe_swipemodel.property.swipe.prop_Organisation.title=Organisation
02-20-2008 09:16 AM
my problem is: everything is fine with my configuration of aspects and labels… just the advanced search doesn't display the labels, but details view does.
02-20-2008 10:40 AM
02-20-2008 11:26 AM
02-20-2008 11:50 AM
swipe_swipemodel.property.swipe_prop_direction.title=Direction
swipe_swipemodel.property.swipe_prop_Organisation.title=Organisation
02-20-2008 12:21 PM
02-20-2008 01:42 PM
<model_prefix>_<model_name>.<model_element>.<element_prefix>.<element_name>.[title|description]
<model_prefix>_<model_name>.<model_element>.<element_prefix>_<element_name>.[title|description]
02-25-2008 08:54 AM
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.