From 2518289ebcabc4b1a9f7b5f335ae30509ba19df0 Mon Sep 17 00:00:00 2001 From: flowers Date: Tue, 23 Apr 2024 11:28:08 -0500 Subject: [PATCH] ACP2E-3031: Update the documentation on OM in templates --- src/pages/guide/layouts/xml-instructions.md | 2 ++ src/pages/guide/templates/override.md | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/pages/guide/layouts/xml-instructions.md b/src/pages/guide/layouts/xml-instructions.md index 1627887e..3828f058 100644 --- a/src/pages/guide/layouts/xml-instructions.md +++ b/src/pages/guide/layouts/xml-instructions.md @@ -412,6 +412,8 @@ The argument with *helper* type can contain `param` items which can be passed as import Docs from '/src/_includes/objects-in-templates.md' + + These argument examples can be taken in the template by *getData* method. Another way to take these arguments is using the magic method *get* followed by the name of argument in CamelCase format. Here is an example to retrieve the arguments from above example: ```php diff --git a/src/pages/guide/templates/override.md b/src/pages/guide/templates/override.md index 7ea2b742..19394432 100644 --- a/src/pages/guide/templates/override.md +++ b/src/pages/guide/templates/override.md @@ -81,6 +81,8 @@ Arguments values set in a layout file are accessed in templates using the block' import Docs from '/src/_includes/objects-in-templates.md' + + For example, set an argument in the block: `ExampleCorp`. * Get the argument value, in the template: