tempaltes: Added usable tempaltes.
+ cms/ungleich.ch/blog.html: This template should only be used to page with the Blog application set. Although it doesn't declare anything special than exposing the content block. + cms/ungleich.ch/index.html: Not used. Example? + cms/ungleich.ch/page.html: A template for generic pages, it only declares a placeholder inside the base_content where you should but the content for the page. + cms/ungleich.ch/__init__.py See documentation for django cms regarding template_dirs settings option. Used for namespacing and order. Signed-off-by: rscnt <rascnt@gmail.com>
This commit is contained in:
parent
8f6461fd63
commit
d57a8dc338
4 changed files with 19 additions and 0 deletions
6
templates/cms/ungleich.ch/__init__.py
Normal file
6
templates/cms/ungleich.ch/__init__.py
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
from django.utils.translation import ugettext_lazy as _
|
||||||
|
TEMPLATES = {
|
||||||
|
'blog.html': _('Blog'),
|
||||||
|
'page.html': _('Page'),
|
||||||
|
}
|
5
templates/cms/ungleich.ch/blog.html
Normal file
5
templates/cms/ungleich.ch/blog.html
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
{% extends "cms/ungleich.ch/base.html" %}
|
||||||
|
{% block base_content %}
|
||||||
|
{% block content %}
|
||||||
|
{% endblock %}
|
||||||
|
{% endblock %}
|
3
templates/cms/ungleich.ch/index.html
Normal file
3
templates/cms/ungleich.ch/index.html
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
{% extends "cms/ungleich.ch/base.html" %}
|
||||||
|
{% block base_content %}
|
||||||
|
{% endblock %}
|
5
templates/cms/ungleich.ch/page.html
Normal file
5
templates/cms/ungleich.ch/page.html
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
{% extends "cms/ungleich.ch/base.html" %}
|
||||||
|
{% load cms_tags %}
|
||||||
|
{% block base_content %}
|
||||||
|
{% placeholder "page_content" %}
|
||||||
|
{% endblock %}
|
Loading…
Reference in a new issue