Object relations attribute

Author Message

Andy Woods

Saturday 14 May 2011 11:11:36 am

Thanks Marko (again ;-)

I've got it working using your tip:

<input type="hidden" name="ContentObjectAttribute_ezstring_data_text_{$user_object.data_map.first_name.id}" value="{$user_object.data_map.first_name.content}" />

<input type="hidden" name="ContentObjectAttribute_id[]" value="{$user_object.data_map.first_name.id}" />

Does the format of how I'm formulating the hidden fields look right to you?

Andy

Andy Woods

Saturday 14 May 2011 11:49:09 am

I have a quick question about formatting the <form tag...
<form enctype="multipart/form-data" method="post" action={concat( "/content/edit/", $user_object.id, "/", $edit_version, "/", $edit_language|not|choose( concat( $edit_language, "/" ), '' ) )|ezurl}>
If I view the source of the page I see the following:
<form enctype="multipart/form-data" method="post" action="/index.php/content/edit/64/">
but I know I should have :
<form name="editform" id="editform" enctype="multipart/form-data" method="post" action="/index.php/content/edit/64/18/eng-GB">
The $edit_version and $edit_language values aren't being included in the <form> tag
Can you tell me what code I need to include them please?

Thanks,

Andy

Marko Žmak

Sunday 15 May 2011 2:27:00 am

"

Thanks Marko (again ;-)

I've got it working using your tip:

<input type="hidden" name="ContentObjectAttribute_ezstring_data_text_{$user_object.data_map.first_name.id}" value="{$user_object.data_map.first_name.content}" />

<input type="hidden" name="ContentObjectAttribute_id[]" value="{$user_object.data_map.first_name.id}" />

Does the format of how I'm formulating the hidden fields look right to you?

"

Yes that should be it. But use the wash() operator on the value of the attribute input.

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

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 01:13:38
Script start
Timing: Jan 18 2025 01:13:38
Module start 'layout'
Timing: Jan 18 2025 01:13:38
Module start 'content'
Timing: Jan 18 2025 01:13:38
Module end 'content'
Timing: Jan 18 2025 01:13:38
Script end

Main resources:

Total runtime0.7501 sec
Peak memory usage4,096.0000 KB
Database Queries56

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0061 589.5703152.6250
Module start 'layout' 0.00610.0033 742.195339.9141
Module start 'content' 0.00940.7394 782.1094525.4531
Module end 'content' 0.74870.0013 1,307.562514.2969
Script end 0.7501  1,321.8594 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00380.5005160.0002
Check MTime0.00140.1829160.0001
Mysql Total
Database connection0.00090.119710.0009
Mysqli_queries0.681890.8946560.0122
Looping result0.00070.0885540.0000
Template Total0.699093.220.3495
Template load0.00530.705420.0026
Template processing0.693792.483220.3469
Template load and register function0.00020.026410.0002
states
state_id_array0.00240.316110.0024
state_identifier_array0.00110.150020.0006
Override
Cache load0.00330.4353290.0001
Sytem overhead
Fetch class attribute can translate value0.00050.069720.0003
Fetch class attribute name0.00060.080940.0002
XML
Image XML parsing0.00060.082320.0003
class_abstraction
Instantiating content class attribute0.00000.001040.0000
General
dbfile0.00090.1141180.0000
String conversion0.00000.001140.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/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
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/quote.tpldatatype/ezxmltext/quote.tplextension/ezwebin/design/ezwebin/override/templates/datatype/ezxmltext/quote.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 12
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs