Announcement

Collapse
No announcement yet.

Change logo via extension upload

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Change logo via extension upload

    Hi,

    Is it posible to change crm logo with extension upload? For example I have extension which do some tasks and I want the same extension to change the logo too.
    Where should I place logo.png file in extension file structure? Or how to do it?

  • #2
    Hi Paulina,

    you should code a function to do so by adding it in the afterInstall script of the extension.
    I tried to code it but my skills aren't good enough.

    Comment


    • Paulina
      Paulina commented
      Editing a comment
      Yes, I understand that this should go to the afterInstall script, but where to place an image file?

    • Kharg
      Kharg commented
      Editing a comment
      I am trying to implement a solution, you can place the logo in 'client/modules/myextension/img/logo.png'

  • #3
    Hi Paulina,
    you can use the following extension to upload the logo with an extension, it also reset the logo to the default one after uninstalling.
    Replace the logo file in 'client/modules/logo-upload/img/logo.png' and if you change the extension name remember to change the path in the AfterInstall script (Line 11)
    logo-upload.zip
    Attached Files
    Last edited by Kharg; 08-26-2022, 06:59 AM.

    Comment


    • #4
      Oh, thank you! You are pro
      Much clearer now.

      Comment


      • #5
        You are welcome, let me know if it works fine for you

        Comment


        • Paulina
          Paulina commented
          Editing a comment
          Yes, it works!
      Working...
      X