Skip to main content
https://img.shields.io/badge/pypi-v1.0.0-blue.svg https://img.shields.io/badge/license-MIT%20License-red.svg

djangocms-typedjs

This is a simple django-cms plugin that implements the Typed.js jQuery plugin.

Dependencies

  • django>=1.8

  • django-cms>=3.2

Installation

To install:

pip install djangocms-typedjs

Then add djangocms-typedjs to your installed apps:

INSTALLED_APPS = [
    ...
    'djangocms_typedjs',
    ...
]

If you’re not already using djangocms-text-ckeditor then this too will need to be added to your installed apps:

INSTALLED_APPS = [
    ...
    'djangocms_text_ckeditor',
    ...
]

Then run the migrations:

./manage.py migrate

The package assume that jQuery has been added to the site already. So if you’re not using, please add to you templates/base.html:

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>

Configuration

The Typed.js javascript by default is loaded from the below CDN. If you wish to override this, this can be done in your settings.py file by adding the below with your updated URL. This is optional.

DJANGOCMS_TYPEDJS = {
    'JS_URL':  'https://cdnjs.cloudflare.com/ajax/libs/typed.js/1.1.4/typed.min.js',
}

Usage

When creating the plugin simply name the plugin for reference purposes, specifiy if you would like to have a blinking cursor and optionally specify the JSON configuration (see Typed.js for more info). Next add a child text plugin for every sentance you would like to use.

Djangocms-typedjs can also be used inside a text plugin. Simply add the child plugin to the text container and configure as usual, with one difference. Here child plugins cannot be added to djangocms-typedjs so the sentances need to be passed as part of the JSON config. The below code snippet demonstrates how to achieve this:

{
  // each of the sentances need to be set here:
  strings: ["First sentence.", "Second sentence."],
  // the stringElement needs to be set to null as I'm using this method by default.
  stringsElement: null
}

Metadata

Release files for djangocms-typedjs 1.0.0

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

Source distribution (sdist)

Source distribution for djangocms-typedjs 1.0.0
File Size Uploaded Provenance Actions
djangocms-typedjs-1.0.0.tar.gz 13.5 kB Without provenance Details for djangocms-typedjs-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for djangocms-typedjs 1.0.0
File Interpreter ABI Platform Actions
djangocms_typedjs-1.0.0-py2-none-any.whl Python 2 none any Details for djangocms_typedjs-1.0.0-py2-none-any.whl

Total release size: 38.7 kB

Release files / djangocms-typedjs-1.0.0.tar.gz

Download URL djangocms-typedjs-1.0.0.tar.gz
Size 13.5 kB
Tags Source
SHA-256 checksum
How to use checksums
7c16f4dd84534790da9ad5d6b2517cd7405039290a368e95860d85d991dc2a6b
BLAKE2b-256 checksum
How to use checksums
f2c193991acf1aea406432bf500d5e6b0c46e979e78518ecd26d93fe6e99bfe7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / djangocms_typedjs-1.0.0-py2-none-any.whl

Download URL djangocms_typedjs-1.0.0-py2-none-any.whl
Size 25.1 kB
Tags Python 2
SHA-256 checksum
How to use checksums
be118e6da7f246b6c6ca9d2b8053f24eb5bdc424866b0dad18348bd1c511c207
BLAKE2b-256 checksum
How to use checksums
05122ffc543480e4d5ce654ad741b11f26bc7638c09b60b4f7ee3de03c75dceb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for djangocms-typedjs 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No provenance

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