with a formfield object try:
$field->renderLayout = "adifferent.layout.path"
Where the file exists in the template "addifferent/layout/path.php"
Switch to the custom renderer
Error logged in JLog that the property is protected
Joomla 3.6
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.
Labels |
Added:
?
|
Category | ⇒ | Fields |
Priority | Medium | ⇒ | Low |
Build | staging | ⇒ | 3.6 |
Status | New | ⇒ | Information Required |
Status | Information Required | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2017-08-19 12:14:44 |
Closed_By | ⇒ | franz-wohlkoenig |
Closed_Date | 2017-08-19 12:14:44 | ⇒ | 2017-08-19 12:14:45 |
Closed_By | franz-wohlkoenig | ⇒ | joomla-cms-bot |
closed due lack of Response.
Set to "closed" on behalf of @franz-wohlkoenig by The JTracker Application at issues.joomla.org/joomla-cms/15263
@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.