Trouble embeding form-content-class

Author Message

Thomas Brandl

Monday 22 September 2003 8:56:41 am

Hi,

I have created a form content class (basic feedback form) and included it (<object id="xx" />) in an info page.
For the form itsef I have an override template (overriding embed.tpl), that tries to fetch the classes attributes and display them via {attribute_view_gui attribute=$node.data_map.message} aso.

My problem is, that $node does not seem to exist in this context, this :{$node.data_map|attribute(show)} does not show anything.

The reason I don't access the object directly (not embeding, that is), is because I create my menu automatically with my folders as links. My folder.tpl then loads the first Info Page it finds in the current folder and displays it.

dazed and confused as always ... thanks for help
t

Thomas Brandl

Wednesday 24 September 2003 3:13:57 am

Thats what debug says when accessing the info page, that has my feeback form included:

Unknown template variable 'node' in namespace 'xmltagns:ContentView'

contact.tpl (my override):
{default content_object=$node.object
content_version=$node.contentobject_version_object
node_name=$node.name}
E-Mail: {attribute_view_gui attribute=$node.data_map.email_from}
.
.
.
{/default}

$node is not available, how can I access my <object id ="xy" />?

thanks!
t

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 18 2025 16:11:47
Script start
Timing: Jan 18 2025 16:11:47
Module start 'layout'
Timing: Jan 18 2025 16:11:47
Module start 'content'
Timing: Jan 18 2025 16:11:48
Module end 'content'
Timing: Jan 18 2025 16:11:48
Script end

Main resources:

Total runtime0.4319 sec
Peak memory usage4,096.0000 KB
Database Queries52

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0045 587.9141152.6250
Module start 'layout' 0.00450.0028 740.539139.4609
Module start 'content' 0.00720.4233 780.0000428.8281
Module end 'content' 0.43050.0013 1,208.82818.1563
Script end 0.4319  1,216.9844 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.7148160.0002
Check MTime0.00130.2963160.0001
Mysql Total
Database connection0.00060.136810.0006
Mysqli_queries0.393791.1514520.0076
Looping result0.00040.0930500.0000
Template Total0.402793.220.2014
Template load0.00180.421620.0009
Template processing0.400992.814020.2004
Template load and register function0.00010.028710.0001
states
state_id_array0.00100.221610.0010
state_identifier_array0.00090.201020.0004
Override
Cache load0.00150.3504250.0001
Sytem overhead
Fetch class attribute can translate value0.00040.081510.0004
Fetch class attribute name0.00100.220620.0005
XML
Image XML parsing0.00010.019410.0001
class_abstraction
Instantiating content class attribute0.00000.001220.0000
General
dbfile0.00060.1405100.0001
String conversion0.00000.001440.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
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
4content/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: 14
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs