Django CMS comes with a lot of content plugins that can be used in template placeholders, such as text, flash, picture, and Google Maps plugins. However, for more structured and better styled content from your own models, you will need custom plugins, which are not too difficult to implement. In this recipe, we will look at how to create a new plugin and have a custom layout for its data, depending on the chosen template of the page.
Writing your own CMS plugin
Getting ready
Let's create an editorial app and mention it in the INSTALLED_APPS setting. Also, we will need to create a cms/magazine.html template and add it to the CMS_TEMPLATES setting, with the Magazine label. You can simply duplicate the cms/default.html template...