Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Claushingebjerg 939 posts 2574 karma points
    Jun 15, 2021 @ 12:07
    Claushingebjerg
    0

    How to use custom svg icons

    I heard somewhere its now possible to use custom SVG's for icons in the backoffice. I just cant seem to get it working...

    Ive tried dumping an svg in /Umbraco/assets/icons and tried creating /App_Plugins/Icons and dumping one there, but neither works...

    Anyone got a pointer to getting this to work? Would like to have the clients logo as the root node icon :)

  • Bjarne Fyrstenborg 1285 posts 4039 karma points MVP 8x c-trib
    Jun 15, 2021 @ 12:14
    Bjarne Fyrstenborg
    101

    Hi Claus

    You need to place custom SVG icons in a specific folder in App_Plugins.

    For example a coffee.svg in a folder located at /App_Plugins/MyPlugin/Backoffice/Icons/

    /Bjarne

  • Claushingebjerg 939 posts 2574 karma points
    Jun 15, 2021 @ 12:19
    Claushingebjerg
    0

    Cool, it works :), thanks

  • Claushingebjerg 939 posts 2574 karma points
    Jun 16, 2021 @ 09:19
    Claushingebjerg
    0

    Is it right, that custom icons don't work outside of the content tree?

    I dont see the custom doc type icon:

    • When creating a new page with the custom icon
    • Using the block list, both when inserting and viewing...
  • Bjarne Fyrstenborg 1285 posts 4039 karma points MVP 8x c-trib
    Jun 16, 2021 @ 11:26
    Bjarne Fyrstenborg
    0

    Yes, currently it didn't work using custom SVG icons in various areas like:

    • List view
    • Block List and Nested Content
    • Content app
    • Grid editors
    • Create dialogs
    • Etc.

    This has been fixed and will most likely be included in upcoming patch releases - and at least in Umbraco v8.15.0: https://github.com/umbraco/Umbraco-CMS/pulls?q=is%3Apr+is%3Aclosed+author%3Abjarnef+svg

  • Emma Garland 41 posts 123 karma points MVP 7x c-trib
    Sep 11, 2023 @ 09:57
    Emma Garland
    0

    Thanks, this helped me when coming to test PR 13074 :-)

    Emma

Please Sign in or register to post replies

Write your reply to:

Draft