? J3 Issue ?
avatar rotanadan
rotanadan
6 Jul 2017

plugins\fields\media\tmpl\media.php
line 34

There is no logic that I see to stop this from happening, I want to set a background image with a media field in custom fields, but when I retrieve the data it comes with the <img src= markup around it.

avatar rotanadan rotanadan - open - 6 Jul 2017
avatar joomla-cms-bot joomla-cms-bot - change - 6 Jul 2017
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 6 Jul 2017
avatar rotanadan rotanadan - change - 6 Jul 2017
The description was changed
avatar rotanadan rotanadan - edited - 6 Jul 2017
avatar franz-wohlkoenig franz-wohlkoenig - change - 6 Jul 2017
Category com_fields
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 9 Jul 2017

@laoneo can you please have a Look?


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

avatar franz-wohlkoenig franz-wohlkoenig - change - 9 Jul 2017
Status New Information Required
avatar laoneo
laoneo - comment - 9 Jul 2017

You need to use the rawvalue of the field.

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 9 Jul 2017

@laoneo that i should have known by myself too.

@rotanadan can you please close Issue? More about com_fields: https://docs.joomla.org/J3.x:Adding_custom_fields/Parameters_for_all_Custom_Fields

avatar brianteeman brianteeman - change - 14 Jul 2017
Labels Added: ?
avatar brianteeman brianteeman - labeled - 14 Jul 2017
avatar mbabker
mbabker - comment - 14 Jul 2017

... and that is documented where? Joe's sitting right next to me and we've wasted more time than we should have to figure out the raw value exists. AFAIK the only reference to it is essentially buried in a var_dump output on https://docs.joomla.org/J3.x:Adding_custom_fields/Overrides meaning this is yet another thing in Joomla that to figure out you have to reverse engineer the code for instead of being any type of user friendly.

avatar brianteeman
brianteeman - comment - 3 Aug 2017

Well thats a wiki so anyone can update it ;)

avatar franz-wohlkoenig franz-wohlkoenig - change - 26 Aug 2017
Status Information Required Discussion
avatar franz-wohlkoenig franz-wohlkoenig - change - 7 Nov 2017
Title
Custom fields wrapping media data in markup by default.
[com_fields] wrapping media data in markup by default
avatar joomla-cms-bot joomla-cms-bot - edited - 7 Nov 2017
avatar brianteeman brianteeman - change - 25 Mar 2018
Labels Added: J3 Issue
avatar brianteeman brianteeman - labeled - 25 Mar 2018
avatar jwaisner jwaisner - change - 11 Mar 2020
Status Discussion Closed - Unconfirmed Report
Closed_Date 0000-00-00 00:00:00 2020-03-11 21:36:03
Closed_By jwaisner
avatar joomla-cms-bot joomla-cms-bot - change - 11 Mar 2020
Status Closed - Unconfirmed Report Closed
Closed_By jwaisner joomla-cms-bot
avatar joomla-cms-bot joomla-cms-bot - close - 11 Mar 2020
avatar joomla-cms-bot
joomla-cms-bot - comment - 11 Mar 2020

Set to "closed" on behalf of @jwaisner by The JTracker Application at issues.joomla.org/joomla-cms/17007

avatar jwaisner
jwaisner - comment - 11 Mar 2020

Closing as issue is not a bug.


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

Add a Comment

Login with GitHub to post a comment