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.