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.

eZ debug

Timing: Jan 19 2025 03:27:03
Script start
Timing: Jan 19 2025 03:27:04
Module start 'layout'
Timing: Jan 19 2025 03:27:04
Module start 'content'
Timing: Jan 19 2025 03:27:05
Module end 'content'
Timing: Jan 19 2025 03:27:05
Script end

Main resources:

Total runtime1.6045 sec
Peak memory usage4,096.0000 KB
Database Queries68

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0045 589.1797152.6250
Module start 'layout' 0.00450.0037 741.804739.4453
Module start 'content' 0.00811.5950 781.2500624.1875
Module end 'content' 1.60320.0013 1,405.437516.1563
Script end 1.6045  1,421.5938 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00300.1892160.0002
Check MTime0.00130.0802160.0001
Mysql Total
Database connection0.00050.032710.0005
Mysqli_queries1.529595.3260680.0225
Looping result0.00080.0499660.0000
Template Total1.571898.020.7859
Template load0.00220.139620.0011
Template processing1.569597.820620.7848
Template load and register function0.00020.013310.0002
states
state_id_array0.00090.055310.0009
state_identifier_array0.00230.141020.0011
Override
Cache load0.00200.1262530.0000
Sytem overhead
Fetch class attribute can translate value0.00110.068930.0004
Fetch class attribute name0.00160.099390.0002
XML
Image XML parsing0.00490.303530.0016
class_abstraction
Instantiating content class attribute0.00000.0016120.0000
General
dbfile0.00420.2596290.0001
String conversion0.00000.000540.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
6content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
6content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
10content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
5content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 29
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs