Is there any solution to provide "template blocks" from database for django-cms. I want to generate the template befor django-cms renders the placeholder template tags.
It should be possible to create the blocks in django-admin, sort them and give them to the django-cms.
This is what i would use for the blocks and layout: http://designmodo.github.io/startup-demo/
Example for a template block in the database:
<div>{% placeholder test %}</div>
Any idea for that?
In master templates the block tag is a placeholder that will be replaced by a block in a child template with the same name. In child templates the block tag is content that will replace the placeholder in the master template with the same name.
A CMS built for developers Its lightweight core makes it easy to integrate with other software and put to use immediately, while its ease of use makes it the go-to choice for content managers, content editors and website admins.
Being a web framework, Django needs a convenient way to generate HTML dynamically. The most common approach relies on templates. A template contains the static parts of the desired HTML output as well as some special syntax describing how dynamic content will be inserted.
django CMS is perfect for enterprises who want to set up an amazing-looking, content-driven website. Wagtail offers additional options for experienced developers who feel confident extending their site's capabilities.
Check out Djangocms-stacks. They are incredibly flexible and though you will need to use the new Django CMS 3.0 as a requirement for it, the new CMS is really quite an amazing upgrade and very worth the effort.
[edit] Just in case you don't see the details of the package that are relevant, stacks can contain other plugins, as well as other stacks. So, you could quite conceivably create a single template site that actually allows for complete control restructure of your layout from the edit interface.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With