[Hippo-cms7-user] Default date values in Hippo 7.6

Jasper de Vries jasper.de.vries at ddnh.nl
Wed Oct 19 17:05:51 CEST 2011


Hi Junaid,

That way you can only set a static date. I wanted to set the date to 
$now (in /hippo:configuration/hippo:queries/hippo:templates/new-document).

Kind regards,
Jasper

On 19-10-2011 16:40, Junaidh Sheriff wrote:
> Jasper,
>
> With hippo7.6 you can already achieve default date value (or any field 
> value) via the document type editor.
>
> Also refer Prototype section under - 
> http://www.onehippo.org/cms7/documentation/development/plugin-development/business+logic/extend+document+types/structure+of+document+types.html
>
> Here I did not understand your objective. Are you suggesting another 
> way to achieve the default date values?
>
> Junaid K
>
> On Wed, Oct 19, 2011 at 2:12 PM, Jasper de Vries 
> <jasper.de.vries at ddnh.nl <mailto:jasper.de.vries at ddnh.nl>> wrote:
>
>     Hi all,
>
>     Creating default date values using hippostd:modify doesn't work
>     out of the box in Hippo 7.6. You need to add a property to your
>     template's hipposysedit:prototype (under hippo:namespaces), give
>     it your date field's name, make sure the type is set to Date and
>     give it a default value (e.g. 1970-01-01T00:00:00.000+00:00) and
>     your good to go!
>
>     Jasper
>



More information about the Hippo-cms7-user mailing list