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!

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 19 2025 05:03:27
Script start
Timing: Jan 19 2025 05:03:27
Module start 'layout'
Timing: Jan 19 2025 05:03:27
Module start 'content'
Timing: Jan 19 2025 05:03:28
Module end 'content'
Timing: Jan 19 2025 05:03:28
Script end

Main resources:

Total runtime1.1976 sec
Peak memory usage4,096.0000 KB
Database Queries60

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0083 589.1563152.6250
Module start 'layout' 0.00830.0027 741.781339.4609
Module start 'content' 0.01111.1848 781.2422545.9922
Module end 'content' 1.19580.0017 1,327.234412.1563
Script end 1.1976  1,339.3906 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00410.3442160.0003
Check MTime0.00150.1290160.0001
Mysql Total
Database connection0.00170.145110.0017
Mysqli_queries1.136694.9095600.0189
Looping result0.00060.0522580.0000
Template Total1.150496.120.5752
Template load0.00300.247720.0015
Template processing1.147595.811820.5737
Template load and register function0.00020.015310.0002
states
state_id_array0.00330.273510.0033
state_identifier_array0.00180.151220.0009
Override
Cache load0.00250.2091280.0001
Sytem overhead
Fetch class attribute can translate value0.00080.070220.0004
Fetch class attribute name0.00170.138550.0003
XML
Image XML parsing0.00250.208320.0012
class_abstraction
Instantiating content class attribute0.00000.001050.0000
General
dbfile0.00260.2189160.0002
String conversion0.00000.000840.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
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 15
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs