<field name="description">
        <argument name="data" xsi:type="array">
            <item name="config" xsi:type="array">
                <item name="dataType" xsi:type="string">text</item>
                <item name="label" xsi:type="string" translate="true">Description</item>
                <item name="source" xsi:type="string">booklet</item>
                <item name="dataScope" xsi:type="string">description</item>
                <item name="formElement" xsi:type="string">wysiwyg</item>
                <item name="wysiwyg" xsi:type="boolean">true</item>
                <item name="template" xsi:type="string">ui/form/field</item>
                <rule name="required-entry" xsi:type="boolean">true</rule>

Saved in database

test  <a href="{{config path='web/secure/base_url'}}lean-office">link </a>

When i call then this in the template, the config path isn't replace.

<div class="ss-booklets-mea-desc"><?= $meaBooklet->getDescription(); ?></div>

So as I'm getting this in front with the config path being not replaced

<a href="{{config path='web/secure/base_url'}}lean-office">lien </a>

The same thing in a cms block is fully replaced.

So...does magento only make this replacement for native cms block ? Is there some king of process method to call to make this replacement on my own code too ? I was hoping to avoid to use a replace method on the string return.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy