Forums / General / redirection to external page

redirection to external page

Author Message

pierre oOo

Monday 26 May 2008 7:26:38 am

Hi all,

I don't know how to make a redirection to another external website, directly from a title of one article in the left menu...

for example :
I have a list of events in my "Events" folder.
I'd like all (or better only one) of subitems' menu be redirect to another website when clicked.

Hope you understand what I try to explain ...

Thanks.

Pierre.

Björn Dieding@xrow.de

Monday 26 May 2008 10:37:07 am

hi,

ideally there should be a simple solution out of the box but there isn`t.

This is hwo we handle the case.

We create a new class called "link to page"

The class has a 3 attributes one textline for the name a related object attribute and a url attribute.

After that we modify the menu templates to handle this class in a special way. E.g. that the href would be filled wiht either the infomration from the related object or url attribute

Looking for a new job? http://www.xrow.com/xrow-GmbH/Jobs
Looking for hosting? http://hostingezpublish.com
-----------------------------------------------------------------------------
GMT +01:00 Hannover, Germany
Web: http://www.xrow.com/

André R.

Monday 26 May 2008 12:13:16 pm

In ezwebin and ezflow there is a class called 'Link' that is threated like this (using the link in the object in the menus).
But this is only done in the top menu and not in the left menu at the moment, if you want to have the same behavior in the left menu, here is what you do:
1. look in menu/flat_top.tpl near the {if eq( $item.class_identifier, 'link')} code
2. duplicate it in the flat_left.tpl menu (both levels if you want)

Created a issue for it here:
http://issues.ez.no/IssueView.php?Id=13086&activeItem=1

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

pierre oOo

Tuesday 27 May 2008 2:46:55 am

Thanks for yours replies.

Pierre