Author: klemens
Date: 2014-06-24 12:18:37 +0200 (Tue, 24 Jun 2014)
New Revision: 4113
Modified:
trunk/apps/frontend/config/app.yml
trunk/apps/frontend/lib/generator/columnConfigCollection/UllCmsItemColumnConfigCollection.class.php
trunk/apps/frontend/lib/generator/columnConfigCollection/UllCmsPageColumnConfigCollection.class.php
trunk/apps/frontend/templates/_html_head.mobile.php
trunk/apps/frontend/templates/_html_head.php
Log:
ullCms: added support for html head meta keywords and description in custom area apps/
Modified: trunk/apps/frontend/config/app.yml
===================================================================
--- trunk/apps/frontend/config/app.yml 2014-06-24 09:58:32 UTC (rev 4112)
+++ trunk/apps/frontend/config/app.yml 2014-06-24 10:18:37 UTC (rev 4113)
@@ -8,8 +8,10 @@
# when mailing from the command line
server_name:
www.example.com
- # Default html head title
- base_html_title: ullright - %title%
+ # Default html metas
+ base_html_title: ullright - %title%
+ default_html_meta_description: ullright is an opensource platform for websites & applications initiated by
ull.at
+ default_html_meta_keywords: ullright, ullCms, ullUser, ullNewsletter, website, CMS, content management system, email newsletter, framework,
ull.at
# Enable mobile version rendering for smartphones etc
enable_mobile_version: true
@@ -115,7 +117,7 @@
enable_page_menu_title_field: true
# List of slugs to be hidden from the sitemap including their children
sitemap_blacklist_slugs: [ 'admin-menu' ]
- # List of slugs whose children should be hidden
+ # List of slugs whose children should be hidden (in the edit -> parent item select box too)
sitemap_blacklist_children_slugs: []
# Recommendation bcc email address
recommendation_bcc_email:
m...@example.com
Modified: trunk/apps/frontend/lib/generator/columnConfigCollection/UllCmsItemColumnConfigCollection.class.php
===================================================================
--- trunk/apps/frontend/lib/generator/columnConfigCollection/UllCmsItemColumnConfigCollection.class.php 2014-06-24 09:58:32 UTC (rev 4112)
+++ trunk/apps/frontend/lib/generator/columnConfigCollection/UllCmsItemColumnConfigCollection.class.php 2014-06-24 10:18:37 UTC (rev 4113)
@@ -34,6 +34,8 @@
'preview_image',
'image',
'gallery',
+ 'keywords',
+ 'description',
'ull_cms_content_type_id',
'duplicate_tags_for_search',
'type',
Modified: trunk/apps/frontend/lib/generator/columnConfigCollection/UllCmsPageColumnConfigCollection.class.php
===================================================================
--- trunk/apps/frontend/lib/generator/columnConfigCollection/UllCmsPageColumnConfigCollection.class.php 2014-06-24 09:58:32 UTC (rev 4112)
+++ trunk/apps/frontend/lib/generator/columnConfigCollection/UllCmsPageColumnConfigCollection.class.php 2014-06-24 10:18:37 UTC (rev 4113)
@@ -29,6 +29,8 @@
'preview_image',
'image',
'gallery',
+ 'keywords',
+ 'description',
'ull_cms_content_type_id',
'duplicate_tags_for_search',
'type',
@@ -96,6 +98,8 @@
),
array(
'duplicate_tags_for_search',
+ 'keywords',
+ 'description',
),
array(
'slug',
Modified: trunk/apps/frontend/templates/_html_head.mobile.php
===================================================================
--- trunk/apps/frontend/templates/_html_head.mobile.php 2014-06-24 09:58:32 UTC (rev 4112)
+++ trunk/apps/frontend/templates/_html_head.mobile.php 2014-06-24 10:18:37 UTC (rev 4113)
@@ -17,12 +17,14 @@
<?php /* Do not use a <title> tag, as this is handled by symfony */ ?>
<!-- custom meta information -->
-<meta name="description" content="ullright is an opensource platform for websites & applications initiated by
ull.at" />
-<meta name="keywords" content="ullright, ullCms, ullUser, ullNewsletter, website, CMS, content management system, email newsletter, framework,
ull.at" />
+<?php /* Use the following partial to supply custom keywords and description
+ for every CMS-page or otherwise replace it with normal meta tags.
+ Default keywords and description are defined in apps/frontend/config/app.yml */ ?>
+<?php include_partial('default/html_metas') ?>
<meta name="robots" content="index,follow" />
<meta name="author" content="Klemens Ullmann-Marx and the
www.ull.at team" />
-<meta name="generator" content="ullright / ullCms">
+<meta name="generator" content="ullright / ullCms /
ull.at">
<!-- Favicon -->
<?php /* located in web/images/favicon.ico */ ?>
@@ -31,7 +33,6 @@
<!-- ullNews RSS feed -->
<?php include_component('ullNews', 'rssFeed') ?>
-
<?php /* Add example website stylesheet */ ?>
<?php /* use_stylesheet('/ullCorePlugin/css/layout_website.mobile.css', 'last', array('media' => 'all')) */?>
Modified: trunk/apps/frontend/templates/_html_head.php
===================================================================
--- trunk/apps/frontend/templates/_html_head.php 2014-06-24 09:58:32 UTC (rev 4112)
+++ trunk/apps/frontend/templates/_html_head.php 2014-06-24 10:18:37 UTC (rev 4113)
@@ -17,12 +17,14 @@
<?php /* Do not use a <title> tag, as this is handled by symfony */ ?>
<!-- custom meta information -->
-<meta name="description" content="ullright is an opensource platform for websites & applications initiated by
ull.at" />
-<meta name="keywords" content="ullright, ullCms, ullUser, ullNewsletter, website, CMS, content management system, email newsletter, framework,
ull.at" />
+<?php /* Use the following partial to supply custom keywords and description
+ for every CMS-page or otherwise replace it with normal meta tags.
+ Default keywords and description are defined in apps/frontend/config/app.yml */ ?>
+<?php include_partial('default/html_metas') ?>
<meta name="robots" content="index,follow" />
<meta name="author" content="Klemens Ullmann-Marx and the
www.ull.at team" />
-<meta name="generator" content="ullright / ullCms">
+<meta name="generator" content="ullright / ullCms /
ull.at">
<!-- Favicon -->
<?php /* located in web/images/favicon.ico */ ?>