Link Plugin for django CMS
Project description
A Link plugin for django CMS.
Installation
This plugin requires django CMS
3.0 or higher to be properly installed and
configured. If you have many pages it supports ajax loading for selecting a page.
To enable this install Django-Select2 3.4 or above.
In your projects
virtualenv
, runpip install djangocms-link
.Add
'djangocms_link'
to yourINSTALLED_APPS
setting.Run manage.py migrate djangocms_link.
If you want to enable the ajax loading:
In your projects
virtualenv
, runpip install Django-Select2
.Add
'django_select2'
to yourINSTALLED_APPS
settings.Add
url(r'^select2/', include('django_select2.urls')),
to your main urls.py.
Settings
To support environments where non-standard URLs would otherwise work, this project supports the defining of an additional RegEx pattern for validating the host-portion of the URL.
For example:
# RFC1123 Pattern: DJANGOCMS_LINK_INTRANET_HOSTNAME_PATTERN = r'[a-z,0-9,-]{1,15}' # NetBios Pattern: DJANGOCMS_LINK_INTRANET_HOSTNAME_PATTERN = r'[a-z,0-9,!@#$%^()\\-\'{}.~]{1,15}'
Either of these might accept a URL such as:
http://SEARCHHOST/?q=some+search+string
If left undefined, the normal Django URLValidator will be used.
Children
This plugin supports child plugins. If you add an other plugin as a child it will take this content instead of the link name as the content of the link.
Translations
If you want to help translate the plugin please do it on transifex:
https://www.transifex.com/projects/p/djangocms-link/resource/djangocms-link/
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
Built Distribution
File details
Details for the file djangocms-link-1.7.0.tar.gz
.
File metadata
- Download URL: djangocms-link-1.7.0.tar.gz
- Upload date:
- Size: 38.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4ea40ec0af54e9a8162854182bee43dcff5e472318304457d403512dbab6f01c |
|
MD5 | d6217ffeb4516c32280b078b360a777f |
|
BLAKE2b-256 | 7e71f40c074f18ef6da94acff7cf2f86275b5e87ef5266e5a7d580f01e700910 |
File details
Details for the file djangocms_link-1.7.0-py2.py3-none-any.whl
.
File metadata
- Download URL: djangocms_link-1.7.0-py2.py3-none-any.whl
- Upload date:
- Size: 157.4 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 59ef0d9c8b60246425f0ab0301c469939d1fe5f2bb3654e1f7e39dfe0e5f7f76 |
|
MD5 | 413238e18513d83176977a6344a16f12 |
|
BLAKE2b-256 | dad35ea0c496fb2589029fb83e69b0c7952dfdab16dee25a5660c7d6b79c70dc |