User tests: Successful: Unsuccessful:
Use layouts to render form field labels so that template designers can override them.
Title |
|
After applying this patch, labels should still look and function the same as before (maybe some whitespace changes if you look closely) but you'll be able to override them with joomla.form.renderlabel
. Hmm. I wonder if just label
is better than renderlabel
. Isn't render kind of implied by the fact that it's a layout?
Oh and one more thing, the layout key is defined as the renderLabelLayout
property of the JFormField
class so, if you write your own input field class and you'd like to use a special layout just for that type of input, you can just override that property with a different value.
test: works as expected. Good job!
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2014-07-26 11:44:27 |
@phproberto Something for you to make sure it doesn't conflict with your work.