"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

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 20:55:32
Script start
Timing: Jan 18 2025 20:55:32
Module start 'layout'
Timing: Jan 18 2025 20:55:32
Module start 'content'
Timing: Jan 18 2025 20:55:33
Module end 'content'
Timing: Jan 18 2025 20:55:33
Script end

Main resources:

Total runtime1.0743 sec
Peak memory usage4,096.0000 KB
Database Queries59

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0063 588.0469152.6406
Module start 'layout' 0.00630.0026 740.687539.4766
Module start 'content' 0.00891.0636 780.1641565.5000
Module end 'content' 1.07250.0017 1,345.664112.1250
Script end 1.0743  1,357.7891 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00440.4075160.0003
Check MTime0.00140.1323160.0001
Mysql Total
Database connection0.00090.086910.0009
Mysqli_queries1.023195.2318590.0173
Looping result0.00070.0646570.0000
Template Total1.040596.920.5202
Template load0.00220.201120.0011
Template processing1.038396.648620.5192
Template load and register function0.00020.015710.0002
states
state_id_array0.00100.089510.0010
state_identifier_array0.00090.080120.0004
Override
Cache load0.00170.1620190.0001
Sytem overhead
Fetch class attribute can translate value0.00080.071730.0003
Fetch class attribute name0.00120.111540.0003
XML
Image XML parsing0.00100.094430.0003
class_abstraction
Instantiating content class attribute0.00000.000640.0000
General
dbfile0.00180.1714160.0001
String conversion0.00000.000840.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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 12
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs