agenda

agenda

Monday 03 May 2004 6:52:12 am - 2 replies

Author Message

Rinze Cats

Tuesday 04 May 2004 6:16:48 am

this is driving me crazy! Please help!
what can be the reason that this code isn't working?

{let my_ts=makedate( $month, $number, $year )
		events=fetch( 'content', 'list_count', hash(
			'parent_node_id', 47,
	 		'attribute_filter', array('agendaitem/date_from', '<=', $my_ts 
) ) ) }

agendaitem is then identifier of my class and date_from is a datefield. $events is always zero!

kind regards, rinze

Stefano Guandalini

Sunday 06 June 2004 8:18:57 am

I'm using this piece of code that is actually working:

{let    temp_ts=makedate( $view_parameters.month, $view_parameters.day, $view_parameters.year )
        events=fetch( 'content', 'list', hash( 'parent_node_id', 247,
                                'attribute_filter',
                                array( 'and',
                                        array( 'event/date_from', '<=', $temp_ts ),
                                        array( 'event/date_to', '>=', $temp_ts )
) ) ) }

Maybe try to put $view_parameters. in front oh month, day and year.

Bye.

guandalf

Stefano Guandalini
http://www.nizan.net

You must be logged in to post messages in this topic!

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.