Skip to content

Kirbytext Plugin for Kirby CMS to control visibility of content based on date

License

Notifications You must be signed in to change notification settings

lulezi/show-between

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Show Between

Kirbytext Plugin for Kirby CMS to control visibility of content based on date

Installation

cd your-kirby-project/site/plugins && git submodule add git@github.com:lulezi/show-between.git

Alternatively, you can just git clone or copy the repository manually into site/plugins.

Configuration

The configuration is optional but allows you to facilitate usage of the plugin.

c::get('config-key', 'value')

config-key default
show-between.timezone date_default_timezone_get() (see http://php.net/manual/en/timezones.php)
show-between.from 'from'
show-between.until 'until'

Usage

From the specified date into the future

(from: 2016-07-15 …)
This will only be visible from July 15th, 2016 into the future.
(… from)

From the post until the specified date

(until: 2016-07-15 …)
This will only be visible until July 15th, 2016.
(… from)

Between two specified dates

(from: 2016-07-14 until: 2016-07-16 …)
This will only be visible from July 14th, 2016 until July 16th, 2016.
(… from)

Visible until specified date, then hidden, then visible again from specified date

(until: 2016-07-14 from: 2016-07-16 …)
This will always be visible except on July 15th, 2016.
(… from)

Custom

c::set('show-between.from', 'von');
c::set('show-between.until', 'bis');
(von: 2016-07-14 bis: 2016-07-16 …)
This will only be visible from July 14th, 2016 until July 16th, 2016.
(… von)

About

Kirbytext Plugin for Kirby CMS to control visibility of content based on date

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages