Forums / Extensions / eZ Flow / How to replace root "Content" with a 'frontpage' objet ?

How to replace root "Content" with a 'frontpage' objet ?

Author Message

H-Works Agency

Wednesday 30 July 2008 3:59:37 am

Hello,

I have a ezp install with a root folder.

How can i replace this root node with frontpage object i just created - for now as a child of this root "Content" folder.

This i really a problem in ezp not being able to manipulate objects having parent-node-id = 1.

Would be a great help to be able to create an object with depth = 0

EZP is Great

Bin LIU

Wednesday 30 July 2008 4:31:46 am

I think you must change it in database

firstly, import the class "frontpage".
if you have it by default, the class ID is 23

Then, use phpmyadmin, in table ezcontentobject_tree find the contentobject_id of the node_id 2. by default is 57

do (before this, please backup the database.)


update ezcontentobject set contentclass_id = 23 where id =57;

 


delete from ezcontentobject_attribute where contentobject_id = 57;

In the BO, delete the vache view node 2, and edit it, add a new version

normally, it's in frontpage.

Good luck

=== Lagardère Active ===

Fetch random
http://projects.ez.no/la_fetch_random
LA Static Cache
http://projects.ez.no/lastaticcache
LA Bookmarks (jquery)
http://projects.ez.no/labookmark
LA Calendar (jquery)
http://projects.ez.no/lacalendar

My site ez
http://lingping.info

Gaetano Giunta

Wednesday 30 July 2008 9:39:25 am

Or just use context menu - swap object!

Principal Consultant International Business
Member of the Community Project Board

J-A Eberhard

Saturday 16 August 2008 1:54:27 am

Hi,

In eZ publish serie 4.x, you have to type

UPDATE `ezcontentobject` SET `contentclass_id` = '23' WHERE `ezcontentobject`.`id` =1 LIMIT 1 ;

where folder is class 1 and frontpage class 23

Open Source Solution Provider
Open-Net Ltd Switzerland
http://www.open-net.ch

J-A Eberhard

Saturday 16 August 2008 1:56:08 am

In eZ 4.x you have to use
UPDATE `ezcontentobject` SET `contentclass_id` = '23' WHERE `ezcontentobject`.`id` =1 LIMIT 1 ;

Open Source Solution Provider
Open-Net Ltd Switzerland
http://www.open-net.ch

Marius Edvardsen

Tuesday 26 August 2008 5:47:03 am

Did a "UPDATE..." in mySQL. The content root now is listed as a "Frontpage" and not a "Folder". My problem is that it still only shows Folder-attributes, and not any Frontpage attributes as "Banner" etc. I allso have emptyed all caches. What am I doing wrong here?

Bin LIU

Wednesday 27 August 2008 1:05:36 am

Hi Marius,

I think you hadn't delete the contentobject_attribute. if you delete it, il will recreate the new attributes as a frontpage

=== Lagardère Active ===

Fetch random
http://projects.ez.no/la_fetch_random
LA Static Cache
http://projects.ez.no/lastaticcache
LA Bookmarks (jquery)
http://projects.ez.no/labookmark
LA Calendar (jquery)
http://projects.ez.no/lacalendar

My site ez
http://lingping.info

Marius Edvardsen

Saturday 30 August 2008 2:05:50 am

Thanks, would believe that it would do the trick. However did I just use Gaetano Giunta's swap object tip to work around the problem. (Didn't know that you had to left click the icon to acess the context menu - new world opened ).

Anyways, problem solved! Thanks!