Replace the root folder (2) by an object of custom class

Author Message

Sébastien Antoniotti

Thursday 03 April 2008 5:06:39 am

Hi,

In order to use the ezflow blocks system on my homepage, in would like to create a custom class called "homepage" whith an layout attribute, then instanciate it and finally swap this new node with the root folder.

Do you think is there any way to do this swap and keep the node_id of my new object to 2 ?

If there is an alternative I am taker of it.

Thanks advance !

eZ Publish Freelance
web : http://www.webaxis.fr

Stéphane Bullier

Thursday 03 April 2008 5:15:35 am

Hello Seb,

Look at :
http://ez.no/doc/ez_publish/user_manual/4_0/the_administration_interface/the_content_structure_tab
and looking for "Swap with another node"

Stéphane

Sébastien Antoniotti

Thursday 03 April 2008 5:26:36 am

Hi Stéphane,

You're right !

I was thinking that when swapping two nodes they respectivly keeps theirs node_id, but they take the node_id of the replaced node, so it's ok.

Thanks a lot !

eZ Publish Freelance
web : http://www.webaxis.fr

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 31 2025 03:44:44
Script start
Timing: Jan 31 2025 03:44:44
Module start 'layout'
Timing: Jan 31 2025 03:44:44
Module start 'content'
Timing: Jan 31 2025 03:44:44
Module end 'content'
Timing: Jan 31 2025 03:44:44
Script end

Main resources:

Total runtime0.0211 sec
Peak memory usage4,096.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0046 588.3750151.2422
Module start 'layout' 0.00460.0043 739.6172220.7500
Module start 'content' 0.00880.0110 960.3672997.8672
Module end 'content' 0.01980.0013 1,958.234433.9922
Script end 0.0211  1,992.2266 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002310.8383140.0002
Check MTime0.00094.4686140.0001
Mysql Total
Database connection0.00073.421510.0007
Mysqli_queries0.00219.830730.0007
Looping result0.00000.109610.0000
Template Total0.00094.210.0009
Template load0.00073.301710.0007
Template processing0.00020.924010.0002
Override
Cache load0.00052.208310.0005
General
dbfile0.00115.353080.0001
String conversion0.00000.044140.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