Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Django-CMS template blocks

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?

like image 696
cwirz Avatar asked Dec 29 '13 15:12

cwirz


People also ask

What is block in Django template?

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.

Is Django good for CMS?

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.

What does Django template contains?

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.

What is the difference between Django and wagtail?

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.


1 Answers

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.

like image 139
The NetYeti Avatar answered Oct 16 '22 19:10

The NetYeti