Making separate content branches

Author Message

Niels Chr. Alstrup

Wednesday 23 January 2008 6:17:02 am

I have some questions ...

I would like to create a separate branch of content; like the 'Media Library'. That is
- separated from the Content Structure.
- having its own tab in the Administration Interface.

I understand how to make custom Sections (in the Setup/Section area) and how to add a tab to the Admin. interface (through menu.ini).

But:
- Should I create a separate siteaccess for this new branch (there isn't one for Media)?
- How do I hide the branch in the Content Structure (like the Media branch is)?

Any tips or references would be appreciated.

Niels Alstrup

L O O P
Niels Chr. Alstrup
+45 2077 3296
http://www.loop.bz

Elena Ivanova

Wednesday 23 January 2008 9:07:46 am

Hello,

In content.ini there is a section with the following settings:

[NodeSettings]
# The node ID of the normal content tree
RootNode=2
# The node ID of the user tree
UserRootNode=5
# The node ID for the media tree
MediaRootNode=43
# The node ID for the setup tree
SetupRootNode=48
# The node ID for the design tree
DesignRootNode=58

So, I think, you might need to add a similiar line for the new branch.

Niels Chr. Alstrup

Tuesday 05 February 2008 4:18:25 am

Thanks, that sounds reasonable.

My question is then: How will eZ then know my new 'CustomRootNode'?

And how do I create the root node as not to be a child of 'RootNode' and thus part of the standard Content Structure? Do I have to tweak the database?

L O O P
Niels Chr. Alstrup
+45 2077 3296
http://www.loop.bz

Elena Ivanova

Tuesday 05 February 2008 6:09:31 am

Hi,

Look up in <i>menu.ini</i>. There is an example of doing a custom root node.

Niels Chr. Alstrup

Thursday 07 February 2008 1:17:13 am

Hi

Yes, I know about adding a custom tab in the Admin interface using menu.ini.

What I wanted to know was, how to move the new custom node to the top level (along with Content, Media, User etc.). Sorry, if that didn't come through in my last post.

I actually found a solution:
http://ez.ryba.eu/index.php/ez_publish/lab/custom_top_level_nodes_is_that_possible_round_i_exploration

but, I am curious if anybody know a less 'crude' way of doing it (not involving direct sql-management).

Niels

L O O P
Niels Chr. Alstrup
+45 2077 3296
http://www.loop.bz

Piotrek Karaƛ

Tuesday 26 February 2008 11:37:41 pm

<i>> I actually found a solution:
> http://ez.ryba.eu/index.php/ez_pu...is_that_possible_round_i_exploration</i>

Glad you find that useful. Just remember - this solution has not been challenged, yet. I'm not sure how safe it is... looking for free time to get it further, but who knows when that comes... ;)

--
Company: mediaSELF Sp. z o.o., http://www.mediaself.pl
eZ references: http://ez.no/partners/worldwide_partners/mediaself
eZ certified developer: http://ez.no/certification/verify/272585
eZ blog: http://ez.ryba.eu

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.