> I have been experimenting with this approach - bit of R&D at this
> stage as proof of concept for upcoming project
>
> in project/config/_serverSpecificRequestScope.cfm
> I put this test
>
> <cfif CGI.SERVER_NAME EQ "site1.myCompany.com">
> <cfset REQUEST.homeID = APPLICATION.navid.site1HOME>
> <cfset REQUEST.Section = "site2" />
> <cfelseif CGI.SERVER_NAME EQ "site2.myCompany.com">
> <cfset REQUEST.homeID = APPLICATION.navid.site2HOME />
> <cfset REQUEST.Section = "site2" />
> <cfelseif CGI.SERVER_NAME EQ "site3.myCompany.com">
> <cfset REQUEST.homeID = APPLICATION.navid.site3HOME />
> <cfset REQUEST.Section = "site3" />
> <cfelse>
> <cfset REQUEST.homeID = APPLICATION.navid.wwwHOME />
> <cfset REQUEST.Section = "Home" />
> </cfif>
> <cfif NOT IsDefined("URL.objectID")>
> <cfset URL.objectID = REQUEST.homeID />
> </cfif>
>
> Where in the site tree, at the same level as the default home, I
> create new nav nodes, one for each site, and give them an alias that
> is used in the above code.
>
> I would appreciate comments on this approach.
Unfortunately this still leads to the problem where you must remember
to update all your code to refer to request.homeId. Things like
skin:breadCrumb, genericNav, getAncestors, etc all have to take into
consideration the new variable request.homeId. Does it work? Yes, but
it requires a little extra work on your part and a lot of custom tags
not supported by Daemon (this is what I went though with the other
project I was referring to). Personally I'd prefer a more elegant
solution if possible, but it would require modifying parts of core.
Hopefully someone from Daemon wouldn't mind jumping into this
conversation to offer their input.
--
Jeff Coughlin
Web Application Developer
http://jeffcoughlin.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"farcry-dev" 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/farcry-dev?hl=en
-~----------~----~----~----~------~----~------~--~---