cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamically hide/show entries in Advanced-Search?

itzamna
Confirmed Champ
Confirmed Champ
Hi,

does anyone already managed it to hide and show entries in the Advanced-Search menu dynamically?

I'm looking for a way to hide or show some search forms in the Advanced-Search menu where the business logic of the restriction is either available in a JavaScript or by a Java class via Webscript.

I don't see currently any possibility to do it based on the WIKI description:
https://wiki.alfresco.com/wiki/Share_Advanced_Search#Configuration

Maybe it's possible in a newer version of Alfresco? Like 5.0? Does anyone know?

Best regards,
Itzamna
3 REPLIES 3

aaditvmajmudar
Confirmed Champ
Confirmed Champ
As per my understanding, you want to hide the menu item from content type selection menu on advance search page.

If so, then that menu is manipulated in advsearch.get.js file.

You can call any webscript with you custom logic from above file to restrict any menu item.

Hope this helps.

itzamna
Confirmed Champ
Confirmed Champ
Aadit,

thank you for the answer. Yes, you're right. I want to hide some of the menu items from the selection menu.
Unfortunately, if I manipulate the mentioned advsearch.get.js file I have to override the original file in my AMP file. I cant do that. I need a way to enhance or extend the existing functionality without override core code. Is there another way?

Thanks!

aaditvmajmudar
Confirmed Champ
Confirmed Champ
You can create extension module to override any share component (presentation webscript).

You can check http://docs.alfresco.com/4.0/concepts/Share-Extensibility-Intro.html for more information.

Hope this helps.