How to show advanced search form on the site dashboard?

cancel
Showing results for 
Search instead for 
Did you mean: 
theobroma
Active Member II

How to show advanced search form on the site dashboard?

Jump to solution

Is it  possible to implement advanced search form in a dashlet which takes place on the site dashboard - landing page? What would be the best way to do that?

1 Solution

Accepted Solutions
krutik_jayswal
Senior Member II

Re: Hot to show advanced search form in the site dashboard?

Jump to solution

There is share side service available for retrieving the form in alfresco.

http://hostSmiley Tongueort/share/service/components/form?itemKind=type&itemId=[type of document]&formId=[form_id]&mode=edit&showSubmitButton=true&showCancelButton=true&htmlid=args1

Using this service you can get the content and and display it inside any html element.

You may need to add other things like , setting the submition URL etc..

Other option is to design everything by your self.Meaning you need to define all fields in dashlet and use javascript to submit that value of element.Search form is ultimately submitting values on below URL.

http://hostSmiley Tongueort/share/page/dp/ws/faceted-search#searchTerm=&query={"prop_cm_name":"asd","datatype":"cm:content"}&scope=all_sites

So you can take values from fields and than create above url using values and hit that URL pragmatically.

View solution in original post

2 Replies
krutik_jayswal
Senior Member II

Re: Hot to show advanced search form in the site dashboard?

Jump to solution

There is share side service available for retrieving the form in alfresco.

http://hostSmiley Tongueort/share/service/components/form?itemKind=type&itemId=[type of document]&formId=[form_id]&mode=edit&showSubmitButton=true&showCancelButton=true&htmlid=args1

Using this service you can get the content and and display it inside any html element.

You may need to add other things like , setting the submition URL etc..

Other option is to design everything by your self.Meaning you need to define all fields in dashlet and use javascript to submit that value of element.Search form is ultimately submitting values on below URL.

http://hostSmiley Tongueort/share/page/dp/ws/faceted-search#searchTerm=&query={"prop_cm_name":"asd","datatype":"cm:content"}&scope=all_sites

So you can take values from fields and than create above url using values and hit that URL pragmatically.

afaust
Master

Re: Hot to show advanced search form in the site dashboard?

Jump to solution

If you refer to the out-of-the-box advanced search and if you can "easily" change that to be available in the site dashboard (i.e. via limited configuration / customisation), then no. But of course it would be possible to do a substrantial dashlet implementation to add "similar" functionality as a dashlet to any dashboard.

The "best way" to do this likely involves reusing the existing advanced search form configurations, and re-implementing (or adapting) the client-side rendering + logic of the advanced search page to fit within a dashlet. Since dashlets may have less space available for the search form than in the advanced search page, you may want to think about limiting the layouting options and potentially forcing a top-down layout rule instead of allowing multi-columned set layouts.