eZ Community » Forums » Discussions » Lots of Websites, One eZ Publish...
expandshrink

Thursday 27 May 2010 5:36:44 pm - 12 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.

Friday 28 May 2010 5:32:13 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.

Modified on Friday 28 May 2010 5:36:28 pm by André R

Saturday 29 May 2010 3:43:30 pm

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

Tuesday 29 June 2010 6:03:56 pm

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

Sunday 04 July 2010 12:07:37 pm

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

Monday 05 July 2010 9: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,

Thursday 15 July 2010 9: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...art-a-new-ez-publish-project-part-i/

happy.gif Emoticon

Thursday 15 July 2010 9:44:13 am

Thanks for sharing this !

Tuesday 05 October 2010 8:19:44 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.

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.

Tuesday 24 January 2012 12:14:43 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.

It's a old comment, but I think lot's of people forget to remove the RootNodeDepth=1 from the override site.ini.

Tuesday 10 April 2012 9:10:59 am

Hi,

In the introduction, you say "make it easier to share content between databases".

Have you a link for a tutorial that explains how to create 2 websites (on a single installation) that have their own database but which may shared data with the database of the other site?

Thanks in advance.

Monday 17 September 2012 3:14:55 pm

The reply has been removed because of violation of forum rules.

Monday 23 September 2013 10:57:38 am

that was a nice tutorial

Thanks a lot

expandshrink

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

36 542 Users on board!

Forums menu