Example for auto populate menu list based on query

Example for auto populate menu list based on query

  

Hi,

Is there any example for auto populate menu list based on query ?


Tobit Ng wrote:

Hi,

Is there any example for auto populate menu list based on query ?


Hi Tobit.

You can use a List Record and apply the structure and CSS classes for each element in the list record.

Do you have a more specific doubt or eSpace example with your real issue?


Hi Goncalo,

My case is :

1. I have 1 entity master menu.

2. I have 1 entity master group.

3. I have 1 entity mapping menu to group.

4. I have 1 entity mapping user to group.

Finally, I want the dropdownmenu that popuplated on menu block only the menu that mapped to group of logged in user.


Hi Tobit.

So, for the scenario you're describing, you could use a list record binded by a query to your master menu items.

Then you should create a web block that receives the parent menu identifier with another list record binded by a query to your children menu items. 

Apply this web block to the dropdown menu and make sure you respect the structure of the elements so that the CSS classes and Js of the dropdown menu widget (as a tip, check a simple example of this pattern rendered on a screen and inspect it with the browser dev tools to be sure you're respecting the pattern).

Cheers,

GM