Setting default date in a form

Author Message

Paul Carpenter

Sunday 11 April 2004 9:28:40 am

I have a form that includes an unpublish_date attribute. I would like to calculate the date 2 weeks from present and set that as the default value in the form. Is there a way to pass the value through attribute_edit_gui? Should I be doing this another way?

Thanks.

Pablo C. Vergara Castro

Friday 18 June 2004 3:10:29 am

Look in:

design/standard/templates/content/datatype/edit

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 19 2025 01:07:46
Script start
Timing: Jan 19 2025 01:07:46
Module start 'layout'
Timing: Jan 19 2025 01:07:46
Module start 'content'
Timing: Jan 19 2025 01:07:46
Module end 'content'
Timing: Jan 19 2025 01:07:46
Script end

Main resources:

Total runtime0.9497 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0089 590.2734152.6250
Module start 'layout' 0.00890.0044 742.898439.4609
Module start 'content' 0.01330.9349 782.3594450.8594
Module end 'content' 0.94820.0014 1,233.21888.1641
Script end 0.9496  1,241.3828 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.3587160.0002
Check MTime0.00130.1413160.0001
Mysql Total
Database connection0.00100.106710.0010
Mysqli_queries0.907395.5379540.0168
Looping result0.00050.0528520.0000
Template Total0.909595.820.4547
Template load0.00340.359720.0017
Template processing0.906195.407420.4530
Template load and register function0.00020.020610.0002
states
state_id_array0.00120.123710.0012
state_identifier_array0.00160.167620.0008
Override
Cache load0.00290.304680.0004
Sytem overhead
Fetch class attribute can translate value0.00050.056120.0003
Fetch class attribute name0.00130.137720.0007
XML
Image XML parsing0.00020.023920.0001
class_abstraction
Instantiating content class attribute0.00000.000720.0000
General
dbfile0.00050.0562100.0001
String conversion0.00000.001340.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
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 6
 Number of unique templates used: 4

Time used to render debug report: 0.0003 secs