Change the class of the top level (root) node?

Author Message

James Robertson

Tuesday 09 August 2005 7:41:55 pm

How do I change the class of the top level (root) node (ie. from a Folder class to something else)?

http://ez.no/download/changelogs/ez_publish_3_5/improved_class_removal_checks
refers to '...The only way to remove this class then is to first to swap the top-level node with another node which uses a different class.'

James Robertson

Wednesday 07 September 2005 7:08:45 pm

I meant the top-level 'Content' node (ie. node ID 2).

The only way I have found to do this is to redefine the Folder class into something else. Then, if you still want a Folder class, to create a new class and define it as per the old Folder class.

Bertrand Dunogier

Tuesday 13 September 2005 11:26:22 am

As far as I know, the only way is to create the node you want as the top level node, then use the swap function to swap node 2 and your node.

As far as I'm concerned, I usually create a separate node I specify as DefaultPage. But from a structural point of vue, having the hompage at the top level is really better. And it doesn't mess up the breadcrumb navigation ^^

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 19 2025 09:42:44
Script start
Timing: Jan 19 2025 09:42:44
Module start 'layout'
Timing: Jan 19 2025 09:42:44
Module start 'content'
Timing: Jan 19 2025 09:42:45
Module end 'content'
Timing: Jan 19 2025 09:42:45
Script end

Main resources:

Total runtime1.0143 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0069 590.5391152.6563
Module start 'layout' 0.00690.0061 743.195339.5078
Module start 'content' 0.01300.9995 782.7031501.5234
Module end 'content' 1.01250.0018 1,284.22668.1094
Script end 1.0143  1,292.3359 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.3490160.0002
Check MTime0.00130.1312160.0001
Mysql Total
Database connection0.00100.100410.0010
Mysqli_queries0.960194.6596570.0168
Looping result0.00070.0654550.0000
Template Total0.969995.620.4850
Template load0.00250.251220.0013
Template processing0.967495.371220.4837
Template load and register function0.00010.008210.0001
states
state_id_array0.00230.225410.0023
state_identifier_array0.00240.238320.0012
Override
Cache load0.00200.1951140.0001
Sytem overhead
Fetch class attribute can translate value0.00080.082620.0004
Fetch class attribute name0.00200.200640.0005
XML
Image XML parsing0.00050.053420.0003
class_abstraction
Instantiating content class attribute0.00000.001450.0000
General
dbfile0.00090.0917160.0001
String conversion0.00000.001140.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
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.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/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: 6

Time used to render debug report: 0.0002 secs