Browse files

fixed title handle

  • Loading branch information...
1 parent 92bb106 commit 64917567fdc6dc3d167a0337bfd7e2cab75c0eb2 @lsmith77 lsmith77 committed Nov 29, 2012
View
1 app/Resources/SymfonyCmfSimpleCmsBundle/views/Page/index.html.twig
@@ -1,5 +1,6 @@
{% extends "CmfMainBundle::layout.html.twig" %}
+{% block title %}{{ cmfMainContent.title }}{% endblock %}
{% block content %}
<div property="sioc:content">
View
2 src/Cmf/MainBundle/Resources/views/Cms/news_detail.html.twig
@@ -1,4 +1,4 @@
-{% extends "CmfMainBundle::layout.html.twig" %}
+{% extends "SymfonyCmfSimpleCmsBundle:Page:index.html.twig" %}
{% block content %}
<div xmlns:sioc="http://rdfs.org/sioc/ns#" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:skos="http://www.w3.org/2004/02/skos/core#" typeof="sioc:Post" about="{{ cmfMainContent.path }}">
View
4 src/Cmf/MainBundle/Resources/views/Cms/news_overview.html.twig
@@ -1,4 +1,6 @@
-{% extends "CmfMainBundle::layout.html.twig" %}
+{% extends "SymfonyCmfSimpleCmsBundle:Page:index.html.twig" %}
+
+{% block title %}{{ cmfMainContent.title }}{% endblock %}
{% block content %}
<div xmlns:sioc="http://rdfs.org/sioc/ns#" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:skos="http://www.w3.org/2004/02/skos/core#" typeof="sioc:Post" about="{{ cmfMainContent.path }}">
View
2 src/Cmf/MainBundle/Resources/views/layout.html.twig
@@ -3,7 +3,7 @@
<head>
<meta name="viewport" content=" minimum-scale=1.0, maximum-scale=1.0, width=device-width; user-scalable=no">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
- <title>{% block title %}{{ title|default('Simple CMS')|striptags }}{% endblock %} | Symfony2 CMF</title>
+ <title>{% block title %}{{ title|default('Welcome')|striptags }}{% endblock %} | Symfony2 CMF</title>
{% block includes %}
<link href="{{ asset('bundles/cmfmain/css/style.css') }}" type="text/css" rel="stylesheet"/>

0 comments on commit 6491756

Please sign in to comment.