diff --git a/app/AppKernel.php b/app/AppKernel.php index a9bbafe..991a9be 100755 --- a/app/AppKernel.php +++ b/app/AppKernel.php @@ -28,9 +28,12 @@ public function registerBundles() new Symfony\Cmf\Bundle\BlockBundle\CmfBlockBundle(), new Symfony\Cmf\Bundle\CoreBundle\CmfCoreBundle(), new Symfony\Cmf\Bundle\SimpleCmsBundle\CmfSimpleCmsBundle(), + new Symfony\Cmf\Bundle\SeoBundle\CmfSeoBundle(), // dependency of the block bundle new Sonata\BlockBundle\SonataBlockBundle(), + new Sonata\SeoBundle\SonataSeoBundle(), + // and the website specific bundle new Cmf\MainBundle\CmfMainBundle(), diff --git a/app/config/config.yml b/app/config/config.yml index 8248fcc..9af3190 100755 --- a/app/config/config.yml +++ b/app/config/config.yml @@ -53,6 +53,10 @@ cmf_menu: voters: uri_prefix: true +cmf_seo: + title: %%content_title%% | Symfony2 CMF + description: The Symfony2 Content Management Framework. %%content_description%% + doctrine_cache: providers: phpcr_meta: @@ -76,3 +80,11 @@ fos_rest: sonata_block: default_context: [cms] + +sonata_seo: + page: + title: Symfony2 CMF + metas: + name: + description: The Symfony2 Content Management Framework + keywords: "CMF, Symfony2, PHPCR" diff --git a/composer.json b/composer.json index a462423..7a98444 100755 --- a/composer.json +++ b/composer.json @@ -15,6 +15,7 @@ "symfony-cmf/content-bundle": "1.1.*@dev", "symfony-cmf/menu-bundle": "1.1.*@dev", "symfony-cmf/simple-cms-bundle": "1.1.*@dev", + "symfony-cmf/seo-bundle": "1.0.*@dev", "friendsofsymfony/rest-bundle": "~1.0", "jms/serializer-bundle": ">=0.12,<0.14", "jackalope/jackalope-doctrine-dbal": "1.1.*", diff --git a/composer.lock b/composer.lock index e350b92..6d3866f 100644 --- a/composer.lock +++ b/composer.lock @@ -3,7 +3,7 @@ "This file locks the dependencies of your project to a known state", "Read more about it at http://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file" ], - "hash": "21fb1843e1b46169b1c2091f46bd2139", + "hash": "b4a898b75d40e7164eab2a4f07d54be5", "packages": [ { "name": "doctrine/annotations", @@ -43,9 +43,10 @@ ], "authors": [ { - "name": "Jonathan Wage", + "name": "Jonathan H. Wage", "email": "jonwage@gmail.com", - "homepage": "http://www.jwage.com/" + "homepage": "http://www.jwage.com/", + "role": "Creator" }, { "name": "Guilherme Blanco", @@ -259,7 +260,8 @@ { "name": "Jonathan Wage", "email": "jonwage@gmail.com", - "homepage": "http://www.jwage.com/" + "homepage": "http://www.jwage.com/", + "role": "Creator" }, { "name": "Guilherme Blanco", @@ -337,7 +339,8 @@ { "name": "Jonathan Wage", "email": "jonwage@gmail.com", - "homepage": "http://www.jwage.com/" + "homepage": "http://www.jwage.com/", + "role": "Creator" } ], "description": "Data Fixtures for all Doctrine Object Managers", @@ -600,7 +603,8 @@ { "name": "Jonathan Wage", "email": "jonwage@gmail.com", - "homepage": "http://www.jwage.com/" + "homepage": "http://www.jwage.com/", + "role": "Creator" }, { "name": "Guilherme Blanco", @@ -2054,6 +2058,123 @@ ], "time": "2014-02-14 14:24:51" }, + { + "name": "sonata-project/exporter", + "version": "1.3.3", + "source": { + "type": "git", + "url": "https://github.com/sonata-project/exporter.git", + "reference": "dad681274e09854a972a0c882ebddd095b7837be" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sonata-project/exporter/zipball/dad681274e09854a972a0c882ebddd095b7837be", + "reference": "dad681274e09854a972a0c882ebddd095b7837be", + "shasum": "" + }, + "require": { + "php": ">=5.3.0" + }, + "require-dev": { + "propel/propel1": "~1.6", + "symfony/property-access": "~2.2", + "symfony/routing": "*" + }, + "suggest": { + "ext-curl": "*", + "propel/propel1": "~1.6", + "symfony/property-access": "~2.2", + "symfony/routing": "*" + }, + "type": "library", + "autoload": { + "psr-0": { + "Exporter": "lib/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Thomas Rabaix", + "email": "thomas.rabaix@gmail.com", + "homepage": "http://sonata-project.org/" + } + ], + "description": "Lightweight Exporter library", + "homepage": "https://github.com/sonata-project/Exporter", + "keywords": [ + "client", + "csv", + "data", + "export", + "xls" + ], + "time": "2013-10-24 13:43:33" + }, + { + "name": "sonata-project/seo-bundle", + "version": "1.1.6", + "source": { + "type": "git", + "url": "https://github.com/sonata-project/SonataSeoBundle.git", + "reference": "0ccc9f2e36b467a9d4b7729ed075196b80376304" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sonata-project/SonataSeoBundle/zipball/0ccc9f2e36b467a9d4b7729ed075196b80376304", + "reference": "0ccc9f2e36b467a9d4b7729ed075196b80376304", + "shasum": "" + }, + "require": { + "sonata-project/exporter": ">=1.2.2,<2.0", + "symfony/symfony": "~2.1", + "twig/twig": "*" + }, + "require-dev": { + "sonata-project/admin-bundle": "~2.2", + "sonata-project/block-bundle": "~2.2,>=2.2.7" + }, + "suggest": { + "knplabs/knp-menu-bundle": "Used by the BreadcrumbMenuBuilder", + "sonata-project/block-bundle": "Allows you to use SEO friendly blocks" + }, + "type": "symfony-bundle", + "extra": { + "branch-alias": { + "dev-master": "1.1.x-dev" + } + }, + "autoload": { + "psr-4": { + "Sonata\\SeoBundle\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Thomas Rabaix", + "email": "thomas.rabaix@sonata-project.org", + "homepage": "http://sonata-project.org" + }, + { + "name": "Sonata Community", + "homepage": "https://github.com/sonata-project/SonataSeoBundle/contributors" + } + ], + "description": "Symfony SonataSeoBundle", + "homepage": "http://sonata-project.org/bundles/seo", + "keywords": [ + "seo", + "sonata" + ], + "time": "2014-02-14 14:28:54" + }, { "name": "symfony-cmf/block-bundle", "version": "dev-master", @@ -2434,6 +2555,69 @@ ], "time": "2014-04-07 17:05:14" }, + { + "name": "symfony-cmf/seo-bundle", + "version": "dev-master", + "target-dir": "Symfony/Cmf/Bundle/SeoBundle", + "source": { + "type": "git", + "url": "https://github.com/symfony-cmf/SeoBundle.git", + "reference": "cf6cb08729faad077303766d13f1ddbd79ff9264" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony-cmf/SeoBundle/zipball/cf6cb08729faad077303766d13f1ddbd79ff9264", + "reference": "cf6cb08729faad077303766d13f1ddbd79ff9264", + "shasum": "" + }, + "require": { + "php": ">=5.3.3", + "sonata-project/seo-bundle": "1.1.*@dev", + "symfony-cmf/core-bundle": "1.1.*@dev" + }, + "require-dev": { + "doctrine/phpcr-bundle": "1.1.*@dev", + "doctrine/phpcr-odm": "1.1.*@dev", + "matthiasnoback/symfony-config-test": "0.*", + "matthiasnoback/symfony-dependency-injection-test": "0.*", + "sonata-project/doctrine-phpcr-admin-bundle": "1.1.*@dev", + "symfony-cmf/routing-bundle": "1.2.*@dev", + "symfony-cmf/testing": "dev-master" + }, + "suggest": { + "doctrine/doctrine-bundle": "To persist the metadata in ORM entities", + "doctrine/phpcr-bundle": "To persist the metadata in PHPCR ODM documents", + "sonata-project/doctrine-phpcr-admin-bundle": "To provide an admin extension for the seo metadata" + }, + "type": "symfony-bundle", + "extra": { + "branch-alias": { + "dev-master": "1.0-dev" + } + }, + "autoload": { + "psr-0": { + "Symfony\\Cmf\\Bundle\\SeoBundle": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Symfony CMF Community", + "homepage": "https://github.com/symfony-cmf/SeoBundle/contributors" + } + ], + "description": "Symfony CMF Search Engine Optimization Bundle", + "homepage": "http://cmf.symfony.com", + "keywords": [ + "Symfony CMF", + "seo" + ], + "time": "2014-04-08 07:04:01" + }, { "name": "symfony-cmf/simple-cms-bundle", "version": "dev-master", @@ -2927,6 +3111,7 @@ "symfony-cmf/content-bundle": 20, "symfony-cmf/menu-bundle": 20, "symfony-cmf/simple-cms-bundle": 20, + "symfony-cmf/seo-bundle": 20, "doctrine/phpcr-bundle": 20, "doctrine/phpcr-odm": 20, "seld/slippy": 20, diff --git a/src/Cmf/MainBundle/Resources/views/layout.html.twig b/src/Cmf/MainBundle/Resources/views/layout.html.twig index 82a50cd..795f4a0 100755 --- a/src/Cmf/MainBundle/Resources/views/layout.html.twig +++ b/src/Cmf/MainBundle/Resources/views/layout.html.twig @@ -3,7 +3,10 @@
-