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.0.tar.gz (23.3 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.0-py3-none-any.whl (36.9 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for djangocms_timed_publishing-1.0.0.tar.gz
Algorithm Hash digest
SHA256 f8c885ca37c905182f74b2121d41d0a38c31b80504bf20f9587df134c721eb67
MD5 bce958d0f95916fb844c6835070be357
BLAKE2b-256 186edc95d8a69ab04e39411a3e770f930fe7aabe42b6fd4f8e1b8e00bee83173

See more details on using hashes here.

Provenance

The following attestation bundles were made for djangocms_timed_publishing-1.0.0.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.0-py3-none-any.whl.

File metadata

File hashes

Hashes for djangocms_timed_publishing-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 67e79fe777db0503b87b2bb62046012fa2347e998cfc08090146973d34e50cba
MD5 1a17d4b5d90ea5eff61e11b3f5aa865f
BLAKE2b-256 3e74eeded5d65c54063a858c1e3eb18f7bc7d5909c62a2c0b659f1249ef86c97

See more details on using hashes here.

Provenance

The following attestation bundles were made for djangocms_timed_publishing-1.0.0-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