? Success

User tests: Successful: Unsuccessful:

avatar okonomiyaki3000
okonomiyaki3000
10 Jul 2014

Tracker: http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=33921&start=0

Use layouts to render form field labels so that template designers can override them.

avatar okonomiyaki3000 okonomiyaki3000 - open - 10 Jul 2014
avatar okonomiyaki3000 okonomiyaki3000 - change - 10 Jul 2014
Title
Label layout
[#33921] Label layout
avatar Bakual
Bakual - comment - 10 Jul 2014

@phproberto Something for you to make sure it doesn't conflict with your work.

avatar okonomiyaki3000
okonomiyaki3000 - comment - 25 Jul 2014

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.

avatar wilsonge
wilsonge - comment - 26 Jul 2014

test: works as expected. Good job!

avatar Kubik-Rubik
Kubik-Rubik - comment - 26 Jul 2014

@test Tested successfully! Can be merged.

avatar Bakual Bakual - close - 26 Jul 2014
avatar Bakual Bakual - change - 26 Jul 2014
Status New Closed
Closed_Date 0000-00-00 00:00:00 2014-07-26 11:44:27
avatar Bakual Bakual - close - 26 Jul 2014
avatar okonomiyaki3000 okonomiyaki3000 - head_ref_deleted - 26 Jul 2014

Add a Comment

Login with GitHub to post a comment