Skip to main content

djangocms-versioning extension to time your publications

Project description

PyPI version Coverage Status PyPI - Python Version PyPI - Django Versions PyPI - django CMS Versions

djangocms-timed-publishing

django CMS Timed Publishing extends django CMS Versioning to allow for planned or limited publication of content:

  • New option to publish with beginning and end dates. By default this is done from the versioning menu and the "Publish" button does not change behavior. The menu brings up a modal allowing to select time limits for the visibility of the to-be-published version:

    Alternatively, with the setting DJANGOCMS_TIMED_PUBLISHING_BUTTON = True, the "Publish" button changes behavior and always opens the modal to ask for beginning and end dates.

    Publishing from the admin - be it the page tree or the version manager - is not affected.

  • Technically, the time limits do not affect the published status but only the visibility. This means, dates on published versions cannot be changed any more. You need to create a new draft and publish that to make a change.

  • Versioning menu shows pending or expired visibility dates. "pending" is a word for a published version that is not yet visible. "expired" is a word for a published version not visible any more:

  • "View published" button for PageContents is only offered for pages which are currently visible (since otherwise they'll show a 404)

  • Pending or expired aliases render empty.

Timed Publishing

Installation

  1. Install the package using pip:

    pip install git+https://github.com/fsbraun/djangocms-timed-publishing
    
  2. Add "djangocms_timed_publishing" after "djangocms_versioning" to your INSTALLED_APPS in settings.py:

    INSTALLED_APPS = [
         # ...
         "djangocms_versioning",
         "djangocms_timed_publishing",
         # ...
    ]
    
  3. Run migrations:

    python manage.py migrate
    

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

djangocms_timed_publishing-1.0.1.tar.gz (24.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

djangocms_timed_publishing-1.0.1-py3-none-any.whl (37.3 kB view details)

Uploaded Python 3

File details

Details for the file djangocms_timed_publishing-1.0.1.tar.gz.

File metadata

File hashes

Hashes for djangocms_timed_publishing-1.0.1.tar.gz
Algorithm Hash digest
SHA256 d608fee63f57d80cf62171dfe106f6ddd205b5089432c04b8fa8e9c709cf327c
MD5 599138ebd9ed3d60514c06ceac33a7f0
BLAKE2b-256 55c1152d106827092a77015378f01e0aabb975c1a7eb580400d9fcfe1c322479

See more details on using hashes here.

Provenance

The following attestation bundles were made for djangocms_timed_publishing-1.0.1.tar.gz:

Publisher: publish-to-live-pypi.yml on fsbraun/djangocms-timed-publishing

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file djangocms_timed_publishing-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for djangocms_timed_publishing-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 80380d83a83e726892e8003d4786054fdd949b46a17fd153da59f81c37e836d8
MD5 578e7ad38774716a2a81e10e6d68e503
BLAKE2b-256 e7b4e54635f5977ebb0c8ff5facaadbaffd7b8d94c33f70d46dea9946f9c3d88

See more details on using hashes here.

Provenance

The following attestation bundles were made for djangocms_timed_publishing-1.0.1-py3-none-any.whl:

Publisher: publish-to-live-pypi.yml on fsbraun/djangocms-timed-publishing

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page