Add show_date_span
parameter to channel calendar
#174
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Overview
Added a
show_date_span="yes"
parameter to the{exp:channel:calendar}
tag which repeats the entry across every calendar "day" cell between the entry’s publish and expiration date.Given a single entry (My Event) with an
entry_date
of April 1, 2019 and anexpiration_date
of April 5, 2019 - settingshow_date_span="yes"
would display a calendar with the first week like this:My Event
My Event
My Event
My Event
My Event
Entires without an
expiration_date
will continue to show on a single day.When combined with
show_future_entries="yes"
, this would be useful for anyone wanting to build a simple event calendar.Nature of This Change
Is this backwards compatible?
Documentation
ExpressionEngine/ExpressionEngine-User-Guide#41