Skip to the content
Documentation

New optional parameter "language_code"

No ratings yet

New in 4.1 but not yet documented:
{def $node_fr = fetch( 'content', 'node',
hash( 'node_id', 96,
'language_code', 'fre-FR'))}

Comments (1 historical)

Written by readers of the earlier documentation sites, kept as they were.

  1. Re: New optional parameter "language_code"

    Jan ·

    I have one trouble with new fetch.
    Current locale is french, trying to fetch it with:
    {def $node_fr = fetch( 'content', 'node',
    hash( 'node_id', 96,
    'language_code', 'eng-US'))}
    Content i've got in english, but url_alias of the $node_fr is in french ... How can i get url_alias in english ?
    Thanks