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

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 30 2025 21:19:26
Script start
Timing: Jan 30 2025 21:19:26
Module start 'layout'
Timing: Jan 30 2025 21:19:26
Module start 'content'
Timing: Jan 30 2025 21:19:27
Module end 'content'
Timing: Jan 30 2025 21:19:27
Script end

Main resources:

Total runtime1.1845 sec
Peak memory usage8,192.0000 KB
Database Queries59

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0046 588.3828151.2422
Module start 'layout' 0.00460.0035 739.6250220.7500
Module start 'content' 0.00811.1757 960.37504,494.3047
Module end 'content' 1.18380.0007 5,454.679711.7813
Script end 1.1845  5,466.4609 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.2801160.0002
Check MTime0.00120.1010160.0001
Mysql Total
Database connection0.00070.055010.0007
Mysqli_queries1.098992.7671590.0186
Looping result0.00050.0433570.0000
Template Total1.127995.220.5639
Template load0.00190.163220.0010
Template processing1.125995.050620.5630
Template load and register function0.00100.084810.0010
states
state_id_array0.00250.210510.0025
state_identifier_array0.00260.223520.0013
Override
Cache load0.00160.1354210.0001
Sytem overhead
Fetch class attribute can translate value0.00190.158330.0006
Fetch class attribute name0.00210.176560.0003
XML
Image XML parsing0.00450.376230.0015
class_abstraction
Instantiating content class attribute0.00000.000860.0000
General
dbfile0.00520.4423280.0002
String conversion0.00000.000640.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
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
2content/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: 16
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs