Thanks for this awesome module!!!

I got a finder block in the header (select list) to search for nodes by a certain cck date field.
problem is i don't know where to change the display in the dropdown menu.
display right now is:

YYYY-MM-DDT00:00:00

in the view it's set to DD.MM.YYYY (this is what it should be) i also changed everything in the dateformat settings but it doesn't change it in the finder element.

any hints or suggestion?

Comments

danielb’s picture

Sorry mate this isn't currently possible.

I would have to add a feature to finder where you could rewrite these values. I'm thinking this would be a great feature and solve a few limitations of finder. It could allow you to add your own php or choose from a list of predefined rewrites like dates, for example.

qriz’s picture

thanks for the reply

is there hope that this is gonna happening anytime soon???
not that i would dare to rush you ;-)

danielb’s picture

I have developed what I was talking about and i will add it soon, but I haven't added any predefined scripts yet

you should be able to rewrite the dates by adding code such as this to the select element's 'rewrite output' settings.

<?php
return format_date(strtotime($value));
?>

let me know how it goes

The idea is to convert $value to a unix timestamp first, and then pass it to a date output function.

if strtotime doesn't do the trick you might need strftime and specify what the input format is http://www.php.net/manual/en/function.strftime.php
if format_date isn't outputting what you want there are some more params you can pass to it : http://api.drupal.org/api/function/format_date/6

danielb’s picture

Status: Active » Fixed

This is in the new release. I'm sure the predefined stuff will sort itself out once we start seeing support requests for popular functionality.

qriz’s picture

Thanks a lot ;-)

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.