Configuration of Advanced Search in share
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2023 04:57 AM
Hello,
I would like to configure Advanced Search in share app (in share-config-custom.xml). I have some problems I can't solve. In our alfresco we have several custom types and aspects defined in amp files and also over Model Manager in share.
- Types and aspects defined in amps contains "." in property id (for example sap
APDoc.id). When I add this property to Advance Search, everythink looks good but search doesn't get any results. I find out in web browser address line that property is encoded like this: prop_sap_SAPDoc%23dot%23id. After replace %23dot%23 with "." (prop_sap_SAPDoc.id) in web browser address line documents are finded successfuly. Is it possible to config share to not replace "." in property ids?
- Advance Search based on type properties defined in Model Manager works without any problems. But searching based on aspect property (defined in Model Manager) doesn't work for me. In this case Advance Search form even shows property id (web:webDocumentLanguageLangCode) instead of the defined property label ( "Language Code").
Configuration in share-config-custom.xml (... /tomcat/shared/classes/alfresco/web-extension) contains:<config evaluator='string-compare' condition='AdvancedSearch'> <advanced-search> <forms> <form id="webDocLangSearch" descriptionId="Search for webdocuments based on language aspect" labelId="WebDocument Lang aspect">web:webDocument</form> </forms> </advanced-search> </config> <form id="webDocLangSearch"> <field-visibility> <show id="web:webDocumentLanguageLangCode" forse="true"/> </field-visibility> <appearance> <field id="web:webDocumentLanguageLangCode"> <control template="/org/alfresco/components/form/controls/textfield.ftl" /> </field> </appearance> </form>
Is it possible to make advance search based on apect property defined over Model Manager in share? Is there necessary to use a different approach?
Labels:
- Labels:
-
Alfresco Content Services
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2023 03:30 AM
Hope this helps: https://angelborroy.wordpress.com/2014/06/16/alfresco-share-customize-advanced-search-for-aspect-pro...
Hyland Developer Evangelist
