0

Is it possible to read data in xml file ?. For example I create custom block like so:

<referencecontainer name="sidebar.knowledge">
<block class="Magento\Cms\Block\Block" name="knowledge-base">
<arguments>
<argument name="block_id" xsi:type="string">knowledge-base</argument>
</arguments>
</block>
</referencecontainer>

and variable in config system.xml custom module like:

<group id="general" translate="label" type="text" sortorder="10" showindefault="1" showinwebsite="1" showinstore="1">
<label>General</label>
<field id="mfx_knowledge_block" translate="label" type="text" sortorder="50" showindefault="1" showinwebsite="1" showinstore="1">
<label>Knowledge block mfx</label>
</field>
</group>

Now can I read it in my xml file ?

To be like:

<argument name="block_id" xsi:type="string">{mfx_tab/mfx_knowledge_block}></argument>

Your Answer

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

Browse other questions tagged or ask your own question.