ezpublish 4 : create 2 websites

Author Message

sergio da silva

Friday 05 September 2008 7:46:05 am

Hello,

I would like to have 2 websites in only one ezpublish, each one using a different database. But the second one(who use the second database) should extract some data from the first database using by the other website (like an list of article)

Is it possible using 2 siteaccess ?? and if it's possible, how to do it?

Another way, can i create 2 website with only one siteaccess:


                                                parent_node
                                                |           |
                                             site 1        site 2
                                              |    |         |    |
                                               ...          ...

Thanks for the help !!

Greg McAvoy-Jensen

Friday 05 September 2008 9:57:16 am

You can create two siteaccesses, each with a different index page--which can be under a top level node (2) in the node tree. This would be done with the sites sharing one database (and the same var directory). In this case, in each site access, edit site.ini.append.php:

[SiteSettings]
SiteName=Whatever
SiteURL=whatever.com
IndexPage=/content/view/full/388 # use the new root node for this siteaccess
DefaultPage=/content/view/full/388 # use the new root node for this siteaccess
RootNodeDepth=2

This will get you started. More needs to be done if you're using ezwebin, if you want searches and sitemaps to only show the respective sites, etc.

There's also this related post: http://ez.no/developer/forum/setup_design/valentin_s_multisite_guide_v_1_example_uses_ezp_v_3_9_4
.

Granite Horizon, Certified Developer of eZ Publish Web Solutions
Provider of the SaaS Solution Granite Horizon In The Cloud | http://granitehorizon.com/cloud
http://granitehorizon.com | +1 916 647 6350 | California USA | @granitegreg
Blog: http://granitehorizon.com/blog

Mark Marsiglio

Tuesday 16 September 2008 9:46:37 am

You will likely want to look at the PathPrefix functionality in the docs as well, as it will enable you to skip a level on the URL for your sites so that they will appear to be at the root level. this setting goes in the site.ini.append.php for each siteaccess.

http://www.thinkcreative.com
Turning Ideas Into Strategic Solutions

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.