joomla / jissues

Issue tracking application extending GitHub's issues and pull requests for the Joomla! project.
https://issues.joomla.org
GNU General Public License v2.0
71 stars 82 forks source link

Administrator Child Template and Menus Template Style #1212

Closed martyharty closed 9 months ago

martyharty commented 10 months ago

Steps to reproduce the issue

Create a child template of Administrator Atum template and make a change to index for instance. Then change administrator/components/com_menus/forms/itemadmin.xml to:

<field
            name="template_style_id"
            type="templatestyle"
            label="COM_MENUS_ITEM_FIELD_TEMPLATE_LABEL"
            client="administrator"
            filter="int"
            showon="type!:alias[OR]params.alias_redirect:0"
            >
            <option value="0">JOPTION_USE_DEFAULT</option>
        </field>

<!--        <field
            name="template_style_id"
            type="hidden"
            default="0"
        /> -->

Expected result

Assigning specific admin template to special client dashboard Administrator.

Actual result

Menu Item Template Style appears and sets id the database, but template is not assigned to menu item.

System information (as much as possible)

systeminfo-2023-12-09T13_09_10+00_00.txt

Additional comments

It seems assigning child templates to the admin section is disabled for a reason; I think it would help in creating a streamlined admin experience.

martyharty commented 9 months ago

I was overthinking this; Mixing with the User -> Basic Setting -> Backend Template Style and Default Administrator Styles works fine with me.