User tests: Successful: Unsuccessful:
This PR adds the useglobal attiribute for the number form field.
Pull Request for Issue # .
Adds useglobal to JFormFieldNumber
Test the number field in a component, for example in the Category Blog:
Change in /components/com_content/views/category/tmpl/blog.xml#L182 the type from text to number.
As with the type text: The global value should be displayed if no text is entered.
The field is empty, the notice with the global value is missing.
Add a notice about useglobal to the Documentation: https://docs.joomla.org/Number_form_field_type.
Category | ⇒ | Libraries |
Status | New | ⇒ | Pending |
@izharaazmi It just adds the "Use Global" feature to the number formfield, similar to what is already there for a text field.
Result is this, where the first field is a number field and the second a text field:
I have tested this item
Oh thats great!
I have tested this item
Status | Pending | ⇒ | Ready to Commit |
RTC after two successful tests.
Can you please explain a little what we are trying to Question here?
This PR adds the attribute useglobal
to the number form field.
This functionality allows component developers to offer the possibility for the user to choose Use Global
as option in the configuration of a menu item. JFormFieldNumber realizes this just as JFormFieldText: if you remove the content of the field, the component will use the value of the global configuration.
The global value with the notice is displayed as placeholder.
This option is not compatible with default and placeholder.
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2017-10-05 12:23:28 |
Closed_By | ⇒ | mbabker | |
Labels |
Added:
?
|
@Minei3oat Can you please explain a little what we are trying to achieve here?