-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Closed
magento/devdocs
#7977Labels
Area: FrontendComponent: Framework/CodeComponent: ThemeIssue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedGate 2 Passed. Manual verification of the issue description passedIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentGate 4. Acknowledged. Issue is added to backlog and ready for developmentProgress: doneReproduced on 2.2.xThe issue has been reproduced on latest 2.2 releaseThe issue has been reproduced on latest 2.2 releaseReproduced on 2.3.xThe issue has been reproduced on latest 2.3 releaseThe issue has been reproduced on latest 2.3 releaseTriage: Dev.ExperienceIssue related to Developer Experience and needs help with Triage to Confirm or Reject itIssue related to Developer Experience and needs help with Triage to Confirm or Reject itbug report
Description
Summary
Documentation claims that it is possible to change a block's template by the following layout update:
<referenceBlock name="navigation.sections">
<arguments>
<argument name="template" xsi:type="string">Magento_Theme::html/nav_sections.phtml</argument>
</arguments>
</referenceBlock>
But It doesn't work.
Using action
node, instead of arguments
node, works fine:
<referenceBlock name="navigation.sections">
<action method="setTemplate">
<argument name="template" xsi:type="string">Magento_Theme::html/nav_sections.phtml</argument>
</action>
</referenceBlock>
Source:
http://devdocs.magento.com/guides/v2.0/frontend-dev-guide/layouts/xml-manage.html#set_template
Preconditions (*)
- Magento 2.3-develop
- PHP 7.2
Steps to reproduce (*)
Try to change a block's template by the following layout update
e.g.:
Expected result (*)
Block's template is changed without any errors
Actual result (*)
vasilii-b, sylvainraye, korostii, digitalpianism, cykirsch and 11 moremackieeenaydav
Metadata
Metadata
Assignees
Labels
Area: FrontendComponent: Framework/CodeComponent: ThemeIssue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedGate 2 Passed. Manual verification of the issue description passedIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentGate 4. Acknowledged. Issue is added to backlog and ready for developmentProgress: doneReproduced on 2.2.xThe issue has been reproduced on latest 2.2 releaseThe issue has been reproduced on latest 2.2 releaseReproduced on 2.3.xThe issue has been reproduced on latest 2.3 releaseThe issue has been reproduced on latest 2.3 releaseTriage: Dev.ExperienceIssue related to Developer Experience and needs help with Triage to Confirm or Reject itIssue related to Developer Experience and needs help with Triage to Confirm or Reject itbug report
Type
Projects
Status
Done