You are browsing upcoming documentation for version 6.1 of OroCommerce, scheduled for release in 2025. Read the documentation for version 6.0 (the latest LTS version) to get up-to-date information.

See our Release Process documentation for more information on the currently supported and upcoming releases.


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

// ...
use Oro\Bundle\NavigationBundle\Attribute\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:

{% oro_title_set({params : {"%username%": fullname }}) %}