Tuesday 25 November 2003 8:51:40 am
Hi, I have recently discovering the wonders of creating multiple sites that can share cascading template sets (with AdditionalSiteDesignList[]), and have uncovered a problem... My Web host only allows me a fixed number of MySQL DBs and so I have been looking for a way to combine multiple sites with one DB (i believe this was possible for versions <3.2)...
My Solution: Use the settings variable NodeSettings->RootNode to set the top page. But alas it doesn't seem to work. So I have managed to create a few work arounds: 1. In the settings/siteaccess/*mysite*/site.ini.append file I set the DefaultPage and IndexPage nodes under my root dir (2) that will be the rootNode for each site. This works fine. 2. Change template links that point to '/content/view/full/2/' to concat("/content/view/full/",ezini('NodeSettings','RootNode','site.ini') 3. Hack the Bread-Crumbs (Path) display to show the RootNode value as 'Home' (NodeID: 2). This last step I have been unable to do successfully. I have tracked the source down to the function 'fetchPath' in ezcontentobjecttree.php, and have used the following dirty hack: $nodePath = $this->attribute( 'path_string' ); [line: 1823] to
$nodePath = $this->attribute( 'path_string' ); $nodePath = str_replace('/2/', '/', $nodePath); simply removing the rootNode fixes this but I suspect the rabbit hole goes a little deeper than this and might break something somewhere else... Does anybody have any ideas or suggesstions as to how this might be accomplished in a less destructive manner?
Regards, Lachy
|