Hi friends, i cant find the correct settings for this, i have a content type "images" with date field showing the day the photo was taken, i need a views block that shows photos with the same date of the current node
how to get this?
thanks
| Comment | File | Size | Author |
|---|---|---|---|
| example.jpg | 278.95 KB | Acertijo |
Comments
Comment #2
shewaleanjali commentedYou can achieve it through query alter hook for views i.e. hook_query_alter .
Comment #3
saurabh.dhariwal commentedYou can use following steps:
1. Create content view which display image field.
2. Then add date field to filter criteria and set operation 'contains' and set any date to value field and save view.
And then using hook_views_query_alter alter value of date as following:
Hope it helps you.
Thanks!
Comment #4
renatog commentedHi guys.
I checked and #3 it's ok.
@Acertijo, you can follow this steps for it.
Comment #5
renatog commentedThank you very much @shewaleanjali and @saurabh.dhariwal for your contributions.
Best,