cancel
Showing results for 
Search instead for 
Did you mean: 

Advanced search: rolling menu very slow with many custom data model

mick73
Champ in-the-making
Champ in-the-making
Hi all,
my Alfresco installation has 27 very different custom data models (17 for a tenant "A" and 8 for a tenant "B": one tenant is a branch of the other).
All works correctly but I have a question regarding Advanced search: the dropdown menu has 27 entries and the menu is very slow when users go down to select the last data model: he has to wait about 10 seconds everytime for the last entry!

Is there a way to:

1) create a 2-level menu:
   first level: 2 entry (tenant A and tenant B),
   second entry: 17 entries when selecting tenant A from first level, 8 entries when selecting tenant B from first level
?
OR

2) change css style of entries, so that the font is lower, and the 27 entries stay all visible at the same time (and there is no more need to wait the slide to the last entry)?

OR

3) Hide completely the description specified in "descriptionId" attribute of "form" tag in share-custom-config.xml? (I mean that the vertical space of that description is 0 instead of 20 pixel like is now even if it's empty).

Thanks in advance.
Mick.
1 REPLY 1

afaust
Legendary Innovator
Legendary Innovator
Hello,

the first thing I would advise is to structure your Advanced Search configuration in a way that allows you to target specific tenants, i.e. I would presume tenant B does not actually need to see the search forms for tenant A data model. Using the Surf extension modules I suggest you define two extension modules (one for each tenant) in which you put the configuration to define the available search forms for each tenant.

The second aspect revolves around the question if every users actually needs to see every available form - using the same approach as above but for groups of users, you could reduce the amount of available search forms.

Regarding your actual questions:
2 + 3) You can use CSS to hide the span with class "form-type-description". You can use CSS to adapt the styling of contents of the button with class "selected-form-button", i.e. regarding font / sizes.
1) YUI allows multi-level drop down menu buttons, but you would need to completely re-implement the part that prepares that menu - there is no quick option to set.

Regards
Axel