Forums / Developer / Simple but hard to figure it out!

Simple but hard to figure it out!

Author Message

Jorge estévez

Friday 03 April 2009 5:01:41 am

Hi to all,

I have added in my pagelayout:

<a href="www.sosabravo.com/index.php/eng" target="_self">English</a>

If I look at the source code of the page this appears:

<a href="www.sosabravo.com/index.php/eng" target="_self">English</a> 

But when I put the mouse over the link this is the result of the url:

http://www.sosabravo.com/index.php/www.sosabravo.com/index.php/eng

And of course the link goes where it should not, Just cannot figure out what's happening!

thanks

Check it out at www.sosabravo.com

Diseño Web Cuba
Web Design Cuba
www.elfosdesign.com

André R.

Friday 03 April 2009 5:53:38 am

You forgot "http://", you always need that on absolute ulrs in html.

http://htmlgoodies.com/primers/html/
http://w3schools.com/html/default.asp

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Andreas Kaiser

Friday 03 April 2009 10:26:19 am

Sure you know, but in these cases I think a good option is to use "|ezurl" filter (for example if you remove index.php or change domain the template code is still valid):

<a href={"eng"|ezurl()} >English</a> 

eZ Partner in Madrid (Spain)
Web: http://www.atela.net/

eZ debug

Timing: Jan 20 2025 00:29:39
Script start
Timing: Jan 20 2025 00:29:39
Module start 'content'
Timing: Jan 20 2025 00:29:39
Module end 'content'
Timing: Jan 20 2025 00:29:39
Script end

Main resources:

Total runtime0.0200 sec
Peak memory usage2,048.0000 KB
Database Queries4

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0066 588.9609180.8281
Module start 'content' 0.00660.0057 769.789194.0078
Module end 'content' 0.01230.0076 863.796970.7031
Script end 0.0199  934.5000 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002412.2333120.0002
Check MTime0.00125.7757120.0001
Mysql Total
Database connection0.00083.776910.0008
Mysqli_queries0.002411.814240.0006
Looping result0.00000.080020.0000
Template Total0.007236.310.0072
Template load0.00094.338110.0009
Template processing0.006431.853110.0064
Override
Cache load0.00062.914710.0006
General
dbfile0.003115.4191100.0003
String conversion0.00000.040630.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs