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

Author Message

James Robertson

Sunday 07 August 2005 9:36:14 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
referrs 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:09:39 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.

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 23:02:52
Script start
Timing: Jan 18 2025 23:02:52
Module start 'layout'
Timing: Jan 18 2025 23:02:52
Module start 'content'
Timing: Jan 18 2025 23:02:52
Module end 'content'
Timing: Jan 18 2025 23:02:52
Script end

Main resources:

Total runtime0.0226 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0090 588.0391152.6406
Module start 'layout' 0.00900.0037 740.679739.4766
Module start 'content' 0.01270.0075 780.156389.3359
Module end 'content' 0.02020.0023 869.492230.3047
Script end 0.0225  899.7969 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.003013.1161140.0002
Check MTime0.00125.4316140.0001
Mysql Total
Database connection0.00104.314210.0010
Mysqli_queries0.004319.266530.0014
Looping result0.00000.066610.0000
Template Total0.00188.110.0018
Template load0.00104.318510.0010
Template processing0.00093.790910.0009
Override
Cache load0.00062.828910.0006
General
dbfile0.002410.769280.0003
String conversion0.00000.053940.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs