Skip to content

Commit

Permalink
Fix helper names
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Rabaix committed Feb 21, 2012
1 parent 8509df8 commit d3e6185
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Resources/doc/reference/getting_started.rst
Expand Up @@ -131,8 +131,8 @@ Add or Edit a Block
Before adding a new block, please look to the default layout ``SonataPageBundle::layout.html.twig``, it contains different methods call.

* ``manager.renderContainer('content', page)`` : render the container ``content`` of the current page
* ``manager.renderContainer('content_bottom', 'global')`` : render the container ``content_bottom`` of the global page.
* ``sonata_page_render_container('content', page)`` : render the container ``content`` of the current page
* ``sonata_page_render_container('content_bottom', 'global')`` : render the container ``content_bottom`` of the global page.
A global page does not belongs to the current url but it can be use on different pages.
* ``page_include_stylesheets`` and ``page_include_javascripts`` : insert the stylesheets and javascripts used on the page by the related blocks.

Expand Down
4 changes: 2 additions & 2 deletions Resources/doc/reference/twig_helpers.rst
Expand Up @@ -8,9 +8,9 @@ Render a page url

.. code-block:: jinja
{{ page_url(page) }} => /index.php/url/to/url
{{ sonata_page_url(page) }} => /index.php/url/to/url
{{ page_url(page, true) }} => http://sonata-project.org/index.php/url/to/url
{{ sonata_page_url(page, true) }} => http://sonata-project.org/index.php/url/to/url
Container
Expand Down
4 changes: 2 additions & 2 deletions Resources/views/Page/breadcrumb.html.twig
Expand Up @@ -13,13 +13,13 @@ file that was distributed with this source code.
<ul {% for attrname, attrvalue in options.container_attr %}{{ attrname }}="{{ attrvalue }}" {% endfor %}>
{% for breadcrumb in breadcrumbs %}
{% if not breadcrumb.isdynamic %}
<li><a href="{{ page_url(breadcrumb) }}" title="{{ breadcrumb.name }}">{{ breadcrumb.name }}</a>{{ options.separator|raw }}</li>
<li><a href="{{ sonata_page_url(breadcrumb) }}" title="{{ breadcrumb.name }}">{{ breadcrumb.name }}</a>{{ options.separator|raw }}</li>
{% else %}
<li>{{ breadcrumb.name }}{{ options.separator|raw }}</li>
{% endif %}
{% endfor %}
{% if not page.isdynamic %}
<li class="{{ options.current_class }}"><a href="{{ page_url(page) }}" title="{{ page.name }}">{{ page.name }}</a>{{ options.last_separator|raw }}</li>
<li class="{{ options.current_class }}"><a href="{{ sonata_page_url(page) }}" title="{{ page.name }}">{{ page.name }}</a>{{ options.last_separator|raw }}</li>
{% else %}
<li class="{{ options.current_class }}">{{ page.name }}{{ options.last_separator|raw }}</li>
{% endif %}
Expand Down

0 comments on commit d3e6185

Please sign in to comment.