I develop a custom module and I need this module to show some pictures choosen in 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 "images" dir located in some Joomla template. Is there maybe some constant like "JPATH_COMPONENT" or "JPATH_BASE" pointing to currently applied template to site? Or I need force site admin to write filename and find it in php file of my module, this seems like a bad solution.
Thanks in advance, Andrey!