Skip to content

rouxcode/django-cmsmetatags

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DJANGO CMSMetaTags

!!! ALPHA !!!

configure

settings.py:

INSTALLED_APPS = [
    '...',
    'cmsmetatags',
    '...'
]
CMS_PLACEHOLDER_CONF = {
    'metatags': {
        'name': 'Meta/SEO tags',
        'plugins': [
            'CMSMetaTagsPlugin',
        ],
        'default_plugins': [
            {
                'plugin_type': 'CMSMetaTagsPlugin',
                'values': {},
            },
        ],
        'limits': {
            'CMSMetaTagsPlugin': 1,
        },
    },
}

Plugins

  • CMSMetaTagsPlugin

Important

Make sure the placeholder you allow metatags in, comes after the cms render_block tags

<head>
    <meta charset="utf-8">
    {% render_block 'css' %}{% render_block 'js' %}
    {% placeholder 'metatags' %}
</head>

About

Simple Django-CMS Metatags Plugin

Resources

Stars

Watchers

Forks

Packages

No packages published