I have done this on a V4 site (soon to be upgraded to 6). My approach was to to create alternate dmHeader / dmFooters in webskin for each site to control the different styling required for each site. - create a folder inside /webskin/include/ for each site, e.g. / webskin/include/theme/site1 and create the alternate dmHeader / dmFooter in this site folder - create a folder in /www for all styling files (css, js, images) e.g. /www/theme/site1, these files are referenced in the /webskin/ include/theme/site1/ dmHeader and dmFooter - detect site from cgi scope in application.cfc and set a session var to determine the site, e.g. session.theme = "site1" - modify standard dmHeader and dmFooter to check for session.theme and include the /webskin/theme/#session.theme#/dmHeader (dmFooter) instead of using the code within dmHeader
No changes required to core and adding new sub-sites is very easy, just add new site folders in webskin/theme/ and www/theme/ and modify the code that detects site from cgi scope to set the new session.theme. Friendly URLs work without modification. Depending on your requirements you may need to have alternate versions of the display methods as well. Hopefully this will help you to get started. I am working on something slightly different for V6 to make it even easier to manage multiple sites. One thing to be wary of is that having multiple sites sharing the same content, friendly URLs and possibly meta keywords - you may get penalised in SEO as Google will treat this as duplicate content. Chris. On Jan 8, 12:37 am, AJ Mercer <[email protected]> wrote: > I will be working on a project that requires one Farcry backend to manage > multiple sites (they share a lot of common data) > So there will be multiple domains. > > I was wondering if other people have done this and would care sharing their > approach. > > Something that has just come to me is how to handle Friendly URLs > as each site will have /news and /contact-us for example. > > Will be using Farcry 6.0.x > > -- > AJ Mercerhttp://webonix.nethttp://twitter.com/webonix
-- You received this message cos you are subscribed to "farcry-dev" Google group. To post, email: [email protected] To unsubscribe, email: [email protected] For more options: http://groups.google.com/group/farcry-dev -------------------------------- Follow us on Twitter: http://twitter.com/farcry
