Create a new Custom Field List of Images for the Content. Create a new article and select an image for the field.
See the article in frontend and see the image path:
src="/Joomla_3.7.1/images**///**image-name.gif"
only a / in the the image img src path
3 /// in the image img src path
Joomla 3.7.1
this can be solved by correcting
/plugins/fields/imagelist/tmpl/imagelist.php
Change
$buffer .= '<img src="images/' . $fieldParams->get('directory', '/')
. '/' . htmlentities($path) . '"' . $class . '/>';
to
if ($fieldParams->get('directory', '/') !== '/')
{
$buffer .= '<img src="images/' . $fieldParams->get('directory', '/')
. '/' . htmlentities($path) . '"' . $class . '/>';
}
else
{
$buffer .= '<img src="images/' . htmlentities($path) . '"' . $class . '/>';
}
Status | New | ⇒ | Confirmed |
Ok for me the code by JM
Thanks
Status | Confirmed | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2017-05-19 18:26:36 |
Closed_By | ⇒ | franz-wohlkoenig |
Status | Closed | ⇒ | Confirmed |
Status | Confirmed | ⇒ | Closed |
Closed_Date | 2017-05-19 18:26:36 | ⇒ | 2017-05-19 18:26:37 |
Closed_By | franz-wohlkoenig | ⇒ | joomla-cms-bot |
closed as having PR #16135
Set to "closed" on behalf of @franz-wohlkoenig by The JTracker Application at issues.joomla.org/joomla-cms/16121
Confirmed