Create a new field and place it in the article such as {field 1}
The field outputted with no markup
My Field Info
Joomla 3.7
I understand that it has class so you can add classes and styles in the field options, but how I need to render the values with no HTML to use for a social sharing call such as:
Share on Twitter
Is there anyway currently to stop it from rendering the span class? If not can an update be made with that option?
Categorie "Feature Request" is added.
Category | com_fields | ⇒ | com_fields Feature Request |
As you said, just override the layout or add an alternative layout. The plugin code allows to specify another layout, eg {field 1, nospan}
would load the layout file called nospan.php
.
I wouldn't add a parameter for that. The span that is currently wrapped around the field doesn't hurt anyone except for some very specific usecases. On the other hand it is very helpful when you want to style the field.
So imho layouts are the perfect solution for that case.
Status | New | ⇒ | Discussion |
Closed as stated above
Status | Discussion | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2017-05-14 11:08:04 |
Closed_By | ⇒ | brianteeman |
Hello
I figured it out - Simple override :) It would be nice to have a button though for add render class or no render class
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/15921.