[Resolved] Check empty attribute in the filter

Author Message

jul tonfa

Monday 26 October 2009 9:05:19 am

Hi,

How can I check with the filter if the attribute is left empty ? I would like to get that working for a Date and time datatype.

I tried something like that

filter, array( concat( 'car/date_conception:') )

or

filter, array( array( 'car/date_conception','=','') )

But I can't get that to work.
Any idea for that ?

Thanks.

Jul

Nicolas Lescure

Thursday 26 November 2009 4:02:12 am

Hi,

Did you try : 

 filter, array( '-car/date_conception:[* TO *]') )

jul tonfa

Monday 08 March 2010 5:04:21 am

Hi,

Sorry, i didn't see that someone replied. Thank you Nicolas.

That is working for a text attribute but for a date we need to do that :

filter, array('car/date_conception:1970-01-01T01\:00\:00Z')

Paul Borgermans

Monday 15 March 2010 3:35:53 pm

This is fixed in eZ Find 2.2, release in a few weeks (March 30 normally)

Paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

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 18 2025 05:19:05
Script start
Timing: Jan 18 2025 05:19:05
Module start 'layout'
Timing: Jan 18 2025 05:19:05
Module start 'content'
Timing: Jan 18 2025 05:19:06
Module end 'content'
Timing: Jan 18 2025 05:19:06
Script end

Main resources:

Total runtime1.1978 sec
Peak memory usage4,096.0000 KB
Database Queries64

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0080 589.2969152.6406
Module start 'layout' 0.00800.0044 741.937539.4766
Module start 'content' 0.01231.1839 781.4141585.8359
Module end 'content' 1.19620.0016 1,367.250012.1172
Script end 1.1978  1,379.3672 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00390.3231160.0002
Check MTime0.00170.1394160.0001
Mysql Total
Database connection0.00190.157310.0019
Mysqli_queries1.109692.6337640.0173
Looping result0.00070.0588620.0000
Template Total1.121793.620.5609
Template load0.00410.341720.0020
Template processing1.117693.303920.5588
Template load and register function0.00020.016910.0002
states
state_id_array0.00270.227910.0027
state_identifier_array0.00200.167120.0010
Override
Cache load0.00250.2066270.0001
Sytem overhead
Fetch class attribute can translate value0.00120.102030.0004
Fetch class attribute name0.00260.216760.0004
XML
Image XML parsing0.00280.237430.0009
class_abstraction
Instantiating content class attribute0.00000.001560.0000
General
dbfile0.00240.1990230.0001
String conversion0.00000.000740.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
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 15
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs