I have been trying to create an additional tab in navigation.sections
and insert inside languages, and my own account (complete with a menu), login, logout that I have created outside header.links
, they work good on desktop but cannot manage to make them appear in navigation.sections ( the xml managing content of the offcanvas menu),
I have tried different approach, I have started with inserting just the customer.phtml, the latest is (in MyName/myTheme/Magento_Theme/layout/default.xml):
<block class="Magento\Framework\View\Element\Template" name="store.information" group="navigation-sections" template="Magento_Theme::html/container.phtml">
<arguments>
<argument name="title" translate="true" xsi:type="string">Information</argument>
</arguments>
<block class="Magento\Customer\Block\Account\Customer" name="store.settings.customer" template="Magento_Customer::account/customer.phtml">
<arguments>
<argument name="id_modifier" xsi:type="string">nav</argument>
</arguments>
</block>
<block class="Magento\Customer\Block\Form\Login" name="store.settings.custom_customer_form_login" template="Magento_Customer::form/login_pop.phtml" >
<arguments>
<argument name="id_modifier" xsi:type="string">nav</argument>
</arguments>
<block class="Magento\Customer\Block\Form\Login\Info" name="newpopup" template="Magento_Customer::newpopup.phtml"/>
</block>
<block class="Magento\Store\Block\Switcher" name="store.settings.language" template="Magento_Store::switch/languages.phtml">
<arguments>
<argument name="id_modifier" xsi:type="string">nav</argument>
</arguments>
</block>
<block class="Magento\Directory\Block\Currency" name="store.settings.currency" template="Magento_Directory::currency.phtml">
<arguments>
<argument name="id_modifier" xsi:type="string">nav</argument>
</arguments>
</block>
</block>
The result is all title to dropdownDialog are there, but the dropdwon itself is not present, even if the phtml called is already in the page and working under another layout name.