I've looked through that page a couple times but I still don't
understand how it would help.
I'm not interested in preventing certain events from being accessed by
certain users. What I need to do is when an event is called (by any
user), I need to enable/disable parts of the page based on the groups/
permissions the user has. Most of the time the "parts of the page"
that need to be turned off are complete view files, for example, a
sidebar file. So I could just go into all the sidebar files and add a
cfif around the whole file:
<cfif Session.userbean.isInRole("someRole")>
whole file here
</cfif>
But I thought there might be a better way to do it in the model glue
XML? I don't really think so but thought I would ask the group.
On Dec 1, 4:47 pm, Chuck Savage <[email protected]> wrote:
> check out event-type's
> here:http://trac.model-glue.com/wiki/HowTos/HowToUseTypedEvents#HowToUseTy...
>
> On Nov 30, 3:10 pm, RyanStille<[email protected]> wrote:
>
>
>
> > We have an established, already in use model-glue app. Different
> > areas of the site each have their own sidebar navigation. We show
> > these different files by using an <include> directive in each event-
> > handler in our ModelGlue xml file. For example, here is part of the
> > event-handler for an event in the users area:
>
> > ....
> > <views>
> > <include name="sidebar" template="navigation_users.cfm" />
> > <include name="body" template="whatever.cfm"/>
> > </views>
> > ....
>
> > A new feature request is to turn off this sidebar navigation for some
> > users (there is other navigation on the page they will use). I could
> > go into each of these sidebar files and add a CFIF block around the
> > whole thing, but I was wondering if there was a better way? I don't
> > think there is anything I can do at the modelGlue.xml level?
>
> > I also thought about going into the main template and adding a CFIF
> > around the #viewcollection.getView("sidebar")# area, is that a good
> > way to do it? I don't like it because MG will still be "executing"
> > the sidebar, it will just never get displayed. Seems kind of hacky.
>
> > Thanks,
> > -Ryan
--
Model-Glue Sites:
Home Page: http://www.model-glue.com
Documentation: http://docs.model-glue.com
Bug Tracker: http://bugs.model-glue.com
Blog: http://www.model-glue.com/blog
You received this message because you are subscribed to the Google
Groups "model-glue" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/model-glue?hl=en