09-09-2011 11:02 AM
09-09-2011 11:10 AM
<bean id="wqsmodule_sectionAssetCollections" class="java.util.ArrayList" >
<constructor-arg>
<list>
<bean class="org.alfresco.module.org_alfresco_module_wcmquickstart.model.AssetCollectionDefinition">
<property name="name" value="latest.articles" />
<property name="title" value="Latest Articles" />
<property name="queryType" value="alfrescoCmis" />
<property name="maxResults" value="3" />
<property name="query"><value>SELECT d.* FROM cmis:document AS d JOIN ws:webasset AS wa ON d.cmis:objectId = wa.cmis:objectId WHERE d.cmis:objectTypeId='D:ws:article' AND in_tree(d, '%{section:.}') ORDER BY wa.ws:publishedTime DESC</value></property>
</bean>
<bean class="org.alfresco.module.org_alfresco_module_wcmquickstart.model.AssetCollectionDefinition">
<property name="name" value="section.articles" />
<property name="title" value="Articles" />
<property name="query"><value>SELECT d.* FROM cmis:document AS d JOIN ws:webasset AS wa ON d.cmis:objectId = wa.cmis:objectId WHERE d.cmis:objectTypeId='D:ws:article' AND in_tree(d, '%{section:.}') ORDER BY wa.ws:publishedTime DESC</value></property>
</bean>
<bean class="org.alfresco.module.org_alfresco_module_wcmquickstart.model.AssetCollectionDefinition">
<property name="name" value="featured.articles" />
<property name="title" value="Featured Articles" />
</bean>
</list>
</constructor-arg>
</bean>
Hopefully it should be fairly clear how you might change this to alter the auto-created asset collections.09-09-2011 01:32 PM
09-10-2011 03:33 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.