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
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>
</code>
Instead of
<code>
</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 10:05:20 am