How to add media Module in setting module



  • Please let me know how to add media module in setting module for logo

    Meet Mehta

    0


  • how to link media in setting module

    Meet Mehta

    0


  • Please Help......

    Meet Mehta

    0


  • Please Help....................

    Meet Mehta

    0


  • where and how to add logo in backend and how to display that logo in frontend? please help...

    Meet Mehta

    0

  • Global Moderator

    @meet

    Hey, i don't have time to investigate on how to use media module in settings.

    But for now you could do simplified approach.

    1. Add settings field in your module (text field)
    2. Upload image in Media module section
    3. Copy uploaded media filename
    4. Enter that filename in your settings field
    5. In template where you want to display this media add <img src="{{ Imagy::getThumbnail('/assets/media/'.setting('mymodule::field-name'), 'smallThumb') }}" alt="" />

    In the 5th step change smallThumb to any thumb size you need, for example create your size in your module



  • thanks for reply i just want to know we can add media module in setting or not? yes or no thanks alot

    Meet Mehta

    0

  • Global Moderator

    @meet

    Not right out of the box.

    But it's possible in general, you would probably need to manually supply data to settings module from javascript etc.



  • thanks for reply

    Meet Mehta

    0

Log in to reply