Forums / General / Default Access on Multiple site settings

Default Access on Multiple site settings

Author Message

hassan zerkoune

Friday 02 April 2004 4:50:08 am

Hi!

I've set a multilingual site in two langages : french( site access : fr) and english (site access : en).
It runs perfectly when i access to my site with these URLs : http://www.mysite.com/en or http://mysite.com/fr .

When I try to join this URL : http://www.mysite.com/ whithout the site access after.
I accessed to the default access set in the site.ini.append.php which is here the site in english ( DefaultAccess=en ).
The problem is that some links in my pagelayout don't run with this URL. it's the case for exemple with "login", "sign-up", "submit comment" ...
I've URLs like this : http://www.mysite.com/user/login ... which don't work at all.
I encounter a difficulty to make the links on the pagelyout point with the default site access written in it like this (http://www.mysite.com/en/content/view/full/products)

When you arrive in www.fast.no, all the links on the pagelayout are enableb with the default access : http://fast.no/us/????. So i would like to do the same thing with my site.

Could you please help me in order to enable this feature on my site.
Thank you!

Ole Morten Halvorsen

Friday 02 April 2004 6:10:45 am

Are you using the ezurl operator when creating links?

Example

<a href={$node.url_alias|ezurl}>This is a link</a>
<a href={"/user/login"|ezurl}>Login here</a>

Check out http://ez.no/ez_publish/documentation/reference/template_operators/urls/ezurl for documenation on the ezurl operator.

Ole.

Senior Software Engineer - Vision with Technology

http://www.visionwt.com
http://www.omh.cc
http://www.twitter.com/omh

eZ Certified Developer
http://ez.no/certification/verify/358441
http://ez.no/certification/verify/272578

hassan zerkoune

Friday 02 April 2004 7:35:48 am

Yes of course, I use the ezurl operator to create my links.

The links works well when I access to my site by the URL : http://mysite.com/en or http://mysite.com/fr and also by the URL : http://mysite.com/.
Except that for this last case the links are formatted like this : http://mysite.com/user/login (doesn't work/no database connection) or http://mysite.com/content/view/full/44 (works but if i want to submit comment i have to login and it 's the same problem as above).
So, for the last case, i would like to add in my links the default site access which is the part : /en in the URL.

The question is : do I have to make test on the URL when i access the site to write the correct links or is there any rules or configurations that i have missed?

Thank you.

hassan zerkoune

Monday 19 April 2004 8:30:52 am

Please, can someone help me to set up those Links i described in the last post.
Thank You!

eZ debug

Timing: Jan 18 2025 15:56:34
Script start
Timing: Jan 18 2025 15:56:34
Module start 'content'
Timing: Jan 18 2025 15:56:34
Module end 'content'
Timing: Jan 18 2025 15:56:35
Script end

Main resources:

Total runtime0.8379 sec
Peak memory usage4,096.0000 KB
Database Queries197

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0075 587.8203180.8203
Module start 'content' 0.00750.6855 768.6406559.0469
Module end 'content' 0.69300.1448 1,327.6875336.7656
Script end 0.8378  1,664.4531 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00430.5115210.0002
Check MTime0.00180.2133210.0001
Mysql Total
Database connection0.00110.129510.0011
Mysqli_queries0.753389.89981970.0038
Looping result0.00210.25281950.0000
Template Total0.801995.720.4009
Template load0.00200.240820.0010
Template processing0.799895.457620.3999
Template load and register function0.00010.012810.0001
states
state_id_array0.00100.117910.0010
state_identifier_array0.00170.201320.0008
Override
Cache load0.00170.2007330.0001
Sytem overhead
Fetch class attribute can translate value0.00130.157730.0004
Fetch class attribute name0.00100.125250.0002
XML
Image XML parsing0.00170.207430.0006
class_abstraction
Instantiating content class attribute0.00000.001770.0000
General
dbfile0.00760.9102270.0003
String conversion0.00000.001030.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
9content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
5content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 24
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs