Skip to content

Commit

Permalink
added nova seo bundle (ezsystems#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
damianz5 committed Mar 22, 2018
1 parent a912397 commit 3fbe478
Show file tree
Hide file tree
Showing 7 changed files with 164 additions and 104 deletions.
1 change: 1 addition & 0 deletions app/AppKernel.php
Expand Up @@ -28,6 +28,7 @@ public function registerBundles()
new Bazinga\Bundle\JsTranslationBundle\BazingaJsTranslationBundle(),
new FOS\JsRoutingBundle\FOSJsRoutingBundle(),
new WhiteOctober\PagerfantaBundle\WhiteOctoberPagerfantaBundle(),
new Novactive\Bundle\eZSEOBundle\NovaeZSEOBundle(),
new \Kaliop\eZMigrationBundle\EzMigrationBundle(),
new Lolautruche\EzCoreExtraBundle\EzCoreExtraBundle(),
// eZ Systems
Expand Down
Expand Up @@ -2,9 +2,9 @@
<html class="no-js" lang="{{ app.request.locale }}">
<head>
{% block seo_metas %}
{#{% if location is defined and not location.isDraft %}#}
{#{% include "NovaeZSEOBundle::seometas_head.html.twig" %}#}
{#{% endif %}#}
{% if location is defined and not location.isDraft %}
{% include "NovaeZSEOBundle::seometas_head.html.twig" %}
{% endif %}
{% endblock %}

<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
Expand Down
58 changes: 58 additions & 0 deletions app/config/ezplatform.yml
Expand Up @@ -109,3 +109,61 @@ assetic:
- 'assets/css/blog_post.css'
- 'assets/css/subscribe.css'
- 'assets/css/tags.css'

nova_ezseo:
system:
default:
#custom_fallback_service: ezstudiodemo.seo.fallback
default_links:
Index:
href: { location_id: 2 }
title: "Home"
# Search:
# href: { route: "ezpublish_ezstudiodemo_search" }
# title: "Search"
# "Shortcut icon":
# href: { asset: "/bundles/ezstudiodemo/images/favicon.ico" }
# type: "image/x-icon"
default_metas:
author: "eZ Systems"
copyright: "eZ Systems"
generator: "eZ Platform"
MSSmartTagsPreventParsing: ~
fieldtype_metas:
title:
label: "Title"
default_pattern: "<title|short_title|name>"
description:
label: "Description"
default_pattern: "<description|short_description|intro|title|name>"
keywords:
label: "Keywords"
default_pattern: "<tags>"
canonical:
label: "External Canonical URL"
default_pattern: ~
icon: "link"
"og:title":
label: "Facebook - Title"
default_pattern: "<title|short_title|name>"
icon: "facebook-official"
"og:description":
label: "Facebook - Description"
default_pattern: "<short_description|description|intro|title|name>"
icon: "facebook-official"
"og:image":
label: "Facebook - Image"
default_pattern: "<image|picture>"
icon: "facebook-official"
"twitter:title":
label: "Twitter - Title"
default_pattern: "<title|short_title|name>"
icon: "twitter-square"
"twitter:description":
label: "Twitter - Description"
default_pattern: "<short_description|description|intro|title|name>"
icon: "twitter-square"
"twitter:image":
label: "Twitter - Image"
default_pattern: "<image|picture>"
icon: "twitter-square"
8 changes: 4 additions & 4 deletions app/config/routing.yml
Expand Up @@ -29,10 +29,10 @@ fos.js_routing:
_eztagsRoutes:
resource: "@NetgenTagsBundle/Resources/config/routing.yml"

#_novaezseoRoutes:
# resource: "@NovaeZSEOBundle/Controller/"
# type: annotation
# prefix: /
_novaezseoRoutes:
resource: "@NovaeZSEOBundle/Controller/"
type: annotation
prefix: /

app.submitted:
path: /contact/submitted
Expand Down
1 change: 1 addition & 0 deletions composer.json
Expand Up @@ -50,6 +50,7 @@
"white-october/pagerfanta-bundle": "^1.1",
"roave/security-advisories": "dev-master",
"leafo/scssphp": "^0.7",
"novactive/ezseobundle": "^3.0.0@rc",
"symfony/thanks": "^1.0",
"sensio/framework-extra-bundle": "^5.1",
"oneup/flysystem-bundle": "^3.0",
Expand Down
154 changes: 77 additions & 77 deletions src/AppBundle/MigrationVersions/all.yml
Expand Up @@ -153,17 +153,17 @@
position: 7
field-settings:
hideRootTag: false
# -
# type: novaseometas
# name: Metas
# identifier: metas
# description: 'Metas for Search Engine Optimizations'
# required: false
# info-collector: false
# searchable: false # CANNOT be searchable
# disable-translation: false
# position: 100
# category: metadata
-
type: novaseometas
name: Metas
identifier: metas
description: 'Metas for Search Engine Optimizations'
required: false
info-collector: false
searchable: false # CANNOT be searchable
disable-translation: false
position: 100
category: metadata

# Gallery content type
-
Expand Down Expand Up @@ -429,17 +429,17 @@
field-settings:
hideRootTag: false
editView: Default
# -
# identifier: metas
# type: novaseometas
# name: Metas
# description: 'Metas for Search Engine Optimizations'
# required: false
# searchable: false
# info-collector: false
# disable-translation: false
# category: metadata
# position: 100
-
identifier: metas
type: novaseometas
name: Metas
description: 'Metas for Search Engine Optimizations'
required: false
searchable: false
info-collector: false
disable-translation: false
category: metadata
position: 100

# blog post content type
-
Expand Down Expand Up @@ -551,17 +551,17 @@
editView: Default
# validator-configuration:
# TagsValueValidator: { subTreeLimit: 0, maxTags: 0 }
# -
# identifier: metas
# type: novaseometas
# name: Metas
# description: 'Metas for Search Engine Optimizations'
# required: false
# searchable: false
# info-collector: false
# disable-translation: false
# category: metadata
# position: 100
-
identifier: metas
type: novaseometas
name: Metas
description: 'Metas for Search Engine Optimizations'
required: false
searchable: false
info-collector: false
disable-translation: false
category: metadata
position: 100

# place content type
-
Expand Down Expand Up @@ -692,17 +692,17 @@
defaultType: 1
useSeconds: false
dateInterval: null
# -
# identifier: metas
# type: novaseometas
# name: Metas
# description: 'Metas for Search Engine Optimizations'
# required: false
# searchable: false
# info-collector: false
# disable-translation: false
# category: metadata
# position: 100
-
identifier: metas
type: novaseometas
name: Metas
description: 'Metas for Search Engine Optimizations'
required: false
searchable: false
info-collector: false
disable-translation: false
category: metadata
position: 100

# Place list content type
-
Expand Down Expand Up @@ -760,17 +760,17 @@
disable-translation: false
category: content
position: 9
# -
# identifier: metas
# type: novaseometas
# name: Metas
# description: 'Metas for Search Engine Optimizations'
# required: false
# searchable: false
# info-collector: false
# disable-translation: false
# category: metadata
# position: 100
-
identifier: metas
type: novaseometas
name: Metas
description: 'Metas for Search Engine Optimizations'
required: false
searchable: false
info-collector: false
disable-translation: false
category: metadata
position: 100

# about content type
-
Expand Down Expand Up @@ -828,17 +828,17 @@
disable-translation: false
category: content
position: 4
# -
# identifier: metas
# type: novaseometas
# name: Metas
# description: 'Metas for Search Engine Optimizations'
# required: false
# searchable: false
# info-collector: false
# disable-translation: false
# category: metadata
# position: 100
-
identifier: metas
type: novaseometas
name: Metas
description: 'Metas for Search Engine Optimizations'
required: false
searchable: false
info-collector: false
disable-translation: false
category: metadata
position: 100

# subscribe content type
-
Expand Down Expand Up @@ -885,17 +885,17 @@
disable-translation: false
category: content
position: 3
# -
# identifier: metas
# type: novaseometas
# name: Metas
# description: 'Metas for Search Engine Optimizations'
# required: false
# searchable: false
# info-collector: false
# disable-translation: false
# category: metadata
# position: 100
-
identifier: metas
type: novaseometas
name: Metas
description: 'Metas for Search Engine Optimizations'
required: false
searchable: false
info-collector: false
disable-translation: false
category: metadata
position: 100

# delete previous file content type
-
Expand Down
40 changes: 20 additions & 20 deletions src/AppBundle/MigrationVersions/product_list.yml
Expand Up @@ -39,16 +39,16 @@
name: Description
identifier: description
category: content
# -
# type: novaseometas
# name: Metas
# identifier: metas
# description: Metas for Search Engine Optimizations
# required: false
# info-collector: false
# searchable: false # CANNOT be searchable
# disable-translation: false
# category: metadata
-
type: novaseometas
name: Metas
identifier: metas
description: Metas for Search Engine Optimizations
required: false
info-collector: false
searchable: false # CANNOT be searchable
disable-translation: false
category: metadata

# product content type
-
Expand Down Expand Up @@ -147,16 +147,16 @@
category: content
field-settings:
hideRootTag: false
# -
# type: novaseometas
# name: Metas
# identifier: metas
# description: Metas for Search Engine Optimizations
# required: false
# info-collector: false
# searchable: false # CANNOT be searchable
# disable-translation: false
# category: metadata
-
type: novaseometas
name: Metas
identifier: metas
description: Metas for Search Engine Optimizations
required: false
info-collector: false
searchable: false # CANNOT be searchable
disable-translation: false
category: metadata

# product_list content
-
Expand Down

0 comments on commit 3fbe478

Please sign in to comment.