Mercury, I wrote a high-profile CMS last year that uses a database to organize all the views that need to be displayed at run-time. In my app, I have a preProcess pageHandler plugin that determines which views to display based on URL parameters at run-time and then performs a number of displayView() methods from the eventContext. The results of those methods are stored in the event object for display in my master template view. Works really well.
So instead of trying to hard-code things into the XML and figure out the inner workings of Mach-II's view mechanisms, why not create related records in a database to filter this information? Zack -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of MercuryNewt Sent: Wednesday, September 16, 2009 7:18 AM To: Mach-II for CFML Subject: [Mach-II] Re: Delivering view programmatically Thanks for the suggestion Brian. That might work, but I was looking for a way of picking through the page-views that I had defined in the mach-ii.xml file and for any given event, grab individual page-views for a client based upon their specific configuration. Unless I'm totally off in left field, I assume that the page-views or at least the paths to those views are store in a struct or array similar to a pool of available views and that some component within the Mach-II framework grabs those views based upon what is defined in an event- handler. I want to be able to do that without specifically defining those page-views within an event-handler. I want to go get them 1 by 1 if a client is configured to have a particular view. So, if views A, B, C & D have been defined in the mach-ii.xml file and I have clients 1, 2, 3 & 4, when a user logs into client 1's site I would got get views A, B & C for the "homepage" event. But when a user logs into client 2's site I would only get A & B for the "homepage" event. Make sense? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to Mach-II for CFML list. 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/mach-ii-for-coldfusion?hl=en SVN: http://greatbiztoolsllc.svn.cvsdude.com/mach-ii/ Wiki / Documentation / Tickets: http://greatbiztoolsllc.trac.cvsdude.com/mach-ii/ -~----------~----~----~----~------~----~------~--~---
