Re: Re: Master Page

Posted by SD on
URL: https://discuss.orbeon.com/Master-Page-tp3177922p3216461.html

Hi,

The content of the left panel is static in this example http://www.orbeon.com/orbeon/xforms-bookcast/

How do we handle this if the entire left menu is dynamically pulled based on user.

eg: Suppose there are 2 kinds of users, a normal user and an admin user. A normal user gets the Get Started and the Form Builder/Runner menu items while an admin user gets the all menu items. This access control on the menu item is defined in an xml file stored in a db. The xml file looks something like this
<users>
        <user>
                <type>normal</type>
                <access>Get Started;Form Builder/Runner</access>
        </user>
        <user>
                <type>admin</type>
                <access>Get Started;Form Builder/Runner;Essential XForms;XForms Tutorial Apps;More XForms;Page Flow;Integrating with Java</access>
        </user>
</users>

I'm trying to figure out how to pass the instance from the model to the app-list.xml (located under WEB-INF\resources\) file via epilogue.

I want to achieve a dynamic left menu based on user login.

Thanks for the help.