Forums / Setup & design / file for changing "ezurl"-command ?

file for changing "ezurl"-command ?

Author Message

ole poulsen

Thursday 06 April 2006 4:15:43 am

Hi,

I want to ask for help with what I think would be how to change the automatically generated ezurl.

"All" I need is to add a name anchor to all internal links. I can do it by writing the link-base manually and then ad the ez-node-url and then the name anchor - in every link. Then it'll be something like: like <a href=".../index.php/plain{$menu.url_alias}#name-anchor">.

That is a little bothersome but of course I could do that.

I dont think it is a wise idea, though, because the ezurl is important for keeping the url-base correct when i move the site online. Also other problems could arise when for example linking from a child-node and so on...

Therefore et would be nice to be able to keep the normal generated <a href={$menu.url_alias|ezurl}> and then be able to change what the command "ezurl" does.
That is - there must be a file, where i can change the standard ezurl-command and just ad a name-anchor to it.
Right?

It seems - to me - like that shouldnt be a big deal, but I just can't find that file!!

If you have other suggestions, that is of course also welcome.

Thank you for your help...

_________

PS. I blame my silly non-programming designer-boss. I would of course just have made a design where every page is supposed to load at the top. But that is not an option I have at the moment.

ole poulsen

Monday 10 April 2006 3:42:05 am

... Or if someone has ANY idea about how I can include a link-anchor (link#anchor) top the internal links without compromising the automatic link-base/root?

The problem is that I can't use $node.url|ezurl and then ad #anchor because ezurl automatically puts in quotationsmarks (""). If only I could at least get rid of that then I could change a lot. Even better, of course, would it be if I could change all ezurl's to include the anchor.

But ANY ideas are welcome.

Kristian Hole

Monday 10 April 2006 4:10:15 am

If you use the parameter no to ezurl, it skips the quotes.

So you can use something like:

<a href="{$node.url|ezurl(no)}#kake">My link</a>

Kristian

http://ez.no/ez_publish/documenta...tricks/show_which_templates_are_used
http://ez.no/doc/ez_publish/techn...te_operators/miscellaneous/attribute

ole poulsen

Monday 10 April 2006 5:17:05 am

YAY!
That works ... my hero!

eZ debug

Timing: Jan 31 2025 01:30:08
Script start
Timing: Jan 31 2025 01:30:08
Module start 'content'
Timing: Jan 31 2025 01:30:08
Module end 'content'
Timing: Jan 31 2025 01:30:08
Script end

Main resources:

Total runtime0.1997 sec
Peak memory usage8,192.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0064 587.9453370.2969
Module start 'content' 0.00650.0118 958.24221,005.6563
Module end 'content' 0.01820.1814 1,963.89843,895.4922
Script end 0.1996  5,859.3906 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00452.2316200.0002
Check MTime0.00130.6484200.0001
Mysql Total
Database connection0.00070.346710.0007
Mysqli_queries0.105953.01681410.0008
Looping result0.00150.75151390.0000
Template Total0.181090.710.1810
Template load0.00080.383710.0008
Template processing0.180290.270810.1802
Override
Cache load0.00050.275010.0005
Sytem overhead
Fetch class attribute can translate value0.00221.085810.0022
XML
Image XML parsing0.00030.134710.0003
General
dbfile0.00462.3025200.0002
String conversion0.00000.002530.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
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