Package: emencia-cmsplugin-xinnia
NoteThis is a fork ofemencia-cmsplugin-zinnia(which was a fork of original “cmsplugin-zinnia”) to include fixes for last
Django and DjangoCMS versions withdjango-blog-xinnia(a fork ofdjango-blog-zinnia).Code is almost unchanged except for needed fixes and even if package name
has been renamed “xinnia”, its module is stillcmsplugin_zinnia.Cmsplugin-zinnia is a bridge betweendjango-blog-xinniaanddjango-cms.This package provides plugins, menus and apphook to integrate your Zinnia
powered Weblog into your django-cms Web site.ContentsInstallationEntries with pluginsTips for using the apphookSettingsCMSPLUGIN_ZINNIA_APP_URLSCMSPLUGIN_ZINNIA_APP_MENUSCMSPLUGIN_ZINNIA_HIDE_ENTRY_MENUCMSPLUGIN_ZINNIA_TEMPLATESCMSPLUGIN_ZINNIA_BASE_TEMPLATESCMSPLUGIN_ZINNIA_DEFAULT_TEMPLATEChangelog0.9.1 - 2021/02/270.9.0 - 2021/02/23InstallationOnce Zinnia and the CMS are installed, you simply have to registercmsplugin_zinnia, in theINSTALLED_APPSsection of your
project’s settings.Entries with pluginsIf you want to use the plugin system of django-cms in your entries, an
extendedEntrywith aPlaceholderFieldis provided in this package.Just add this line in your project’s settings to use it.ZINNIA_ENTRY_BASE_MODEL = 'cmsplugin_zinnia.placeholder.EntryPlaceholder'NoteYou have to keep in mind that the default migrations bundled with Zinnia
do not reflect the addition made by theEntryPlaceholdermodel.A solution to initialize correctly the database can be:$ python manage.py makemigrations
$ python manage.py migrateTips for using the apphookIf you want to use the apphook to provide the blog functionnalities under a
specific URL handled by the CMS, remember this tip:Once the apphook is registered, you can remove the inclusion of'zinnia.urls'inurls.pyand then restart the server to see it in
full effect.SettingsCMSPLUGIN_ZINNIA_APP_URLSDefault value:['zinnia.urls']The URLsets used for by the Zinnia AppHook.CMSPLUGIN_ZINNIA_APP_MENUSDefault value:['cmsplugin_zinnia.menu.EntryMenu',
 'cmsplugin_zinnia.menu.CategoryMenu',
 'cmsplugin_zinnia.menu.TagMenu',
 'cmsplugin_zinnia.menu.AuthorMenu']List of strings representing the path to theMenuclass provided by the
Zinnia AppHook.CMSPLUGIN_ZINNIA_HIDE_ENTRY_MENUDefault value:TrueBoolean used for displaying or not the entries in theEntryMenuobject.CMSPLUGIN_ZINNIA_TEMPLATESDefault value:[](Empty list)List of tuple for extending the plugins rendering templates.Example:CMSPLUGIN_ZINNIA_TEMPLATES = [
  ('entry_custom.html', 'Entry custom'),
  ('entry_custom_bis.html', 'Entry custom bis')
  ]CMSPLUGIN_ZINNIA_BASE_TEMPLATESDefault value:[('cmsplugin_zinnia/entry_list.html', _('Entry list (default)')),
 ('cmsplugin_zinnia/entry_detail.html', _('Entry detailed')),
 ('cmsplugin_zinnia/entry_slider.html', _('Entry slider'))]Available base templates, these are the shipped template from this application.
Commonly you will prefer to useCMSPLUGIN_ZINNIA_TEMPLATESto add new
templates.CMSPLUGIN_ZINNIA_DEFAULT_TEMPLATEDefault value:NoneInitial value fortemplate_to_renderfield. If empty or undefined, initial
value will be the first item of available template choices.ChangelogPrevious release history can be find inoriginal fork.0.9.1 - 2021/02/27Drop support for Django<2.2 and django-cms<3.7;Fix some package informationsAdd missing pending migrations for template fields update from “>0.9”;UseBooleanFieldwithnull=Trueinstead of deprecatedNullBooleanField;0.9.0 - 2021/02/23Remove usage of deprecatedpython_2_unicode_compatiblein models;Usegettext_lazyinstead of deprecatedugettext_lazy;