As with anything there are many ways to approach this problem.
One that I may suggest using would be to create a "display layout"
event for each skin you have. Have these "display layout" events
accept generic event arguments provided by the rest of your Mach-II
code and output them accordingly within a view. Once this is
accomplished, for every event you wish to skin, have it invoke a
filter which would contain the logic required to select which skin you
wish to use. Once you've determined which skin to use, simply call
announceEvent to the new "display layout" event that you've created
for that particular skin (and make sure you pass along the event
arguments as well).
For example, for all of your skinnable events, save the view output to
a contentArg, say 'pageContent' and then within your skin's view
simply output that contentArg (e.g. #request.event.getArg
('pageContent')#).
Adrian.
On Sep 24, 11:10 am, Jorge Loyo <[email protected]> wrote:
> I have an application that will have multiple layouts (skins) which
> will be determined by the URL.
>
> For example:
> These two sites will have the same back-end...They will be the same
> Mach-II app, but the front-end will be different.
>
> www.site1.com - will have the "Skin1" assigned to itwww.site2.com - will
> have the "Skin2" assigned to it
>
> Do you guys have any idea how to handle this?
>
> I was thinking of looking into the CGI to check the domain and then
> from that determine what skin to pull. However, I don't know how to
> best structure my views to account for this dynamic behavior.
>
> As always, thank you in advanced.
--~--~---------~--~----~------------~-------~--~----~
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/
-~----------~----~----~----~------~----~------~--~---