Feature PR-6.2-dev Pending

User tests: Successful: Unsuccessful:

avatar korenevskiy
korenevskiy
1 Sep 2026

Pull Request resolves # .

  • I read the Generative AI policy and my contribution is either not created with the help of AI or is compatible with the policy and GNU/GPL 2 or later.

Summary of Changes

I added the ability to add custom options to the ChromestyleField.

<field
	name="item_style"
	type="chromestyle"
	label="Style Module"
	>
	<option value="">JOPTION_DO_NOT_USE</option>
</field>

Testing Instructions

  1. Add the configuration of any module to the XML
<field
	name="item_style"
	type="chromestyle"
	label="Style Module"
	>
	<option value="">JOPTION_DO_NOT_USE</option>
	<option value="userOption">User Oprtion</option>
</field>
  1. Open the module configuration.
  2. Check the field titled “Style Module”.

Actual result BEFORE applying this Pull Request

Previously, custom options were not used.

Expected result AFTER applying this Pull Request

Now, user options will be added to the existing standard options of the module.

Link to documentations

Please select:

  • Documentation link for guide.joomla.org:

  • No documentation changes for guide.joomla.org needed

  • Pull Request link for manual.joomla.org:

  • No documentation changes for manual.joomla.org needed

avatar korenevskiy korenevskiy - open - 1 Sep 2026
avatar korenevskiy korenevskiy - change - 1 Sep 2026
Status New ⇒ Pending
avatar joomla-cms-bot joomla-cms-bot - change - 1 Sep 2026
Category ⇒ Libraries
avatar korenevskiy korenevskiy - change - 1 Sep 2026
Title
…
[6.3] Add custom options chrome field
[6.2] Add custom options chrome field
avatar korenevskiy korenevskiy - edited - 1 Sep 2026
avatar korenevskiy korenevskiy - change - 1 Sep 2026
Labels Added: PR-6.2-dev
avatar korenevskiy korenevskiy - change - 2 Sep 2026
The description was changed
avatar korenevskiy korenevskiy - edited - 2 Sep 2026
avatar korenevskiy korenevskiy - change - 2 Sep 2026
The description was changed
avatar korenevskiy korenevskiy - edited - 2 Sep 2026
avatar korenevskiy korenevskiy - change - 2 Sep 2026
The description was changed
avatar korenevskiy korenevskiy - edited - 2 Sep 2026
avatar korenevskiy korenevskiy - change - 2 Sep 2026
The description was changed
avatar korenevskiy korenevskiy - edited - 2 Sep 2026
avatar korenevskiy korenevskiy - change - 2 Sep 2026
Labels Added: Feature
avatar brianteeman
brianteeman - comment - 25 Sep 2026

What is the use case for this change. How exactly would this change be used - when and where

avatar korenevskiy
korenevskiy - comment - 25 Sep 2026

What is the use case for this change. How exactly would this change be used - when and where

I used it to create a container module to place other modules in it.
This allows you to flexibly create a grid of modules in a template.,
For example, in one module position, I create 2 sub-positions for modules, in the first I place the menu, bread crumbs, in the other sub-position I place a list of news and a banner with animation.
This allows you to go beyond the standard templates that are limited by the number of positions.
"""" My container module contains a "chromestyle" parameter in its settings, allowing you to select the selected "chromestyle" for nested modules or use their default "chromestyle".

avatar korenevskiy
korenevskiy - comment - 25 Sep 2026

What is the use case for this change. How exactly would this change be used - when and where

I used it to create a container module to place other modules in it.
This allows you to flexibly create a grid of modules in a template.,
For example, in one module position, I create 2 sub-positions for modules, in the first I place the menu, bread crumbs, in the other sub-position I place a list of news and a banner with animation.
This allows you to go beyond the standard templates that are limited by the number of positions.
My container module contains a "chromestyle" parameter in its settings, allowing you to select the selected "chromestyle" for nested modules or use their default "chromestyle".

avatar coolcat-creations coolcat-creations - test_item - 17 Oct 2026 - Tested unsuccessfully
avatar coolcat-creations
coolcat-creations - comment - 17 Oct 2026

I have tested this item 🔴 unsuccessfully on 77e800b

When using the code from the test instructions it creates a new field instead of extending the exiting one.

When I rename it to "style" it replaces the existing one but the user Option is not added


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/48352.

avatar coolcat-creations
coolcat-creations - comment - 17 Oct 2026

I have tested this item 🔴 unsuccessfully on 77e800b

When using the code from the test instructions it creates a new field instead of extending the exiting one.

When I rename it to "style" it replaces the existing one but the user Option is not added


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/48352.

avatar korenevskiy
korenevskiy - comment - 18 Oct 2026
				<field
					name="abra"
					type="chromestyle"
					label="Style Chrome"
					clientid="0"
				>
						
						
					<option value="userOption">User OPTION</option>
					<option value="">JOPTION_DO_NOT_USE</option>
					<option value="Admin123">ADMIN 321</option>
				</field>

I just checked it out. Everything is working.
I used a different name for this field.
And then in the module layout I got access to the value
in modules/mod_menu/tmpl/default.php

echo "<pre>". $params->get('abra', '')."</pre>";

Maybe you used the name of the style field, and therefore CMS checks for the file by value, in case of its absence it uses the default value of this field.
But I used a different name, it works.
Using this type of field with other names also makes sense for other tasks.
It doesn't make sense to use this field in a normal situation with the original name style. It makes sense to create a custom component inside which modules will be located, in which special module styles can be used.
With special additional values.

				<field
					name="style_In_Component"
					type="chromestyle"
					label="Style Module"
				>
					<option value="">JOPTION_DO_NOT_USE</option>
					<option value="parent">Parent</option>						
					<option value="default">Default</option>
					<option value="carausel">Carausel</option>
					<option value="tabs">Tabs</option>
					<option value="accardeon">Accardeon</option>
				</field>
avatar korenevskiy
korenevskiy - comment - 18 Oct 2026
				<field
					name="abra"
					type="chromestyle"
					label="Style Chrome"
					clientid="0"
				>
					<option value="userOption">User OPTION</option>
					<option value="">JOPTION_DO_NOT_USE</option>
					<option value="Admin123">ADMIN 321</option>
				</field>

I just checked it out. Everything is working.
I used a different name for this field.
And then in the module layout I got access to the value
in modules/mod_menu/tmpl/default.php

echo "<pre>". $params->get('abra', '')."</pre>";

Maybe you used the name of the style field, and therefore CMS checks for the file by value, in case of its absence it uses the default value of this field.
But I used a different name, it works.
Using this type of field with other names also makes sense for other tasks.
It doesn't make sense to use this field in a normal situation with the original name style. It makes sense to create a custom component inside which modules will be located, in which special module styles can be used.
With special additional values.

				<field
					name="style_In_Component"
					type="chromestyle"
					label="Style Module"
				>
					<option value="">JOPTION_DO_NOT_USE</option>
					<option value="parent">Parent</option>						
					<option value="default">Default</option>
					<option value="carausel">Carausel</option>
					<option value="tabs">Tabs</option>
					<option value="accardeon">Accardeon</option>
				</field>
avatar korenevskiy
korenevskiy - comment - 18 Oct 2026
				<field
					name="abra"
					type="chromestyle"
					label="Style Chrome"
					clientid="0"
				>
					<option value="userOption">User OPTION</option>
					<option value="">JOPTION_DO_NOT_USE</option>
					<option value="Admin123">ADMIN 321</option>
				</field>

I just checked it out. Everything is working.
I used a different name for this field.
And then in the module layout I got access to the value
in modules/mod_menu/tmpl/default.php

echo "<pre>". $params->get('abra', '')."</pre>";

Maybe you used the name of the style field, and therefore CMS checks for the file by value, in case of its absence it uses the default value of this field.
But I used a different name, it works.
Using this type of field with other names also makes sense for other tasks.
It doesn't make sense to use this field in a normal situation with the original name style. It makes sense to create a custom component inside which modules will be located, in which special module styles can be used.
With special additional values.

				<field
					name="style_In_Component"
					type="chromestyle"
					label="Style Module"
				>
					<option value="">JOPTION_DO_NOT_USE</option>
					<option value="parent">Parent</option>						
					<option value="default">Default</option>
					<option value="carausel">Carausel</option>
					<option value="slides">Slides</option>
					<option value="tabs">Tabs</option>
					<option value="accardeon">Accardeon</option>
				</field>
avatar HLeithner
HLeithner - comment - 5 Nov 2026

This pull request has been automatically rebased to 6.3-dev. Joomla! 6.2 is now in feature freeze.

avatar HLeithner HLeithner - change - 11 Nov 2026
Title
…
[6.2] Add custom options chrome field
[6.3] Add custom options chrome field
avatar HLeithner HLeithner - edited - 11 Nov 2026

Add a Comment

Login with GitHub to post a comment