My biggest issue to date has actually been front end editing. One issue is in the form fields which in several cases need to move to JLayouts (for example the media and calendar form field modals need their button class changing). But I can do this as a PR reasonably easily.
My bigger issue is the layout themselves. The particular framework I have chosen requires a format for fields of
<div class="parent-div">
<label class="label_class">blah</label>
<div class="input-div"
// input here
</div>
</div>
The issue here being with the current implantation of Joomla it's currently impossible to add a class to the label when your using the getLabel() function without either core hacking the forms XML file or the JFormField getLabel class. And I was wondering what people considered to be an appropriate substitute here as clearly manually adding the HTML for the label isn't ideal but I'm not sure what the obvious solution is either for a template override.
If we can agree on a method I'll code it up and submit a PR
Kind Regards,
George
So I've recently decided to revamp my website and for a challenge and to get an impression for a common user case of not using bootstrap and another CSS frameworkMy biggest issue to date has actually been front end editing. One issue is in the form fields which in several cases need to move to JLayouts (for example the media and calendar form field modals need their button class changing). But I can do this as a PR reasonably easily.
My bigger issue is the layout themselves. The particular framework I have chosen requires a format for fields of
<div class="parent-div">
<label class="label_class">blah</label>
<div class="input-div"
// input here
</div>
</div>The issue here being with the current implantation of Joomla it's currently impossible to add a class to the label when your using the getLabel() function without either core hacking the forms XML file or the JFormField getLabel class.
So I've recently decided to revamp my website and for a challenge and to get an impression for a common user case of not using bootstrap and another CSS frameworkMy biggest issue to date has actually been front end editing. One issue is in the form fields which in several cases need to move to JLayouts (for example the media and calendar form field modals need their button class changing). But I can do this as a PR reasonably easily.
My bigger issue is the layout themselves. The particular framework I have chosen requires a format for fields of
<div class="parent-div">
<label class="label_class">blah</label>
<div class="input-div"
// input here
</div>
</div>The issue here being with the current implantation of Joomla it's currently impossible to add a class to the label when your using the getLabel() function without either core hacking the forms XML file or the JFormField getLabel class.
I'm preparing a PR. It's based on all the improvements I've done to both jlayout and jformfield.
I hope to send a PR. I say that because there are a lot of changes and I want to avoid duplicate work. If you don't like my proposal then we can try next one.
Maybe simple layout files like we use for component views and models (the ones in the tmpl folders) would be enough? It's not likely that these layouts will be used outside the scope of JForm and thus JLayouts is not really needed.
--
You received this message because you are subscribed to the Google Groups "Joomla! CMS Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to joomla-dev-cm...@googlegroups.com.
To post to this group, send an email to joomla-...@googlegroups.com.
Visit this group at http://groups.google.com/group/joomla-dev-cms.
For more options, visit https://groups.google.com/groups/opt_out.
So I mean going and adding labelClass to each XML element in every form. Which is frankly just horrific even if you do it as a plugin and definitely it feels like there should be a better/simpler/more efficient method of doing it than having to activate a content plugin
--