Thursday 27 May 2010 8:36:44 am - 8 replies

» Read full tutorial

Introduction

 

This tutorial gives developers the power to extend the features and flexibility of eZ Publish beyond a single website, to having an unlimited number in one installation. At the end of this tutorial you will have learned how to best leverage eZ Publish's siteaccess concept to create multiple websites. It will let you apply this concept through the concrete case of building two different, multilingual websites on one single eZ Publish instance.

Author Message

André R.

Friday 28 May 2010 8:32:13 am

Regarding "How to part 3": You don't need to change the template, either set RootNodeDepth=0 so RootNode setting is used for root_node parameter, or set RootNodeDepth=2 so it reflects the depth of your content tree your root node is and it will figure it out automatically.

Doing it this way will ensure that page_data works as intended, so paths and so on are correct.

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Matthieu Sévère

Saturday 29 May 2010 6:43:30 am

Cool tutorial !

About the access type I'd like to advise to host_uri access that can be very useful in some case and it works fine with the following patch, see this issue for more information : http://issues.ez.no/15359

Other important things that depends on use case are the shared media library. When using separate websites if you want to upload to specific folder for media upload you can use the automatic location of ezoe that is customizable with RelationAssignmentSettings / ClassSpecificAssignment in content.ini

A limitation is that we can't customize the default location of ezoe when browsing media. For instance it would be great that when browsing for an image on site 1 ezoe directly redirect you to media/site1/image (with some config of course).

About searching with eZ Find I think that using multicore is mandatory for a better pertinence and language search. What's interesting is using multiple installation search to add a feature like : "search on other sites of the group". But all of that needs a good configuration of eZ Find.

An important thing is also the configuration of var/cache/storage directory. I usually configure different cache folder for each website but storage directory needs to be shared among siteaccess because when uploading a file in BO the file is stored in BO storage folder and when requesting the file in FO with content/download it calls the storage folder of the FO .. it doesn't work. (file_path is not saved at upload.)

Different cache folder works fine and you can use the new Cache / CacheItems in site.ini to define a new custom cache (for each siteaccess) to be able to empty the cache of one specific siteaccess in the shared BO (if any).

Cheers !

Matthieu

--
eZ certified developer: http://ez.no/certification/verify/346216

Softriva .com

Tuesday 29 June 2010 9:03:56 am

Hello,

I am a little confused about the following lines:

<span>SiteURL</span><span>=</span><span>localhost/ez<span>-4.3</span>-webin/index.php/public</span>
<span>SiteURL</span><span>=</span><span>example.com/index.php/public </span>

Is this line needed?

<span>SiteURL</span><span>=</span><span>localhost/ez<span>-4.3</span>-webin/index.php/public</span>

I think the first one above overrides it. Isn't it?

One more question. Do I still need those lines in my settings/siteaccess/public/site.ini.append.php ?

LoginPage=embedded
AdditionalLoginFormActionURL=http://www.ez.loc/index.php/mgr/user/login

Thx

Softriva .com

Sunday 04 July 2010 3:07:37 am

Hello,

Things started to clear up and I got everything working ok.

Now I need your help in sharing content under the root (Websites) between Public-site-one and Public-site-two. How can I do that?

Thank you

OOzy

Nicolas Pastorino

Monday 05 July 2010 12:15:11 am

"

Now I need your help in sharing content under the root (Websites) between Public-site-one and Public-site-two. How can I do that?

"

Hi OOzy,

You would pretty much rely on the multiple locations feature of eZ Publish. More details on this here : http://ez.no/doc/ez_publish/technical_manual/4_x/concepts_and_basics/content_management/the_content_node_tree

Let us know how things go,
Cheers,

--
Nicolas Pastorino
Director Community - eZ
Member of the Community Project Board

eZ Publish Community on twitter: http://twitter.com/ezcommunity

t : http://twitter.com/jeanvoye
G+ : http://plus.tl/jeanvoye

Wei Dai

Thursday 15 July 2010 12:38:46 am

Interesting tutorial. The example in this tutorial may seem simple but I think it is useful. I have wrote similar article on my blog a while ago, you may check that too: http://readtheweb.info/2009/11/29/get-start-a-new-ez-publish-project-part-i/

:)

Certified eZ Publish 4 developer looking for develop information & collaboration.

Nicolas Pastorino

Thursday 15 July 2010 12:44:13 am

Thanks for sharing this !

--
Nicolas Pastorino
Director Community - eZ
Member of the Community Project Board

eZ Publish Community on twitter: http://twitter.com/ezcommunity

t : http://twitter.com/jeanvoye
G+ : http://plus.tl/jeanvoye

Greg McAvoy-Jensen

Monday 04 October 2010 11:19:44 pm

"

Regarding "How to part 3": You don't need to change the template, either set RootNodeDepth=0 so RootNode setting is used for root_node parameter, or set RootNodeDepth=2 so it reflects the depth of your content tree your root node is and it will figure it out automatically.

Doing it this way will ensure that page_data works as intended, so paths and so on are correct.

"

André, thank you for this suggestion. I've tried it (on ezwebin 1.7.0, though I had also done it on earlier versions), but whether RootNodeDepth is 0 or 2, the top menu still returns children of node 2.

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

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.