Hi,
I'm using SearchApi and I have to use a date as exposed filters, but I'm not able to show tihs filter as date popup, but only like text.
Is there a way to solve this problem?

thanks,
Sergej

Comments

haza’s picture

Version: 7.x-1.0 » 7.x-1.x-dev
Status: Active » Needs review
StatusFileSize
new1.64 KB
new26.51 KB

I've worked on that and implemented it.

date_popup.jpg

haza’s picture

Oops, just forgot to remove the default description if we use the date_popup widget (date popup will bring it's own description).

New patch attached.

Frederic wbase’s picture

@Haza

I've applied your patch on the latest dev and it works like a charm!
Thank you verry much for this functionality.

grts

frederic

Frederic wbase’s picture

Status: Needs review » Reviewed & tested by the community

just changing status to rtbc

drunken monkey’s picture

Title: Date popup exposed filters » Add support for date popup in exposed filters
Status: Reviewed & tested by the community » Fixed

Great addition, thanks!
It just lacked an appropriate implementation of option_definition() and proper safety checks for the module's existence in other places.
Fixed that and committed.

svanou’s picture

I have applied this patch but have some problems with granularity.

Start date: today (greater than or equal to)
End Date: today (less then or equal to)

When using regular text field PHP, I can specify an hour Today 00:00 to Today 23:59

Not sure if this is something I can configure on SolR index granularity.

Thanks, Sylvain

Frederic wbase’s picture

@svanou as you can see in post nr 5 of drunken monkey he committed the fix with some changes in the latest dev release. maybe you should try out that one?

If you still have issues, i think it would be the best to open a new thread.

Status: Fixed » Closed (fixed)

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