This site has been archived and you can no longer log in or post new messages. For up-to-date community resources please visit ezplatform.com

eZ Community » Forums » Setup & design » Determine siteaccess from Uri
expandshrink

Determine siteaccess from Uri

Determine siteaccess from Uri

Wednesday 25 July 2012 8:41:57 am - 3 replies

Hi,

I have different sites and one eZ Publish installation. My sites url are :

  • www.domain.com/key1/key2
  • www.domain.com/key3/key4
  • www.domain.com/key5

Then sometimes i have 2 identifier in my url and another time i go only one.

My problem is : How can i determine the siteaccess without to know the keys number ?

I can use MathOrder=uri and URIMatchType=element URIMatchElement=2 but it's gonna work only if i already use the same number of keys.

Anyone got idea ? If not, i think i will need to add a new MatchOrder.

Thanks,

 

 

 

Wednesday 25 July 2012 9:10:51 am

Hi.

Perhaps instead ofUIRMatchElement, your answer lies with the use of: URIMatchRegexpItem

Wednesday 25 July 2012 9:29:16 am

Yes, i think to use it but i have an back office module which generate a new site (conf files...) automatically.

And the user define site keys inside the back office module.

Thursday 16 August 2012 1:44:25 pm

What's the use-case for this Etienne?  What will happen if someone visits www.domain.com/key1/ (if the siteaccess matches "/key1/key2/"blunk.gif Emoticon?  I toyed with the idea of this for a /<country>/<language>/ setup, but ended up just going with /<country>-<language>/ (e.g "/ca-fr/"blunk.gif Emoticon when needed.

expandshrink

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

36 542 Users on board!

Forums menu

Proudly Developed with from