As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
Doesn't anyone bother trying the examples around here?
<types> <type name="cm:content"> <subtype name="my:sop" /> </type> <type name="cm:folder"> </type> </types>
const QUERY_TEMPLATES = [ {field: "keywords", template: "%(cm:name cm:title cm:description ia:whatEvent ia:descriptionEvent lnk:title lnk:description TEXT)"}];
Thanks Loftux, that worked. Now I am able to search the default 'Keywords' field for my custom metadata.I have another question here though, as you mentioned we need to manually go to the document details and change the documents 'Type' to 'my:sop' in order to associate it with that template. Is there a way to have any document uploaded to automatically be associated with my desired 'Type'? If I have many documents to be uploaded, I don't to go to each document detail and change the type, I want it to be associated to the appropriate type automatically on upload.Thanks
May I promote my own blog post in the matter? http://loftux.se/en/2010/03/22/set-the- … le-upload/It may need to be adapted to current version of alfresco, but should get you started
Create a rule on that folder, select the action "Specialize" and choose your custom type.
<field id="cm:taggable"> <control> <control-param name="compactMode">true</control-param> <control-param name="params">aspect=cm:taggable</control-param> <control-param name="createNewItemUri">/api/tag/workspace/SpacesStore</control-param> <control-param name="createNewItemIcon">tag</control-param> </control> </field>
But we havent' understood the cm:taggable search, because the select box shows categories, not tags defined by users.Could you have any ideas about this issue? How we can configure the advanced search to show tags?
I suggest Alfresco Documentation Support to add this tip to wiki Advanced Search Customization.
<!– Search form –> <form id="search"> <field-visibility> <show id="cm:name" /> <show id="cm:title" force="true" /> <show id="cm:description" force="true" /> <show id="cm:taggable" for-mode="edit" force="true" /> <show id="mimetype" /> <show id="cm:modified" /> <show id="cm:modifier" /> </field-visibility> <appearance> <field id="mimetype"> <control template="/org/alfresco/components/form/controls/mimetype.ftl" /> </field> <field id="cm:modifier"> <control> <control-param name="forceEditable">true</control-param> </control> </field> <field id="cm:modified"> <control template="/org/alfresco/components/form/controls/daterange.ftl" /> </field> <field id="cm:taggable"> <control> <control-param name="compactMode">true</control-param> <control-param name="params">aspect=cm:taggable</control-param> <control-param name="createNewItemUri">/api/tag/workspace/SpacesStore</control-param> <control-param name="createNewItemIcon">tag</control-param> </control> </field> </appearance> </form> </forms>