Override node with another node

Author Message

Ivan Švogor

Tuesday 18 January 2011 2:30:45 am

Hello,

Is it possible to override node with another node? Say my user asks for node 2, and I display node 55.. Is there a way to do this?

H-Works Agency

Tuesday 18 January 2011 4:17:39 am

Maybe using ezpublish url rewrite module.

Say your user asks for /content/view/full/250 and you serve /content/view/full/300.

EZP is Great

Nicolas Pastorino

Tuesday 18 January 2011 5:09:14 am

Hi Ivan,

If it is only about node 2, you can use the following configuration directive (site.ini) :

[SiteSettings]
IndexPage=/content/view/full/55/ 
DefaultPage=/content/view/full/55/

If the scope of your question is larger, you may have to use niftier tricks. An option could be to develop a custom template operator, placed in the template used for node 2 (in your example), which redirects (Location header for instance) to the other node.

Let us know how things go,
Cheers,

--
Nicolas Pastorino
Director Community - eZ
Member of the Community Project Board

eZ Publish Community on twitter: http://twitter.com/ezcommunity

t : http://twitter.com/jeanvoye
G+ : http://plus.tl/jeanvoye

Ivan Švogor

Tuesday 18 January 2011 7:43:06 am

Thanks folks.. That answers my question! :)

Igor Vrdoljak

Thursday 20 January 2011 10:50:30 pm

Also, if you just want to redirect to another node (from whatever template you want), there are a few extensions that provide you with a redirect operator that you can use in your template code:

http://www.netgen.hr/eng
http://twitter.com/ivrdoljak

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.