Skip to content

Commit

Permalink
Update using_twig.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
azokal committed May 21, 2015
1 parent deb0d42 commit 0482a3a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions themes/using_twig.rst
Original file line number Diff line number Diff line change
Expand Up @@ -270,8 +270,9 @@ Translations filters
These following Twig filters will only work with ``Translation`` entities.
Use them with the *pipe* syntax, eg. ``translation|menu``.

* ``menu``: shortcut for ``$translation->getViewer()->getTranslationMenuAssignation()``. This
filter returns some useful informations about current page available languages and their
* ``menu``: shortcut for ``$translation->getViewer()->getTranslationMenuAssignation()``.

This filter returns some useful informations about current page available languages and their
urls. See `getTranslationMenuAssignation method definition <http://api.roadiz.io/RZ/Roadiz/Core/Viewers/TranslationViewer.html#method_getTranslationMenuAssignation>`_.
You do not have to pass it the current request object as the filter will grab it
for you. But you can specify if you want *absolute* urls or not.
Expand Down

1 comment on commit 0482a3a

@ambroisemaupate
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks !

Please sign in to comment.