Closed (works as designed)
Project:
Smart Date
Version:
3.5.1
Component:
Documentation
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
16 Jun 2022 at 08:46 UTC
Updated:
25 Jun 2022 at 14:59 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
artatac commentedComment #3
mandclu commentedYou should be able to get pretty close to what you're after by creating a custom Smart Date Format, by going to
/admin/config/regional/smart-datein your site. There's a default Date Only format, but you could create one called Date Only Compact or similar. Leave the Time Format blank and use a Date format of D M j.For a range like the example you've provided, that will show Wed 11 May - Sat 18 Jun. Single day events won't show a range. If you don't want to show the days of the week, use a Date Format value of M j.
Comment #4
artatac commentedThank you great to know there’s a solution! The challenge I have is that this is a view and therefore I have to choose a particular field and none of the various “when” fields options seem to show from to? See screenshot attached
Comment #5
mandclu commentedThe first option should output the range.
Comment #6
artatac commentedTried that and nothing showed up so before bothering you again I created a new view and the aspect you described above works great (thanks) https://lowestoftoldandnow.org/tmp33
But I think the aggregation aspect that allows recurring events to appear correctly on the home page maybe stops the smart range appearing?
Comment #7
mandclu commentedGood point. The aggregation is intended to allow multivalued/recurring values to display properly, and works best showing content display (e.g. teaser) instead of showing fields. If it works better for your use case without aggregation, feel free to remove it.
Comment #8
artatac commentedThanks for the reply. It would seem with views I can either have it handle recurring dates well or have it show multi day events well but not both ;-) all good thanks for your guidance
Comment #9
mandclu commented