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

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 18 2025 15:13:39
Script start
Timing: Jan 18 2025 15:13:39
Module start 'layout'
Timing: Jan 18 2025 15:13:39
Module start 'content'
Timing: Jan 18 2025 15:13:40
Module end 'content'
Timing: Jan 18 2025 15:13:40
Script end

Main resources:

Total runtime0.8072 sec
Peak memory usage4,096.0000 KB
Database Queries62

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0044 589.0234152.6250
Module start 'layout' 0.00440.0027 741.648439.4453
Module start 'content' 0.00710.7985 781.0938590.8984
Module end 'content' 0.80560.0016 1,371.992212.4766
Script end 0.8072  1,384.4688 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.3958160.0002
Check MTime0.00140.1682160.0001
Mysql Total
Database connection0.00050.066410.0005
Mysqli_queries0.756193.6643620.0122
Looping result0.00060.0791600.0000
Template Total0.781896.820.3909
Template load0.00230.278820.0011
Template processing0.779596.565620.3898
Template load and register function0.00020.021810.0002
states
state_id_array0.00060.080110.0006
state_identifier_array0.00100.118320.0005
Override
Cache load0.00190.2402300.0001
Sytem overhead
Fetch class attribute can translate value0.00060.076630.0002
Fetch class attribute name0.00100.119560.0002
XML
Image XML parsing0.00120.143130.0004
class_abstraction
Instantiating content class attribute0.00000.001460.0000
General
dbfile0.00090.1089230.0000
String conversion0.00000.000940.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
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 17
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs