This site has been archived. To learn more about our current products Ibexa Content, Ibexa Experience, Ibexa Commerce head over to the Ibexa Developer Portal

eZ Community » Projects » SiteLink

SiteLink

Thursday 31 May 2012 - http://projects.ez.no/sitelink

SiteLink provides a replacement for ezurl and ezroot to provide more robust internal linking capabilities such as:- switching hostnames when linking to nodes in other siteacesses- providing direct download link for file objects (rather than linking to the node view full)- works multilingual setups

» Visit project page    » Project members    » Reviews

Latest forum activity - Visit project's forums page

Wednesday 04 July 2012 10:05:06 am

Hi,

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

- My content tree :

<code>

Root (id 2)

|- Site 1 (id 3)

| |- Node5 (id 5)

|

|- Site 2 (id 4)

|- Node6 (id 6)

</code>

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

<code>

[SiteSettings]

SiteURL=site1.com

[SiteAccessSettings]

PathPrefix=Site-1

PathPrefixExclude[]

PathPrefixExclude[]=Media

PathPrefixExclude[]=Users

</code>

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

<code>

[SiteSettings]

SiteURL=site2.com

[SiteAccessSettings]

PathPrefix=Site-2

PathPrefixExclude[]

PathPrefixExclude[]=Media

PathPrefixExclude[]=Users

</code>

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

<code>

[NodeSettings]

RootNode=3

</code>

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

<code>

[NodeSettings]

RootNode=4

</code>

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

<code>

[OperatorSettings]

SiteAccess[]

SiteAccess[site1]=site1.com

SiteAccess[site2]=site2.com

</code>

Now I try to use this code in my template :

<code>

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

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

</code>

And I get the following result from site1 :

<code>

http://site1.com/Node5

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

</code>

Instead of

<code>

http://site1.com/Node5

http://site2.com/Node6

</code>

How can I get my expected result ?

Thanks in advance

Monday 06 May 2013 7:05:21 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

Monday 06 May 2013 9:05:20 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?

Monday 06 May 2013 10:05:20 am

Hi,

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

Sunday 20 August 2017 3:05:27 am

Hello,

This project's source code has been mirrored: https://github.com/ezpublishlegacy/sitelink/

Cheers,

Brookins Consulting

Members - Visit project's team page
Real name:
Mark Marsiglio
Country:
United States 
#Posts:
395
Project reviews - See all reviews

No review yet.

Proudly Developed with from