Path

ez projects / sitelink / forum / general / multisite and multidomain :...


Multisite and multidomain : How it works ?

You need to be logged in to post messages in the forums. New users may register here.

Simon Boyer

Member since:
09 March 2011

Posts: 49

Wednesday 04 July 2012 9:50:30 am

Hi,

I have a multisite install, with one pathprefix per siteaccess.

- My content tree :



Root (id 2)


 |- Site 1 (id 3)


 |   |- Node5 (id 5)


 |


 |- Site 2 (id 4)


      |- Node6 (id 6)




- in settings/siteaccess/site1/site.ini.append.php :



[SiteSettings]


SiteURL=site1.com


 

[SiteAccessSettings]


PathPrefix=Site-1


PathPrefixExclude[]


PathPrefixExclude[]=Media


PathPrefixExclude[]=Users




- in settings/siteaccess/site2/site.ini.append.php :



[SiteSettings]


SiteURL=site2.com


 

[SiteAccessSettings]


PathPrefix=Site-2


PathPrefixExclude[]


PathPrefixExclude[]=Media


PathPrefixExclude[]=Users




- in settings/siteaccess/site1/content.ini.append.php :



[NodeSettings]


RootNode=3




- in settings/siteaccess/site2/content.ini.append.php :



[NodeSettings]


RootNode=4




- in settings/siteaccess/site1/sitelink.ini.append.php and settings/siteaccess/site2/sitelink.ini.append.php



[OperatorSettings]


SiteAccess[]


SiteAccess[site1]=site1.com


SiteAccess[site2]=site2.com




Now I try to use this code in my template :



{5|sitelink( hash( 'absolute', true() ) )}


{6|sitelink( hash( 'absolute', true() ) )}




And I get the following result from site1 :



http://site1.com/Node5


http://site1.com/Site-2/Node6




Instead of



http://site1.com/Node5


http://site2.com/Node6




How can I get my expected result ?

Thanks in advance

--
Simon Boyer
Developer at Open Wide

Up

Brendan Pike

Member since:
11 March 2003

Posts: 79

Monday 06 May 2013 6:39:32 am

Hi Simon

I see this is a pretty old thread and you never received a reply, I'm needing a similar solution where a client wants file view links to be redirected to their main site from their subsite which also uses a prefix.

Did you get it to work and if so do you have any tips?

Thanks

Australian eZ publish specialist http://www.dbinformatics.com.au

Up

Brendan Pike

Member since:
11 March 2003

Posts: 79

Monday 06 May 2013 8:57:34 am

I've just installed and testing and also was unable to get the host name to change, in my case I use sub-domains. one.site.com, two.site.com etc.

I've tried various settings but wasn't able to get a solution, is this a bug?

Australian eZ publish specialist http://www.dbinformatics.com.au

Up

Simon Boyer

Member since:
09 March 2011

Posts: 49

Monday 06 May 2013 9:52:08 am

Hi,

I finally developed an other extension : http://projects.ez.no/owmultisite

--
Simon Boyer
Developer at Open Wide

Up

You need to be logged in to post messages in the forums. New users may register here.