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

eZ debug

Timing: Jan 30 2025 20:31:10
Script start
Timing: Jan 30 2025 20:31:10
Module start 'content'
Timing: Jan 30 2025 20:31:10
Module end 'content'
Timing: Jan 30 2025 20:31:11
Script end

Main resources:

Total runtime0.4105 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.0073 587.9219370.3047
Module start 'content' 0.00730.0358 958.22661,005.4844
Module end 'content' 0.04320.3673 1,963.71093,893.9375
Script end 0.4105  5,857.6484 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00531.2897200.0003
Check MTime0.00130.3288200.0001
Mysql Total
Database connection0.00060.137210.0006
Mysqli_queries0.184344.90151410.0013
Looping result0.00962.33791390.0001
Template Total0.367089.410.3670
Template load0.00070.167110.0007
Template processing0.366389.217210.3663
Override
Cache load0.00050.112310.0005
Sytem overhead
Fetch class attribute can translate value0.01413.433810.0141
XML
Image XML parsing0.00030.064610.0003
General
dbfile0.02265.5099200.0011
String conversion0.00000.000930.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.0002 secs