I am developing a custom module, and I need this module to show selected some pictures selected in the backend. So, I declare a parameter with type "imagelist" in my module xml file.
<fields name="params"> <fieldset name="advanced"> <field name="project1-image" type="imagelist" directory="???\images" label="..." description="..." /> </fieldset> </fields>
The problem is the "images" directory is located in some Joomla template. Is there some constant like "JPATH_COMPONENT" or "JPATH_BASE" pointing to currently applied template to site? Or do I need to force site admin to write filename and find it in php file of my module (which seems like a bad solution).