Closed (fixed)
Project:
Finder
Version:
6.x-1.4
Component:
Finder Views
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
29 Oct 2009 at 15:06 UTC
Updated:
17 Nov 2009 at 19:20 UTC
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
Comment #1
danielb commentedSorry 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.
Comment #2
qriz commentedthanks for the reply
is there hope that this is gonna happening anytime soon???
not that i would dare to rush you ;-)
Comment #3
danielb commentedI 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.
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
Comment #4
danielb commentedThis is in the new release. I'm sure the predefined stuff will sort itself out once we start seeing support requests for popular functionality.
Comment #5
qriz commentedThanks a lot ;-)