Forums / General / What is the difference between node/view and content/view

What is the difference between node/view and content/view

Author Message

Gerhard Sletten

Friday 19 September 2008 1:18:46 am

When overriding templates for my content I have been overriding <b>node/view/[viewname]</b> but I just discovered that when using the embed xml-tag:

<embed size="medium" view="line" id="test-id" align="left" href="ezobject://83" />

I need to create an override for <b>content/view/line</b> rather than <b>node/view/line</b>, unless I change the href attribute to "eznode". By default Online Editor embed with ezobject, but is there a way to configure it to rather embed with eznode so I don't have to write duplicated code in both node/view/.. and content/view/..?

When browsing with system url's like www.sitename.no/content/view/line/2 Ez seems to use the node/view, what is the logic in that?

Triathlon, Webdev, Novels and Cooking..
http://www.gersh.no

Nathan Kelly

Thursday 23 October 2008 10:47:40 pm

I'm also looking for a solutions to this issue.

By default Online Editor embed with ezobject, but is there a way to configure it to rather embed with eznode

I am working on a site where many nodes are located in multiple subtrees and embedding with ezobject forces the content/view templates to link to the location of the main node rather than the node under the current subtree due to the context of the template {$object.main_node.url_alias|ezurl}.

Does anyone know if it is possible to configure the editor to use eznode instead of ezobject? It is impossible to have the users of the site edit embed tags by hand.

Cheers
Nathan.

Pardon me while I burst into flames...

Yannick Komotir

Friday 24 October 2008 3:26:32 am

Hi,
I think that node/view is used when a node is called, but content/view is used when the content of a node is directly include to the content of another node.
/*correct me if what I say is wrong*/

<|- Software Engineer @ eZ Publish developpers -|>
@ http://twitter.com/yannixk

eZ debug

Timing: Jan 18 2025 04:21:03
Script start
Timing: Jan 18 2025 04:21:03
Module start 'content'
Timing: Jan 18 2025 04:21:03
Module end 'content'
Timing: Jan 18 2025 04:21:04
Script end

Main resources:

Total runtime0.2666 sec
Peak memory usage4,096.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0115 592.1406180.8047
Module start 'content' 0.01150.0052 772.945394.0703
Module end 'content' 0.01670.2498 867.0156526.6719
Script end 0.2665  1,393.6875 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00391.4724200.0002
Check MTime0.00150.5576200.0001
Mysql Total
Database connection0.00080.282510.0008
Mysqli_queries0.217181.43601410.0015
Looping result0.00150.55031390.0000
Template Total0.249593.610.2495
Template load0.00110.429910.0011
Template processing0.248393.143510.2483
Override
Cache load0.00080.291810.0008
Sytem overhead
Fetch class attribute can translate value0.00100.379210.0010
XML
Image XML parsing0.00030.108010.0003
General
dbfile0.00210.7947200.0001
String conversion0.00000.002130.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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs