ezpublish 4 : create 2 websites

ezpublish 4 : create 2 websites

Friday 05 September 2008 7:46:05 am - 2 replies

Modified on Friday 05 September 2008 7:47:56 am by sergio da silva

Author Message

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

You must be logged in to post messages in this topic!

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