? Success

User tests: Successful: Unsuccessful:

avatar wilsonge wilsonge - open - 28 Feb 2014
avatar Bakual
Bakual - comment - 28 Feb 2014

Can you add a deprecated log message to the getControlGroups and getControlGroup functions?

avatar wilsonge
wilsonge - comment - 28 Feb 2014

Done

avatar wilsonge wilsonge - change - 28 Feb 2014
The description was changed
Title
Move getControlGroups into a JLayout
[#33385] Move getControlGroups into a JLayout
Description <p>Also renames getControlGroups to renderFieldset and getControlGroup to renderField as discussed in <a href="https://groups.google.com/forum/#!topic/joomla-dev-cms/6_MzeyEZ0zQ">https://groups.google.com/forum/#!topic/joomla-dev-cms/6_MzeyEZ0zQ</a></p> <p>Also renames getControlGroups to renderFieldset and getControlGroup to renderField as discussed in <a href="https://groups.google.com/forum/#!topic/joomla-dev-cms/6_MzeyEZ0zQ">https://groups.google.com/forum/#!topic/joomla-dev-cms/6_MzeyEZ0zQ</a></p> <p><a href="http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&amp;tracker_item_id=33385&amp;start=0">http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&amp;tracker_item_id=33385&amp;start=0</a></p>
Labels Added: ?
75a3e89 28 Feb 2014 avatar wilsonge Typo
avatar Bakual
Bakual - comment - 28 Feb 2014

:+1:

avatar wilsonge
wilsonge - comment - 28 Feb 2014

Now go test this so I can squeeze it into J3.2.3 :stuck_out_tongue:

avatar cheesegrits
cheesegrits - comment - 28 Feb 2014

Just a junk test comment from phone, see if the comment editor works on Android with long run on sentences that just never seem to end and take up the entire box with our a full stop which for some reason I've seen cause issues on others github and bootstrap based systems but so far this one seems to handle it OK and is scrolling up one line as needed OK I can stop typing now.
You may blame the J!Tracker Application for transmitting this comment.

avatar zero-24
zero-24 - comment - 16 Mar 2014

@test (with Patchtester Component)

I can't see issues at the edit views for this components after the patch:
weblinks, contacts, content and newsfeeds

Since we have two valid tests i move the Tracker to RTC.

Thanks George!
You may blame the J!Tracker Application for transmitting this comment.

avatar wilsonge
wilsonge - comment - 17 Mar 2014

@zero-24 Sorry to be a pain I just made a very small tweak to the PR to make it a bit more customizable (just moving the layout to be a class variable rather than hardcoded) could you please very quickly test again!

avatar zero-24
zero-24 - comment - 18 Mar 2014

@wilsonge

#test (with Patchtester Component)
Can't see a problem with this patch at the edit views of:
weblinks, contacts, content and newsfeeds.

Thanks @wilsonge again.

You may blame the J!Tracker Application for transmitting this comment.

avatar C-Lodder
C-Lodder - comment - 18 Mar 2014

tested and works fine

avatar Bakual Bakual - change - 18 Mar 2014
Status New Closed
Closed_Date 0000-00-00 00:00:00 2014-03-18 20:56:46
avatar Bakual Bakual - close - 18 Mar 2014
avatar Bakual Bakual - close - 18 Mar 2014
avatar wilsonge wilsonge - head_ref_deleted - 18 Mar 2014
avatar chivitli
chivitli - comment - 26 Mar 2014

@wilsonge

George, could you see how this plays with #3127 as it seems we won't have support for it with this change? Could you check if we can easily add it to your changes, since the other PR was about to be commited :-)

avatar wilsonge
wilsonge - comment - 26 Mar 2014

You'd have to pass the relevant values into the JLayout. Maybe pass in options. I had a hideLabel I'd just passed in. But it's not going to be a 10 second job - but it won't be hard either

avatar chivitli
chivitli - comment - 26 Mar 2014

@wilsonge

Sorry for reviewing this so late, but I have a couple of questions more.

1) If someone overrides the way forms are rendered, won't that break admin templates, since they rely on certain output?
2) Is there any reason you explicitely check in field.php:901 for a hidden label, instead of passing the whole options array? By passing the whole options array, you leave it open to people to use any option they want in the layout
3) In renderfield.php:23, condition can be replaced with empty($displayData['hiddenLabel'])), as it does exactly the same check, though I'd rather have that changed based on feedback from 2) if possible.
4) I will check how to add "showon" feature again based on the answers :)

avatar wilsonge
wilsonge - comment - 26 Mar 2014

1) No because JLayouts are template specific overrides
2) I kinda regret not just passing in options - we haven't had a release of the CMS yet so if you want to change that as part of your showon changes you can do that without breaking B/C
3) Umm as long as you can differentiate between the value being set to false and the value being just not filled in in which case we should show it then yeah it's fine
4) Cool. I can try and PR the stuff into your branch if you want

avatar chivitli
chivitli - comment - 26 Mar 2014

Ok, cool, I will make a new PR, hopefully asap so we can get it done on time for the release

avatar wilsonge
wilsonge - comment - 26 Mar 2014

:+1: Sorry for being a pain :)

On 26 March 2014 18:56, Marko D notifications@github.com wrote:

Ok, cool, I will make a new PR, hopefully asap so we can get it done on
time for the release

Reply to this email directly or view it on GitHub#3209 (comment)
.

avatar chivitli
chivitli - comment - 26 Mar 2014

Umm, are you sure about 1)?

I just installaed latest staging, edited layout file to change output, and got broken backend when I opened some random module. Which seems expected, since in libraries/joomla/form/field.php:903 you render layout, and that's what extension parameters are rendered with on the backend

avatar wilsonge
wilsonge - comment - 26 Mar 2014

If you edit the layout file you will. But you don't - you do a template
override of layout like here:
https://github.com/joomla/joomla-cms/blob/staging/administrator/templates/hathor/html/layouts/com_messages/toolbar/mysettings.php

And never edit the layout file in the layouts folder.

On 26 March 2014 19:30, Marko D notifications@github.com wrote:

Umm, are you sure about 1)?

I just installaed latest staging, edited layout file to change output, and
got broken backend when I opened some random module. Which seems expected,
since in libraries/joomla/form/field.php:903 you render layout, and that's
what extension parameters are rendered with on the backend

Reply to this email directly or view it on GitHub#3209 (comment)
.

avatar chivitli
chivitli - comment - 26 Mar 2014

Something must have came into me when I left the previous comment...

avatar wilsonge
wilsonge - comment - 26 Mar 2014

Don't worry I have those moments far too often :D

On 26 March 2014 20:00, Marko D notifications@github.com wrote:

Something must have came into me when I left the previous comment...

Reply to this email directly or view it on GitHub#3209 (comment)
.

avatar chivitli
chivitli - comment - 27 Mar 2014

Me again. Are you by mistake calling deprecated methods in form.php on lines 682 and 705 or am I missing something? I also got confused why I got nothing from JLog if it was true when I turned on maximum error reporting, but it showed up after changing in log.php:168 exclude condition to true (though nothing in logs folder still). Is there any way I can make see JLog entries from the system without changing this default parameter, how is it supposed to work?

avatar chivitli
chivitli - comment - 27 Mar 2014

In the meantime, I added the showon feature, and I also added support for hiddenLabel on xml level. Please check #3379

avatar wilsonge
wilsonge - comment - 27 Mar 2014

Yes I am in the form.php file. I've already fixed that in a later PR though.

To get deprecated methods to show you need to turn it on in the debug plugin :) you shouldn't need to edit log.php

avatar chivitli
chivitli - comment - 27 Mar 2014

I know I am not supposed to edit it, but I cannot get it to work either. Debug plugin is on, Log priorities set to All, and Log categories is empty, which from the field description means "If empty, all categories will be shown". But I do not get notice for 'deprecated' errors.

avatar wilsonge
wilsonge - comment - 27 Mar 2014

In the debug plugin in the logging section - you've turned on the "Log deprecated API" parameter right?

avatar chivitli
chivitli - comment - 27 Mar 2014

Ah, no, I didn't see that option at all. I often don't see that there are extra parameters in Joomla 3 :/ Thank you George.

avatar puneet0191 puneet0191 - reference | 091b665 - 30 Mar 14
avatar Bakual Bakual - reference | 69ec586 - 12 May 14

Add a Comment

Login with GitHub to post a comment