2

In my Joomla install there's already a template installed, and with this template came the folder "template" in media. I want to place my "menu background images" folder within this "template" folder upon installing my menu module. How do I go about doing this?

4

You can create install-uninstall-script file and on installation of the module move the images folder in to the desired location.

Another way using xml syntax, but this is restricted to media directory only. In case you want to move your module media to some directory other than Joomla-root/media then this solution will not work.

   <media folder="media" destination="Template_directory">
            <folder>css</folder>
            <folder>js</folder>
    </media>
  • are you sure there's no easier way? I feel a script like this would be an unnecesarily big addition to such a small module. I was hoping there was a way to fix it in the xml file. – Hocho Nov 26 '14 at 12:06
  • 1
    yes there is one more way by using xml file..i have added this in answer – Nick Nov 26 '14 at 16:05
  • Great, just what I was looking for, thanks!! – Hocho Nov 26 '14 at 16:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.