Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

Space in Custom Directive code does not work on Email Templates #6683

Closed
@lenlorijn

Description

@lenlorijn

Description:

The example of a new directive does not work in an upgraded 2.3.4 Magento.

https://devdocs.magento.com/guides/v2.3/frontend-dev-guide/templates/template-email-migration.html

Possible solutions:

Either a part of the description is missing or the code should be made to work. I personally have not been able to make this work.

Additional information:

I have created a directive, a copy of the code here but in a different namespace.
When I add the directive to the template as a core change, to test if it works, the directive is not replaced.
If I place spaces between the curly braces and the name of the directive I get a notice "Undefined index: directiveName in vendor/magento/framework/Filter/DirectiveProcessor/SimpleDirective.php on line 68"

Metadata

Metadata

Assignees

Labels

TechnicalUpdates to the code or processes that alter the technical content of the doc

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions