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
Close
Hashes for django-rewrite-external-links-0.2.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 69f81bea25d5a5f9018dcdc26aca1e85aa1725a15314dc016175ce321b41d5f7 |
|
MD5 | f6c0dec5bcbeef698e2f856fbfa06afc |
|
BLAKE2b-256 | bef441cd8d064b9ec79a44859b0764f40d1287e89041706527405b570c4cda20 |