Agreed, this could be done with the domain module but the 3 level relationship does add quite a bit of complexity.
I'm interested to know how you would manage the relationships in this case? What would happen if you needed to add another level, eg. state or suburb? BTW if you're using pURL you could still use a sub domain for each section/site. On 15 March 2011 14:17, Aaron Fulton <[email protected]> wrote: > Hi Warwick, > > To achieve enforce this three-level relationship with the Domain module a > small amount of custom code will be needed. > This is how I would tackle the problem: > Set the Domain module to that nodes are only visible on the site which they > are posted to then write an implementation of hook_domainrecords() in which > I would grant view access to the other domains which should be able to see > the node. eg. if a node were submitted at taupo.domain.com, the hook > implementation would also grant access to waikato.domain.com and > domain.com. > > If you want a website per region then Domain is the way to go. If you want > one site with some content which is regionalised then a Taxonmy + views type > solution would work best. > > Aaron > > > > > On 15/03/2011 12:07 p.m., Warwick wrote: > >> Hi Aaron >> >> Sorry to belabour the point but then is this scenario possible? >> >> >> Content from >> >> taupo.domain.com >> >> can be viewed in >> >> waikato.domain.com >> >> and >> >> domain.com >> >> but not in >> >> canterbury.domain.com >> >> >> Is this possible to automate? Because I couldn't expect the posters >> to get it right or remember to do it each time. >> >> Thanks Aaron. >> >> Cheers >> Warwick >> >> > -- > NZ PHP Users Group: http://groups.google.com/group/nzphpug > To post, send email to [email protected] > To unsubscribe, send email to > [email protected] > -- Thom Toogood +6421608844 -- NZ PHP Users Group: http://groups.google.com/group/nzphpug To post, send email to [email protected] To unsubscribe, send email to [email protected]
