This is essentially what I've been doing. I have a system where the
menu, as defined in the XML, is searched for the current URL and the
appropriate submenu is expanded and highlighted automatically. This is
great for applications where one can't rely on javascript. I handle
the authorisation bit by defining roles in the XML file - the code
then only shows a menu choice for those logged in with the right role.
On 7/30/05, Barney Boisvert <[EMAIL PROTECTED]> wrote:
> With CF. Each permissions attribute gets converted into a series of
> isUserAuthorized (an internal function) calls to see if that element
> is allowed for the user. If so, something gets rendered.
>
> In other words, where we're using permissions, we're not using XSL,
> but rather just CF's XML processing capabilities.
>
> We've also set up documents like this:
>
> <menu ...>
>
> <cfif isUserAuthorized("...")>
> <menuitem href="...">User List</menuitem>
> </cfif>
>
> </menu>
>
> Where we include the XML with CFINCLUDE so the CF is processed, and
> then do XSL on the resulting XML doc to generate whatever we need.
>
> cheers,
> barneyb
>
> On 7/29/05, Andy <[EMAIL PROTECTED]> wrote:
> > Where / how do you limit/control what menu items get displayed?
> >
> > Andy
> >
>
> --
> Barney Boisvert
> [EMAIL PROTECTED]
> 360.319.6145
> http://www.barneyb.com/
>
> Got Gmail? I have 50 invites.
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble
Ticket application
http://www.houseoffusion.com/banners/view.cfm?bannerid=48
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:213315
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54