• Recent
    • Tags
    • Popular
    • Register
    • Login

    Please Note This forum exists for community support for the Mango product family and the Radix IoT Platform. Although Radix IoT employees participate in this forum from time to time, there is no guarantee of a response to anything posted here, nor can Radix IoT, LLC guarantee the accuracy of any information expressed or conveyed. Specific project questions from customers with active support contracts are asked to send requests to support@radixiot.com.

    Radix IoT Website Mango 3 Documentation Website Mango 4 Documentation Website Mango 5 Documentation Website

    Custom Browser Tab Icon - MangoES

    MangoES Hardware
    5
    7
    2.9k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      henryblu
      last edited by

      Hello,

      I am using a MangoES, and would like to change the Browser Tab Icon. I have logged in to the MangoES via Webmin and accessed the File Manager within the 'Other' tab.

      In accordance with the instructions (https://help.infiniteautomation.com/how-to-use-the-overrides-folder), I have copied /classes/env.properties (within the opt>mango), As shown below:
      0_1503627713498_cbda1b63-37e7-47eb-84dc-eb9009514c62-image.png
      I have then pasted it into the folder opt>mango>overrides>properties:
      0_1503627803175_8aa50168-45c0-4ee9-b09f-bd914111fddc-image.png

      Based on the forum post here (https://forum.infiniteautomation.com/topic/2523/change-browser-tab) I have created a folder called 'images' within overrides>web and uploaded a file named favicon.ico.
      0_1503627972463_5ce14473-7280-453e-b874-8bc6636ef68f-image.png
      I have then cleared my browser cache on Google Chrome (ctrl-shift-del) (from the beginning of time) and restarted my browser.

      When I log-in the browser tab icon remains the same. I have also tried running the Mango on Firefox and Chromium to see if this changes but no luck.

      Has anyone been able to achieve this?

      Cheers, Henry

      1 Reply Last reply Reply Quote 0
      • JoelHaggarJ
        JoelHaggar
        last edited by

        I realized that what you did here overrode the favicon used in the old UI but not the new UI. The images and icon for the new UI are stored in: web/modules/mangoUI/web/img so you would create the same path under the overrides folder. I'm just not sure which of the files is used there so Jared will probably need to answer that tomorrow. Sorry about the confusion on this.

        1 Reply Last reply Reply Quote 0
        • Jared WiltshireJ
          Jared Wiltshire
          last edited by Jared Wiltshire

          You will need to override each of the icons (which image is used depends on the screen density).

          $MA_HOME/overrides/web/modules/mangoUI/web/img/icon16.png
          $MA_HOME/overrides/web/modules/mangoUI/web/img/icon36.png
          $MA_HOME/overrides/web/modules/mangoUI/web/img/icon48.png
          $MA_HOME/overrides/web/modules/mangoUI/web/img/icon72.png
          $MA_HOME/overrides/web/modules/mangoUI/web/img/icon96.png
          $MA_HOME/overrides/web/modules/mangoUI/web/img/icon128.png
          $MA_HOME/overrides/web/modules/mangoUI/web/img/icon144.png
          $MA_HOME/overrides/web/modules/mangoUI/web/img/icon192.png
          

          Developer at Radix IoT

          1 Reply Last reply Reply Quote 0
          • J
            jflores13
            last edited by

            Hi,

            I was also able to change the logo without a problem and the icon from the old UI, but I tried generating and overriding all of those new icons with no luck.

            Since the path posted by Joel is a bit different than the one posted by Jared, I created an overrides/web/modules folder and also an overrides/modules folder with the rest of the path and the icons listed, just in case the first one isn't the exact path.

            I think some file locations may be different at the moment because the orange M is still showing in my tab. I don't know what else could be wrong, and I don't know how to inspect the tab icon element to find the path to the file using the web browser's element inspector.

            I would be grateful if you could please confirm the path to the files I need to create, because I already cleared my chrome images, checked multiple times if the files were in those 2 paths using webmin, and power cycled the MangoES about 3 times.

            Thanks in advance!

            1 Reply Last reply Reply Quote 0
            • MattFoxM
              MattFox
              last edited by MattFox

              /[mangodir]/overrides/web/modules/mangoUI/web/
              

              For icons in the mangoUI mobile view you'll need:

              /[mangodir]/overrides/web/modules/mangoUI/web/ui/manifest.json
              

              For altering favicons:

              /[mangodir]/overrides/web/modules/mangoUI/web/ui/index.html
              

              Do not follow where the path may lead; go instead where there is no path.
              And leave a trail - Muriel Strode

              J 1 Reply Last reply Reply Quote 1
              • Jared WiltshireJ
                Jared Wiltshire
                last edited by

                The paths that I posted were URLs, I have edited the post to show the override paths. If you override all the paths listed above you will not have a problem, just be sure to clear your cache. Sometimes browsers will hang onto the icons even after you clear your cache.

                You can also override the following files if desired to change the locations, sizes etc of the images. I would strongly not recommend overriding index.html though because if we make changes to this in the codebase you will not get the updates and it will also affect the caching of resources (Each resource linked to from the index.html file has a hash appended which changes when the file is modified).

                $MA_HOME/overrides/web/modules/mangoUI/web/ui/manifest.json
                $MA_HOME/overrides/web/modules/mangoUI/web/ui/index.html
                

                Developer at Radix IoT

                1 Reply Last reply Reply Quote 1
                • J
                  jflores13 @MattFox
                  last edited by

                  Alright, great help @mattfox & @Jared-Wiltshire. Thanks a lot!

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post