ezurl doesn't include siteaccess when MatchOrder=host;uri

Author Message

Jerome Despatis

Monday 17 May 2010 2:15:30 pm

Hi,

I've set my eZPublish with MatchOrder=host;uri, in order to have the siteaccess directly in the url, without any index.php

Therefore, I can have a clean multilingual url like you can see everywhere on the web:

http://ww.mywebsite/fr/something

http://ww.mywebsite/de/something

With siteaccess not included on main siteaccess: (thanks to RemoveSiteAccessIfDefaultAccess=enabled)

http://ww.mywebsite/something

etc...

But the problem is that, when I'm at http://www.mywebsite/zh/, i do a {'mymodule/myview'|ezurl} to have a clean URL. But the latter doesn't include the siteaccess. It gives in fact /mymodule/myview.

It should definitely return /zh/mymodule/myview

Any idea to achieve this ?

Thanks !

Jerome Despatis

Monday 17 May 2010 2:52:58 pm

Well, it works now...

no comment

Olaf Fichtner

Thursday 10 June 2010 5:04:35 am

Jerome, would you care to share your setup? I am trying to achieve the same, but am admittedly not very successful so far. Host SA works, but multilanguage does not. Unfortunately, many of the posts I am reading regarding this are adding to my confusion, so I am trying to find a few less confusing answers now...

Also, would you mind posting a link to that site?

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 14:53:15
Script start
Timing: Jan 18 2025 14:53:15
Module start 'layout'
Timing: Jan 18 2025 14:53:15
Module start 'content'
Timing: Jan 18 2025 14:53:16
Module end 'content'
Timing: Jan 18 2025 14:53:16
Script end

Main resources:

Total runtime1.5689 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0067 588.1719152.6563
Module start 'layout' 0.00670.0028 740.828139.5078
Module start 'content' 0.00951.5581 780.3359465.9531
Module end 'content' 1.56750.0014 1,246.28918.0938
Script end 1.5689  1,254.3828 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.2206160.0002
Check MTime0.00120.0785160.0001
Mysql Total
Database connection0.00100.063910.0010
Mysqli_queries1.511896.3619570.0265
Looping result0.00070.0464550.0000
Template Total1.516196.620.7581
Template load0.00190.119120.0009
Template processing1.514296.513420.7571
Template load and register function0.00020.010510.0002
states
state_id_array0.00170.108510.0017
state_identifier_array0.00270.171520.0013
Override
Cache load0.00160.0991210.0001
Sytem overhead
Fetch class attribute can translate value0.00060.040020.0003
Fetch class attribute name0.00210.134230.0007
XML
Image XML parsing0.00020.015820.0001
class_abstraction
Instantiating content class attribute0.00000.000830.0000
General
dbfile0.00350.2238100.0004
String conversion0.00000.000540.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 8
 Number of unique templates used: 4

Time used to render debug report: 0.0001 secs