Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I have observed that when we export menu items in which icons are set, the generated yml file does not include these references.
I'm using the icons module (https://www.drupal.org/project/icons) + MD Fontello (https://www.drupal.org/project/md_fontello) to set icons.
I have developed a solution but of course I would like your opinion.
Thanks
Comment | File | Size | Author |
---|---|---|---|
#4 | structure_sync.data_.yml | 416 bytes | daniel.delaiglesia |
#4 | screenshot.png | 34.85 KB | daniel.delaiglesia |
#2 | 2959845-support-for-icons-in-menu-items.patch | 2.61 KB | daniel.delaiglesia |
Comments
Comment #2
daniel.delaiglesia CreditAttribution: daniel.delaiglesia as a volunteer commentedMy proposed solution.
I have also tried enabling the Menu Link Atributtes module (https://www.drupal.org/project/menu_link_attributes) and it works by setting attributes and icons.I would be delighted if you could review the proposed solution.
Thank you very much
Comment #3
timKruijsen CreditAttribution: timKruijsen at Ordina Digital Services commentedYour patch seems to remove support for attributes, is that done deliberately?
Comment #4
daniel.delaiglesia CreditAttribution: daniel.delaiglesia as a volunteer commentedI think that it is not necessary to establish them since they are established in the options of the menu item. That is why I replace it.
This yml structure works correctly for me when I import the code again...it is why I wanted your wise opinion
I attached a screenshot of an item and the yml code it generates.
Thanks
Comment #6
timKruijsen CreditAttribution: timKruijsen at Ordina Digital Services commentedThen it looks good to me! Released in 8.x-1.12. Thank you for your contribution.
Comment #7
daniel.delaiglesia CreditAttribution: daniel.delaiglesia as a volunteer commentedThank you very much for your prompt reply!