Skip to content

Commit

Permalink
fix issues due to hints
Browse files Browse the repository at this point in the history
  • Loading branch information
ElectricMaxxx committed Dec 13, 2016
1 parent 11714cb commit f9fea5e
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
12 changes: 11 additions & 1 deletion app/Resources/views/error/index.html.twig
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% extends '::base.html.twig' %}
{% extends 'base.html.twig' %}

{% block content %}
<h1>Oops! An Error Occurred</h1>
Expand All @@ -18,7 +18,17 @@
{{ exception.getMessage() }}

<h3>Suggested pages</h3>
<div class="alert alert-info clearfix">
<p>
This page is rendered by the
<code>SuggestionProviderController</code>
of the CmfSeoBundle. This way, usefull suggestions can be shown to your users.
</p>

<a class="docref" href="http://symfony.com/doc/current/cmf/bundles/seo/error_pages.html">
<i class="glyphicon glyphicon-chevron-right"></i>Read about this feature in the CMF documentation.
</a>
</div>
{% for group, list in best_matches if list is not empty %}
<h4>{{ group|capitalize }}</h4>
<ul>
Expand Down
2 changes: 1 addition & 1 deletion app/Resources/views/sitemap/index.html.twig
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% extends '::base.html.twig' %}
{% extends 'base.html.twig' %}

{% block content %}
<h1>Sitemap</h1>
Expand Down
6 changes: 3 additions & 3 deletions app/config/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,15 +117,15 @@ cmf_seo:
enable_parent_provider: true
enable_sibling_provider: true
templates:
html: ":error:index.html.twig"
html: ":error/index.html.twig"
exclusion_rules:
- { path: 'excluded' }
sitemap:
defaults:
default_change_frequency: never
templates:
xml: ':sitemap:index.xml.twig'
html: ':sitemap:index.html.twig'
xml: ':sitemap/index.xml.twig'
html: ':sitemap/index.html.twig'
configurations:
sitemap: ~
frequent:
Expand Down

0 comments on commit f9fea5e

Please sign in to comment.