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

Reply via email to