?
avatar jayblaq
jayblaq
9 May 2017

Steps to reproduce the issue

Create a new field and place it in the article such as {field 1}

Expected result

The field outputted with no markup

Actual result

My Field Info

System information (as much as possible)

Joomla 3.7

Additional comments

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?

avatar jayblaq jayblaq - open - 9 May 2017
avatar joomla-cms-bot joomla-cms-bot - labeled - 9 May 2017
avatar jayblaq
jayblaq - comment - 9 May 2017

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.

avatar joomla-cms-bot joomla-cms-bot - edited - 9 May 2017
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 9 May 2017

Categorie "Feature Request" is added.


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

avatar franz-wohlkoenig franz-wohlkoenig - change - 9 May 2017
Category com_fields com_fields Feature Request
avatar Bakual
Bakual - comment - 9 May 2017

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.

avatar franz-wohlkoenig franz-wohlkoenig - change - 10 May 2017
Status New Discussion
avatar brianteeman
brianteeman - comment - 14 May 2017

Closed as stated above

avatar brianteeman brianteeman - change - 14 May 2017
Status Discussion Closed
Closed_Date 0000-00-00 00:00:00 2017-05-14 11:08:04
Closed_By brianteeman
avatar brianteeman brianteeman - close - 14 May 2017

Add a Comment

Login with GitHub to post a comment