Obtaining text field value in module store method

Author Message

Kedar Deshpande

Wednesday 20 May 2009 10:10:06 am

Hi,

In a tpl file I have the line:

<td>{attribute_edit_gui attribute=$node.data_map.lead_tags}</td>

This appears in the source for the page as:

<td>
<input id="ezcoa-414_lead_tags" class="box ezcc-cc_lead ezcca-cc_lead_lead_tags" type="text" value="" name="ContentObjectAttribute_ezstring_data_text_3433" size="70"/>
</td>

however while storing the values in a ezobject, there is no constant 'name' attribute that can be used since it changes from object to object. Plus it would also mean having to remember what type of attribute it is (like ezstring_data_text).

This does not work:

$attributes['lead_tags']->fromString($http->postVariable(*****));

Does anyone have any suggestions?
thanks,
Kedar

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 05:17:56
Script start
Timing: Jan 18 2025 05:17:56
Module start 'layout'
Timing: Jan 18 2025 05:17:56
Module start 'content'
Timing: Jan 18 2025 05:17:58
Module end 'content'
Timing: Jan 18 2025 05:17:58
Script end

Main resources:

Total runtime1.2973 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0067 588.0469152.6406
Module start 'layout' 0.00670.0038 740.687539.4922
Module start 'content' 0.01051.2851 780.1797404.1094
Module end 'content' 1.29560.0016 1,184.28918.1250
Script end 1.2973  1,192.4141 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.2618160.0002
Check MTime0.00140.1069160.0001
Mysql Total
Database connection0.00090.069510.0009
Mysqli_queries1.252796.5646460.0272
Looping result0.00050.0347440.0000
Template Total1.256396.820.6282
Template load0.00220.173420.0011
Template processing1.254196.666720.6270
Template load and register function0.00030.022410.0003
states
state_id_array0.00100.079210.0010
state_identifier_array0.00210.159320.0010
Override
Cache load0.00170.1293140.0001
Sytem overhead
Fetch class attribute can translate value0.00090.067410.0009
Fetch class attribute name0.00100.077210.0010
XML
Image XML parsing0.00010.008910.0001
class_abstraction
Instantiating content class attribute0.00000.000810.0000
General
dbfile0.00150.1120100.0001
String conversion0.00000.000940.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
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/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: 11
 Number of unique templates used: 6

Time used to render debug report: 0.0003 secs