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.