In my custom module, my themes are structured like this:
/modules/mod_ab_art/tmpl/default/default.php
/modules/mod_ab_art/tmpl/arz/default.php
I have an option for the user to select a theme from the admin section like this:
<field
name="theme"
type="list"
default="default"
label="MOD_AB_ART_THEME_LABEL"
description="MOD_AB_ART_THEME_DESC">
<option value="default">MOD_AB_ART_THEME_DEFAULT</option>
<option value="arz">MOD_AB_ART_FIELD_ARZ</option>
</field>
I also have an alternative layout option as shown below but this is not displaying anything in the dropdown list. I think this is supposed to display Default
in the dropdown list. Is it because of the theme subdirectories inside the tmpl
directory? Does alternative layout work only with a single theme?
<field name="altlayout"
type="modulelayout"
label="JFIELD_ALT_LAYOUT_LABEL"
description="JFIELD_ALT_MODULE_LAYOUT_DESC" />