?
avatar waveywhite
waveywhite
12 Apr 2017

Steps to reproduce the issue

with a formfield object try:

$field->renderLayout = "adifferent.layout.path"

Where the file exists in the template "addifferent/layout/path.php"

Expected result

Switch to the custom renderer

Actual result

Error logged in JLog that the property is protected

System information (as much as possible)

Joomla 3.6

Additional comments

The problem is that renderLayout isn't included in the __set function of JFormField and so the parameter isn't writable. It would be very useful to set this parameter so that I can swap renderer for a specific context. What I am trying to do is use bootstrap form-inline styling for a specific view without upsetting existing form views.

Also, the renderLabelLayout should be writable.

avatar waveywhite waveywhite - open - 12 Apr 2017
avatar joomla-cms-bot joomla-cms-bot - change - 12 Apr 2017
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 12 Apr 2017
avatar franz-wohlkoenig franz-wohlkoenig - change - 12 Apr 2017
Category Fields
avatar franz-wohlkoenig franz-wohlkoenig - change - 16 Apr 2017
Priority Medium Low
Build staging 3.6
avatar franz-wohlkoenig franz-wohlkoenig - change - 9 Jun 2017
Status New Information Required
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 9 Jun 2017

@waveywhite is this Issue also on latest Staging?


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

avatar franz-wohlkoenig franz-wohlkoenig - change - 19 Aug 2017
Status Information Required Closed
Closed_Date 0000-00-00 00:00:00 2017-08-19 12:14:44
Closed_By franz-wohlkoenig
avatar joomla-cms-bot joomla-cms-bot - change - 19 Aug 2017
Closed_Date 2017-08-19 12:14:44 2017-08-19 12:14:45
Closed_By franz-wohlkoenig joomla-cms-bot
avatar joomla-cms-bot joomla-cms-bot - close - 19 Aug 2017
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 19 Aug 2017

closed due lack of Response.


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

avatar joomla-cms-bot
joomla-cms-bot - comment - 19 Aug 2017

Add a Comment

Login with GitHub to post a comment