Skip over navigation
Documentation

@TitleTemplate

Warning

This documentation refers to a previously released version of OroCRM. See the latest development version (current) or the latest LTS version (2.6).

This annotation is used to configure the template that is used to render the page title when the controller tagged with this annotation is accessed:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
// ...
use Oro\Bundle\NavigationBundle\Annotation\TitleTemplate;

/**
 * @TitleTemplate("The page title")
 */
public function demoAction()
{
    // ...
}

You can use arbitrary placeholders here which you then have to replace later on in your template using the oro_title_set() Twig function:

1
{% oro_title_set({params : {"%username%": fullname }}) %}
Browse maintained versions:3.01.122.02.32.6

You will be redirected to [title]. Would you like to continue?

Yes No
sso for www.magecore.comsso for oroinc.desso for oroinc.frsso for marketplace.orocommerce.comsso for marketplace.orocrm.com
Back to top