04-16-2007 12:07 PM
04-23-2007 05:03 PM
04-24-2007 02:31 AM
AdvancedSearchConfigElement config = (AdvancedSearchConfigElement)Application.getConfigService(context).getConfig("Advanced Search").getConfigElement(AdvancedSearchConfigElement.CONFIG_ELEMENT_ID);
This code refers to the ConfigService of Alfresco, which loads various config elements at startup. <bean id="webClientConfigSource" class="org.alfresco.config.source.UrlConfigSource">
<constructor-arg>
<list>
<value>classpath:alfresco/web-client-config.xml</value>
<value>classpath:alfresco/web-client-config-dialogs.xml</value>
<value>classpath:alfresco/web-client-config-wizards.xml</value>
<value>classpath:alfresco/web-client-config-properties.xml</value>
<value>classpath:alfresco/web-client-config-navigation.xml</value>
<value>classpath:alfresco/web-client-config-wcm.xml</value>
<value>classpath:alfresco/web-client-config-actions.xml</value>
<value>classpath:alfresco/web-client-config-forum-actions.xml</value>
<value>classpath:alfresco/web-client-config-wcm-actions.xml</value>
<value>classpath:alfresco/web-client-config-workflow-actions.xml</value>
<value>classpath:alfresco/extension/web-client-config-custom.xml</value>
<value>jar:*!/META-INF/web-client-config-custom.xml</value>
</list>
</constructor-arg>
</bean> <config evaluator="string-compare" condition="Advanced Search">
<!– advanced search custom attribute config –>
<!– see http://wiki.alfresco.com/wiki/Advanced_Search_Custom_Attributes –>
<advanced-search>
<!– type constraint drop-down –>
<content-types>
<!– cm:content type is implicit in this list –>
<!– types must extend cm:content for display in the Alfresco web-client –>
<type name="fm:post" />
</content-types>
<folder-types>
<!– cm:folder type is implicit in this list –>
<!– types must extend cm:folder for display in the Alfresco web-client –>
<type name="fm:forums" />
</folder-types>
</advanced-search>
</config>04-24-2007 05:44 AM
04-24-2007 09:38 AM
<config evaluator="string-compare" condition="Advanced Search">
<advanced-search>
<content-types>
<type name="custom:pressrelease" />
</content-types>
<custom-properties>
<pressrelease>******************ADDED
<meta-data type="custom:pressrelease"
property="custom:PRDate" />
</pressrelease>*****************ADDED
<CustomerDetails>***************ADDED
<meta-data aspect="custom:CustomerDetails"
property="custom:CustomerName" />
<meta-data aspect="custom:CustomerDetails"
property="custom:NewCustomer" />
</CustomerDetails>**************ADDED
</custom-properties>
</advanced-search>
</config>07-06-2009 12:55 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.