cms page extension favicon
This commit is contained in:
parent
d53e70be2c
commit
ebba6d3795
5 changed files with 78 additions and 6 deletions
|
|
@ -1,9 +1,12 @@
|
|||
from cms.extensions import PageExtension
|
||||
from cms.extensions.extension_pool import extension_pool
|
||||
from cms.models.fields import PlaceholderField
|
||||
from cms.models.pluginmodel import CMSPlugin
|
||||
from django.contrib.sites.models import Site
|
||||
from django.db import models
|
||||
from django.utils.safestring import mark_safe
|
||||
from djangocms_text_ckeditor.fields import HTMLField
|
||||
from filer.fields.file import FilerFileField
|
||||
from filer.fields.image import FilerImageField
|
||||
|
||||
|
||||
|
|
@ -30,9 +33,15 @@ class CMSIntegration(models.Model):
|
|||
return self.name
|
||||
|
||||
|
||||
# Models for CMS Plugins
|
||||
class CMSFaviconExtension(PageExtension):
|
||||
favicon = FilerFileField(related_name="cms_favicon_image")
|
||||
|
||||
|
||||
extension_pool.register(CMSFaviconExtension)
|
||||
|
||||
|
||||
# Models for CMS Plugins
|
||||
|
||||
class DCLSectionPluginModel(CMSPlugin):
|
||||
heading = models.CharField(
|
||||
blank=True, null=True, max_length=100,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue