joomla-cms icon indicating copy to clipboard operation
joomla-cms copied to clipboard

[5.1] Modification fields header tag, module tag add custom options in XML

Open korenevskiy opened this issue 4 years ago • 10 comments

I periodically encounter the problem of adding my own unique tags for the module. But now you can add tags in the new module: LI , and others. For cases of non-standard situations.

<fieldset>
  <legend>Title</legend>
 Module content
</fieldset>

Example testing

<field
	name="header_tag"
	type="headertag"
	label="COM_MODULES_FIELD_HEADER_TAG_LABEL"
	default="h5" >
                    <option value="figcaption">&lt;figcaption></option> 
                    <option value="legend">&lt;legend></option>
                    <option value="label">&lt;label></option> 
                    <option value="summary">&lt;summary></option>   
</field>
<field 
	name="module_tag" 
	type="moduletag" 
	label="COM_MODULES_FIELD_MODULE_TAG_LABEL"
	default="div" >
                    <option value="figure">&lt;figure></option> 
                    <option value="fieldset">&lt;fieldset></option>
                    <option value="li">&lt;li></option> 
                    <option value="details">&lt;details></option>  
</field>

korenevskiy avatar Aug 17 '21 16:08 korenevskiy

checking the tests showed an error. I don't understand the reason for the error. What could be the error?

korenevskiy avatar Aug 17 '21 18:08 korenevskiy

checking the tests showed an error. I don't understand the reason for the error. What could be the error?

@korenevskiy Tests are currently failing for all PRs ti the 4.0-dev branch. It's a known issue and will be fixed soon, but maybe not tonight. For the meantime just be patient and ignore it.

richard67 avatar Aug 17 '21 19:08 richard67

This pull request has automatically rebased to 4.2-dev.

HLeithner avatar Jun 27 '22 13:06 HLeithner

This pull requests has been automatically converted to the PSR-12 coding standard.

joomla-bot avatar Jun 27 '22 21:06 joomla-bot

@korenevskiy could you please provide testing instructions for this PR?

drmenzelit avatar Oct 21 '22 14:10 drmenzelit

Please provide an example how this makes sense.

rdeutz avatar Oct 21 '22 15:10 rdeutz

@korenevskiy could you please provide testing instructions for this PR?

@rdeutz @drmenzelit Sorry.

<field
	name="header_tag"
	type="headertag"
	label="COM_MODULES_FIELD_HEADER_TAG_LABEL"
	default="h5" >
                    <option value="figcaption">&lt;figcaption></option> 
                    <option value="legend">&lt;legend></option>
                    <option value="label">&lt;label></option> 
                    <option value="summary">&lt;summary></option>   
</field>
<field 
	name="module_tag" 
	type="moduletag" 
	label="COM_MODULES_FIELD_MODULE_TAG_LABEL"
	default="div" >
                    <option value="figure">&lt;figure></option> 
                    <option value="fieldset">&lt;fieldset></option>
                    <option value="li">&lt;li></option> 
                    <option value="details">&lt;details></option>  
</field>

korenevskiy avatar Oct 24 '22 00:10 korenevskiy

This pull request has been automatically rebased to 4.3-dev.

HLeithner avatar May 02 '23 16:05 HLeithner

I have tested this item :white_check_mark: successfully on 5518ac38b97557cbc4698c746efd6f58426f3fe2

Works as described. Can't see the issue with giving people the choice to do custom things.


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

wilsonge avatar Nov 22 '23 19:11 wilsonge

I have tested this item :red_circle: unsuccessfully on 5518ac38b97557cbc4698c746efd6f58426f3fe2

@wilsonge I think he wants to use the PR to add options, but this does not work with the PR as desired.

My test failed because the advances.xml overwrites the settings from the config of the module


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

nielsnuebel avatar Feb 24 '24 12:02 nielsnuebel

@nielsnuebel Thanks for the support. Where did you find this file? There is no such file in joomla. Perhaps a third-party extension makes a similar correction, which is what this PR does. Can you give me the address of this file in more detail

korenevskiy avatar Feb 27 '24 18:02 korenevskiy

This pull request has been automatically rebased to 5.2-dev.

HLeithner avatar Apr 24 '24 09:04 HLeithner