Forums / Developer / Custom top level nodes

Custom top level nodes

Author Message

Piotrek Karaś

Saturday 29 December 2007 8:46:28 am

I've just experimented with the content node tree a bit, and added an additional top level node. The system seems to handle it fine on the basic display/edit level.

Can you see any potential use for custom top level nodes (that the content tree + sections + access control system wouldn't be enough for)? And if so, any potential risks?

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

Heath

Saturday 29 December 2007 10:54:20 am

That's interesting ...

Why not publish a brief example of this solution on http://ezpedia.org

Cheers,
Heath

Brookins Consulting | http://brookinsconsulting.com/
Certified | http://auth.ez.no/certification/verify/380350
Solutions | http://projects.ez.no/users/community/brookins_consulting
eZpedia community documentation project | http://ezpedia.org

Piotrek Karaś

Saturday 29 December 2007 11:07:14 am

Just in case I didn't express myself clearly... I had to brutally force it in there with SQL (administration interface didn't allow that by itself, so there's no bug for the time being ;)

BTW. I cannot register to the eZPedia, unknown account error during sign in validation... ;(

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

Heath

Saturday 29 December 2007 11:49:36 am

Yes Piotrek you were very clear.

Fact remains your not the first to ask how can this goal be reached.

The SQL you used to reach this goal is valuable to others looking to do as you have done ... without having to study as hard as you must have to learn which SQL will work.

Which leads me to stepping up and asking for you to share the solution not just the question, 'Is this ok' when we can't tell what you have done really without the sql.

Their is always another reason hidden from view on the other side of the coin. Every time I turn it over while contemplating the question I think of another reason to share ....

Email kc at ez dot no perhaps he can help you outside the forum get yourself an ezpedia.org account ... if ezpedia is not functioning for you try a blog post ...

Cheers,
Heath

Brookins Consulting | http://brookinsconsulting.com/
Certified | http://auth.ez.no/certification/verify/380350
Solutions | http://projects.ez.no/users/community/brookins_consulting
eZpedia community documentation project | http://ezpedia.org

Piotrek Karaś

Saturday 29 December 2007 3:01:33 pm

Heath,

I had sharing in mind from the beginning:
http://ryba.ez-publish.net/index.php/ez_publish/lab/custom_top_level_nodes_is_that_possible_round_i_exploration

I started with the question because I wasn't sure if it was a good direction and actually worth of spending time on. Now, that I dug a bit more, I suspect that no matter what the benefits, it will require too many core modifications... unless all served by own extension... But that's still a guess at this point.

Cheers,
Piotrek

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

Heath

Sunday 30 December 2007 3:47:18 am

Great!

You are not alone in searching for an answer to these questions. You can do <b>anything</b> using eZ ...

Though I strongly suspect my subconscious disagrees with your fears regarding core changes in kernel to reach your goal while retaining existing functionality and stability ...

We'll look forward to reading more :)

Cheers,
Heath

Brookins Consulting | http://brookinsconsulting.com/
Certified | http://auth.ez.no/certification/verify/380350
Solutions | http://projects.ez.no/users/community/brookins_consulting
eZpedia community documentation project | http://ezpedia.org

Piotrek Karaś

Sunday 30 December 2007 4:22:40 am

<i>You can do anything using eZ ...</i>
That's exactly what was told about 3 months ago, and I'm finally starting to see that ;)

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

eZ debug

Timing: Jan 20 2025 20:16:23
Script start
Timing: Jan 20 2025 20:16:23
Module start 'content'
Timing: Jan 20 2025 20:16:24
Module end 'content'
Timing: Jan 20 2025 20:16:24
Script end

Main resources:

Total runtime1.2470 sec
Peak memory usage4,096.0000 KB
Database Queries206

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0078 587.6875180.8438
Module start 'content' 0.00781.1002 768.5313627.7578
Module end 'content' 1.10800.1389 1,396.2891345.0859
Script end 1.2469  1,741.3750 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00380.3012210.0002
Check MTime0.00140.1098210.0001
Mysql Total
Database connection0.00080.066210.0008
Mysqli_queries1.150892.28062060.0056
Looping result0.00190.14942040.0000
Template Total1.210397.120.6052
Template load0.00220.176620.0011
Template processing1.208196.879420.6041
Template load and register function0.00010.007310.0001
states
state_id_array0.00160.129210.0016
state_identifier_array0.00150.121620.0008
Override
Cache load0.00190.1547460.0000
Sytem overhead
Fetch class attribute can translate value0.00090.073430.0003
Fetch class attribute name0.00100.077390.0001
XML
Image XML parsing0.00120.093430.0004
class_abstraction
Instantiating content class attribute0.00000.0023140.0000
General
dbfile0.00860.6917350.0002
String conversion0.00000.000630.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
7content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
7content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
12content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
6content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 34
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs