Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Does anyone have any examples of using dates as differentiators for map icons?
Basically, I would like to display historical events in one colour, future events in another. If, by some strange quirk, someone views the site on the day of an event, it could be in a third colour.
Comments
Comment #1
RdeBoerInteresting problem....
IPGV&M matches on the exact value, it cannot do "greater than" or "less than".
So the only colour that would work the way things are, is the one for the day of the event.
Maybe IPGV&M needs to accept PHP snippets in its differentiator... Then you could create a small PHP function that returns -1, 0, or +1 and colour-code markers based on that....
Food for thought...
Comment #2
jaclayton CreditAttribution: jaclayton commentedHmm... If I could get a calculated field to display that -1, 0 or +1 depending on the current date, then run the differentiator against that...
Thanks, you may have pointed me in the right direction.