Rewrite all external links to go via a message page.
Project description
============================
Django Rewrite External Links
=============================
Rewrite all external links (using a middleware class) to go via a message page.
Installing / usage
==================
If you want to use the provided templates add 'rewrite_external_links' to INSTALLED_APPS.
Add 'rewrite_external_links.middleware.RewriteExternalLinksMiddleware' to MIDDLEWARE_CLASSES.
Add (r'', include('rewrite_external_links.urls')) to the urls.
If you want to load the external links message using javascript AJAX then add something like the following to your template:
<script>$(document).ready(function () { $('a[href^={% url external_link '' %}]').fancybox(); });</script>
Django Rewrite External Links
=============================
Rewrite all external links (using a middleware class) to go via a message page.
Installing / usage
==================
If you want to use the provided templates add 'rewrite_external_links' to INSTALLED_APPS.
Add 'rewrite_external_links.middleware.RewriteExternalLinksMiddleware' to MIDDLEWARE_CLASSES.
Add (r'', include('rewrite_external_links.urls')) to the urls.
If you want to load the external links message using javascript AJAX then add something like the following to your template:
<script>$(document).ready(function () { $('a[href^={% url external_link '' %}]').fancybox(); });</script>
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file django-rewrite-external-links-0.4.1.tar.gz
.
File metadata
- Download URL: django-rewrite-external-links-0.4.1.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 97568297a02d4eadee0dad03abe2125433ff62a6ad34efeddd5650af2368583c |
|
MD5 | f5cb3cb8ed58d903a77b2533df31a398 |
|
BLAKE2b-256 | d81b30a2c34b9842eef52fefbeb398d1f3bd01121185e95864ffc74f692db562 |