Forums / Developer / ez 3.10 urls and files accents

ez 3.10 urls and files accents

Author Message

Jean-Luc Nguyen

Tuesday 27 November 2007 1:40:16 am

Hello there,

I have just installed a clean version of ez 3.10, and we are developping a french website. French may contain accents, like "Traité de modélisation". When we are creating content with accents, the ezoperator ezurl should delete all accents (it was in 3.9), and ez 3.10 also creates bad files or images names on storage, like "Môn-produït-à véc-dès-accènts.jpg". Is it a bug for ez 3.10?

Thanks a lot for your help, ez rules!

http://www.acidre.com

Paul Leclercq

Tuesday 27 November 2007 8:59:25 am

No this isn't a bug for 3.10. ezurl will not get ride of the accents in a string.
All ezurl operator will do is check the various siteaccesses and find the which file it should use.

You can also specify 2 options to |ezurl('no', 'full')

'no' will get ride of the quotes surrounding your url and 'full' will specify the full url such as http://www.mydomaine.com/index.php/siteaccess/myurlalias

What you are suppose to do is

<a href={$node.url_alias|ezurl()}>my link</a>

here is the doc for ezurl:
http://ez.no/doc/ez_publish/technical_manual/3_10/reference/template_operators/urls/ezurl

This may be a little off the subject:
But In some obscure moment you may not be able to access the url_alias of your object and you will only get the string. Then this would be the code for your operator:

function convertToAlias($string){
include_once( 'kernel/classes/ezurlalias.php' );
$new_string = eZURLAlias::convertToAlias($string );
return $new_string;
}

And he is the documentation on how to create an operator:
http://ez.no/ezpublish/documentation/development/extensions/template_operator

Jean-Luc Nguyen

Thursday 29 November 2007 9:33:01 am

Yes I actually saw that, thanks a lot. When you are installing ez 3.10, after that, if you have unicode website but you wish to have standard urls like on 3.9, you have to add on site.ini:

[URLTranslator]
TransformationGroup=urlalias_compat

More info here: http://ez.no/doc/ez_publish/technical_manual/3_10/features/multi_language_support_for_url_aliases

I hope this will help!

http://www.acidre.com

eZ debug

Timing: Jan 18 2025 16:24:55
Script start
Timing: Jan 18 2025 16:24:55
Module start 'content'
Timing: Jan 18 2025 16:24:56
Module end 'content'
Timing: Jan 18 2025 16:24:56
Script end

Main resources:

Total runtime0.8678 sec
Peak memory usage4,096.0000 KB
Database Queries194

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0080 588.8281180.8359
Module start 'content' 0.00800.7436 769.6641554.3047
Module end 'content' 0.75160.1162 1,323.9688332.7500
Script end 0.8677  1,656.7188 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00440.5016210.0002
Check MTime0.00160.1847210.0001
Mysql Total
Database connection0.00080.089510.0008
Mysqli_queries0.791991.25281940.0041
Looping result0.00180.20731920.0000
Template Total0.833996.120.4170
Template load0.00190.223720.0010
Template processing0.832095.874120.4160
Template load and register function0.00010.013710.0001
states
state_id_array0.00230.270210.0023
state_identifier_array0.00180.205720.0009
Override
Cache load0.00170.1902320.0001
Sytem overhead
Fetch class attribute can translate value0.00140.160030.0005
Fetch class attribute name0.00130.153850.0003
XML
Image XML parsing0.00130.148130.0004
class_abstraction
Instantiating content class attribute0.00000.001360.0000
General
dbfile0.00340.3927320.0001
String conversion0.00000.000830.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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
8content/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: 22
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs