This site has been archived. To learn more about our current products Ibexa Content, Ibexa Experience, Ibexa Commerce head over to the Ibexa Developer Portal

eZ Community » Forums » Setup & design » Override node with another node
expandshrink

Override node with another node

Override node with another node

Tuesday 18 January 2011 11:30:45 am - 4 replies

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?

Tuesday 18 January 2011 1:17:39 pm

Maybe using ezpublish url rewrite module.

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

Tuesday 18 January 2011 2:09:14 pm

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,

Tuesday 18 January 2011 4:43:06 pm

Thanks folks.. That answers my question! happy.gif Emoticon

Friday 21 January 2011 7:50:30 am

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:

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from