Problem with edit integer field

Problem with edit integer field

Monday 20 September 2004 9:35:45 am - 3 replies

Modified on Monday 20 September 2004 9:48:56 am by Lida Popelo

Author Message

Frederik Holljen

Tuesday 21 September 2004 12:14:40 am

Try:

{default attribute_base=ContentObjectAttribute}
 <select name="{$attribute_base}_data_integer_{$attribute.id}" size="1">
  // your options here.
 </select>
{/default}

This is the way the default template sets the name. I'm not entirely sure it will work in your case, but it is worth a try.

Lida Popelo

Tuesday 21 September 2004 8:20:18 am

Tnank You very much!!!!

It works right for me...
But i think, i doesn't completely understand what the string below means :(

{$attribute_base}_data_integer_{$attribute.id}

Can anybody give me explanation (or link where i can find one) about code in design/standard/templates/content/edit_attribute.tpl,
design/standard/templates/content/datatype/edit/*.tpl

Best Regards,
Lida

Frederik Holljen

Tuesday 21 September 2004 9:27:44 am

This is the way eZ publish recognizes data input. The name of the input field will be something like:
ContentObjectAttribute_data_integer_11. This specific string is recoginized by eZ publish which compares it with the actuall specification of your class. If the name of the input field matches the class definition the data is stored.

You must be logged in to post messages in this topic!

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.