Forums / Setup & design / "how to set default node" or "the right redirect"?

"how to set default node" or "the right redirect"?

Author Message

Ivan Baydanutsa

Friday 08 December 2006 5:15:47 am

I have "bio" section on site and it has several subsections like "about", "news", "faq", etc

So what I need is make ez display say "about" section when I type "mysite.com/bio". Actually to make "about" default section in "bio" folder.

I tryied to make system redirect "/bio" => "/content/view/555" but it makes admin cp to follow that redirect and thus I cannot access "bio" folder child nodes to edit.

Is there any simple way to do it? Maybe some overrides like in templates?

2B OR BOT 2B = FF

Nabil Alimi

Friday 08 December 2006 7:41:48 am

Hi Ivan,

This can be achieved in your override/bio/site.ini.append.php with

[SiteSettings]
IndexPage=/content/view/full/the-node-you-want
DefaultPage=/content/view/full/the-node-you-want

My blog : http://www.starnab.com/ezpublish / http://www.starnab.com/ / http://www.assiki-consulting.com
eZ Publish Freelance developper. Feel free to contact me +33 674 367 057
nabil at assiki d0t fr

Claudia Kosny

Friday 08 December 2006 1:15:20 pm

Hi Ivan

If you just want to display the same content under bio and about you can also create an override for the bio folder and in the template call only {node_view_gui view=full content_node=$aboutnode}.

Maybe also this redirect operator is of interest to you:
http://ez.no/community/contribs/template_plugins/redirect_operators

Please note that this sends a http header 301 which might not be suitable for you, so you should change that if necessary.

Claudia