Forums / Install & configuration / Change the class of the top level (root) node?

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 ^^