- django-cms-2.1.x
- django: 1.2.x
- Add
cmsplugin_news
toINSTALLED_APPS
in yoursettings.py
file. - Run
python manage.py syncdb
management command. - Add the
cmsplugin_news.urls
to theCMS_APPLICATIONS_URLS
in yoursettings.py
file. - Add the
cmsplugin_news.menu.get_nodes
to theCMS_NAVIGATION_EXTENDERS
in yoursettings.py
file. - Create a page in CMS and in the advanced settings section of the admin for that page, for Navigation extenders select News navigation and for application select News (Restart of the server required due to caching!)
- Create the proper templates for your site, use included with the app as example.
CMS_APPLICATIONS_URLS = (
(`cmsplugin_news.urls`, `News`),
)
CMS_NAVIGATION_EXTENDERS = (
(`cmsplugin_news.menu.get_nodes`, `News navigation`),
)
To avoid confusion add a application
template to the CMS which is like other templates but without any placeholders. That way users won't get tempted to fill the placeholders and then complain they don't show up ;-)