I'm updating a Magento plugin and I'd like to add an external link like this:
<a href="myweblink" target "_blank">My weblink </a>
I tried to do it adding these lines in layout.xml file (that is the model I use)
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_file.xsd">
<referenceContainer name="footer">
<block class="Magento\Framework\View\Element\Html\Link\Current" name="footer_blog_link" before="-">
<arguments>
<argument name="label" xsi:type="string" translate="true">Condizioni di contratto e termini di utilizzo</argument>
<argument name="path" xsi:type="string">https://www.fattura24.com/termini-utilizzo/</argument>
<argument name="target" xsi:type="string">_blank</argument>
</arguments>
<arguments>
<argument name="label" xsi:type="string" translate="true">Regolamento integrarivo (delle Condizioni di Contratto) per l'UTENTE che utilizza moduli per E-Commerce di Fattura24</argument>
<argument name="path" xsi:type="string">https://www.fattura24.com/regolamento-ecommerce/</argument>
<argument name="target" xsi:type="string">_blank</argument>
</arguments>
<arguments>
<argument name="label" xsi:type="string" translate="true">Privacy</argument>
<argument name="path" xsi:type="string">https://www.fattura24.com/policy/</argument>
<argument name="target" xsi:type="string">_blank</argument>
</arguments>
</block>
</referenceContainer>
I'm not displaying the links in admin footer of my extension.
I put this file in /adminhtml/layout then I updated the app, flushed magento cache, reindexed but still can't display links
system.xml
? you could not add this insystem.xml
and the error confirm that. Do it instead in layout