From 81e108a0110bf2e2fecc1bc5b401fda64c873a4c Mon Sep 17 00:00:00 2001 From: rscnt Date: Sat, 23 May 2015 04:12:51 -0600 Subject: [PATCH] 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 --- templates/cms/ungleich.ch/__init__.py | 6 ++++++ templates/cms/ungleich.ch/blog.html | 5 +++++ templates/cms/ungleich.ch/index.html | 3 +++ templates/cms/ungleich.ch/page.html | 5 +++++ 4 files changed, 19 insertions(+) create mode 100644 templates/cms/ungleich.ch/__init__.py create mode 100644 templates/cms/ungleich.ch/blog.html create mode 100644 templates/cms/ungleich.ch/index.html create mode 100644 templates/cms/ungleich.ch/page.html diff --git a/templates/cms/ungleich.ch/__init__.py b/templates/cms/ungleich.ch/__init__.py new file mode 100644 index 00000000..403fbcc0 --- /dev/null +++ b/templates/cms/ungleich.ch/__init__.py @@ -0,0 +1,6 @@ +# -*- coding: utf-8 -*- +from django.utils.translation import ugettext_lazy as _ +TEMPLATES = { + 'blog.html': _('Blog'), + 'page.html': _('Page'), +} diff --git a/templates/cms/ungleich.ch/blog.html b/templates/cms/ungleich.ch/blog.html new file mode 100644 index 00000000..bfc3aae7 --- /dev/null +++ b/templates/cms/ungleich.ch/blog.html @@ -0,0 +1,5 @@ +{% extends "cms/ungleich.ch/base.html" %} +{% block base_content %} +{% block content %} +{% endblock %} +{% endblock %} diff --git a/templates/cms/ungleich.ch/index.html b/templates/cms/ungleich.ch/index.html new file mode 100644 index 00000000..9e1c9503 --- /dev/null +++ b/templates/cms/ungleich.ch/index.html @@ -0,0 +1,3 @@ +{% extends "cms/ungleich.ch/base.html" %} +{% block base_content %} +{% endblock %} diff --git a/templates/cms/ungleich.ch/page.html b/templates/cms/ungleich.ch/page.html new file mode 100644 index 00000000..66f67def --- /dev/null +++ b/templates/cms/ungleich.ch/page.html @@ -0,0 +1,5 @@ +{% extends "cms/ungleich.ch/base.html" %} +{% load cms_tags %} +{% block base_content %} +{% placeholder "page_content" %} +{% endblock %}