Skip to main content

CMSplugin redirect

A reusable Django app to add custom redirect actions to Django-CMS.

Installation

If you want to install the latest stable release from PyPi:

$ pip install cmsplugin-redirect

If you feel adventurous and want to install the latest commit from GitHub:

$ pip install -e git://github.com/bitmazk/cmsplugin-redirect.git#egg=cmsplugin_redirect

Add cmsplugin_redirect to your INSTALLED_APPS:

INSTALLED_APPS = (
    ...,
    'cmsplugin_redirect',
)

Add the ForceResponseMiddleware to your middleware classes setting:

MIDDLEWARE_CLASSES = (
    ...
    'cmsplugin_redirect.middleware.ForceResponseMiddleware',
)

Run ./manage.py migrate to apply south migrations.

Usage

You can add the Redirect action plugin to a placeholder like you would add all other plugins in the admin of a CMS Page.

You can chose to which CMS Page you want to redirect via the drop down list. If you leave the page_link choice blank, the plugin redirects to the first child of the Page.

Just be careful, that you don’t accidentaly create infinite redirects loops.

Contribute

If you want to contribute to this project, please perform the following steps:

# Fork this repository
# Clone your fork
$ mkvirtualenv -p python2.7 cmsplugin-redirect
$ pip install -r test_requirements.txt
$ ./logger/tests/runtests.sh
# You should get no failing tests

$ git co -b feature_branch master
# Implement your feature and tests
# Describe your change in the CHANGELOG.txt
$ git add . && git commit
$ git push origin feature_branch
# Send us a pull request for your feature branch

Whenever you run the tests a coverage output will be generated in tests/coverage/index.html. When adding new features, please make sure that you keep the coverage at 100%.

Roadmap

Check the issue tracker on github for milestones and features to come.

Metadata

Release files for cmsplugin-redirect 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cmsplugin-redirect 0.2.1
File Size Uploaded
cmsplugin-redirect-0.2.1.tar.gz 9.2 kB Details

Release files / cmsplugin-redirect-0.2.1.tar.gz

Download URL cmsplugin-redirect-0.2.1.tar.gz
Size 9.2 kB
Tags Source
SHA-256 checksum
How to use checksums
c5523f3deaacde2bb35acccb4f93a72aca4adcc0e57f5063f14e1b554ab08556
BLAKE2b-256 checksum
How to use checksums
64d0f79d6e3c68beda26d62f89df1810b9ef3be1386fec226431ede63bf1ef96
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.2.1 This release

1 release file

0.2

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page