dates with optional fields

Author Message

Pablo C. Vergara Castro

Thursday 17 June 2004 6:55:34 am

Hi to all.

I would like to know if it is possible to create attributes with data type Date in which it is the obligatory to write the month and the year but not day. In other words attributes Date with optative field day.

In case that this can be done, how can I diff the fields with the written day of which they do not have writing?

Mark Marsiglio

Thursday 17 June 2004 11:37:18 am

Instead of using the date datatype you might be able to do this using a series of selectors (pull down lists) or text line fields. Have one for month, one for day, one for year, and make the day one optional. It would require a bit more customization of your templates to display the content, but it could work.

http://www.thinkcreative.com
Turning Ideas Into Strategic Solutions

Pablo C. Vergara Castro

Thursday 17 June 2004 12:50:32 pm

That answer already waited for I: - (.

I am afraid that I prefer to use the data type date because:

a) Exists processing functions you specify for that data type (add of dates, shorting, etc.)

b) At the time of internationalizing it will not be necessary to create specific functions

c)...

Even so thanks for the answer; -)

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

Main resources:

Total runtime0.5847 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0049 590.2656152.6250
Module start 'layout' 0.00490.0027 742.890639.4453
Module start 'content' 0.00770.5755 782.3359529.5234
Module end 'content' 0.58320.0014 1,311.85948.3203
Script end 0.5846  1,320.1797 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.6085160.0002
Check MTime0.00150.2591160.0001
Mysql Total
Database connection0.00070.112010.0007
Mysqli_queries0.539492.2625570.0095
Looping result0.00050.0838550.0000
Template Total0.555094.920.2775
Template load0.00220.372120.0011
Template processing0.552894.552520.2764
Template load and register function0.00020.027710.0002
states
state_id_array0.00080.134910.0008
state_identifier_array0.00080.136520.0004
Override
Cache load0.00180.3058160.0001
Sytem overhead
Fetch class attribute can translate value0.00090.157720.0005
Fetch class attribute name0.00100.170540.0002
XML
Image XML parsing0.00050.092520.0003
class_abstraction
Instantiating content class attribute0.00000.001440.0000
General
dbfile0.00080.1346150.0001
String conversion0.00000.001240.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
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 9
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs