cmsplugin-faq /

Filename Size Date modified Message
cmsplugin_faq
539 B
43 B
94 B
1.5 KB
1.0 KB

Name: cmsplugin-faq Description: subclass of django-cms's Text plugin (djangocms_text_ckeditor): supports django-cms plugins, a 'topic' field, link anchors in templates; CMSFAQEntryPlugin creates FAQ entries (questions & answers); CMSFAQListPlugin creates <a> anchor list of FAQ entries, on the same page; CMSFAQEntryLinkPlugin links to specific or random CMSFAQEntries Download: http://bitbucket.org/tehfink/cmsplugin-faq/

Requirements: - djangocms_text_ckeditor = 3.5.3 - django-cms = 3.5.1 - django = 1.11.12

Setup - make sure requirements are installed and properly working - add cmsplugin_faq to python path - add 'cmsplugin_faq' to INSTALLED_APPS - run migrations - add plugins to pages

Versioning: Trying to track the most recent djangocms_text_ckeditor & django-cms LTS release: - branches are named based on djangocms_text_ckeditor; eg: djangocms_text_ckeditor-3.5 - releases are tagged based on djangocms_text_ckeditor; eg: djangocms_text_ckeditor-3.5.3

Optional - define CMSPLUGIN_FAQENTRY_CSS, CMSPLUGIN_FAQLIST_CSS, CMSPLUGIN_FAQENTRYLINK_CSS in your project's settings - copy cmsplugin_faq/templates/cms/plugins/cmsplugin_faq/ to your project directory

Todo: - allow CMSFAQListPlugin plugin to be on a different page than CMSFAQEntryPlugin

NB: - TBD

Examples (settings.py): CMSPLUGIN_FAQENTRY_CSS = ((1, 'featured'),) - adds an optional css class to the faq entry in the plugin template

Note: This is not great code, but it works. Please tell me how to make it better!