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
Hashes for djangocms_link-1.8.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 18d9a34f86f61ca9194a7d5f7b1ada9b5898ff2996b93167ca900a538d7ff471 |
|
MD5 | 73a5cd79ccfc9b7281ed2f22bf65beca |
|
BLAKE2b-256 | 973b605d5b32b14b6708866dff1b7a5a65a5872d9927b23d9a6e0d8e67bb20cf |