Author Topic

Nicolas Pastorino

Monday 14 December 2009 5:50:49 am

Comment56215

Hi Don,

You may want to create an override for the information collection template for the concerned attributes. By default, the template used when displaying information collection attributes are :

 design/standard/templates/content/datatype/collect/<data_type_string>.tpl

where <data_type_string> is the type of attribute used. For a Text Line attribute it is 'ezstring'. Creating an override for these templates goes like this :

  1. copy the aforementioned template in you design. If your design is called 'my_design', the path will be :
     extension/my_extension/design/my_design/templates/content/datatype/collect/ezstring.tpl
  2. Then modify the override so that it displays a default value when applicable

We can imagine these default values be stored in an INI file for instance, from which you'd get the default values by using the 'ezini' operator.

Let us know how it goes,

--
Nicolas Pastorino
Director Community - eZ
Member of the Community Project Board

eZ Publish Community on twitter: http://twitter.com/ezcommunity

t : http://twitter.com/jeanvoye
G+ : http://plus.tl/jeanvoye