Sorry guys - been away from my desk a couple of days
Alright - how to make the dreams of the CI/CD dragon come true -
we found out that instead of the original image that we would like to include
as a header logo directly above the article we got the mid-sized preview image.
That's a result of the way stuff is handled in the function 'onDisplayFieldValue…'
in 'joomla/plugin/flexicontent_fields/image.php
As we needed the original image located in the uploads dir we added a new path (#176) -
Code:
$path_imgOrig = JURI::base().DS.'components/com_flexicontent/uploads'.DS;
added a new var for the image source (#183) -
Code:
$srco = $path_imgOrig . $value['originalname'];
and replaced #191 -
Code:
$src = ($view == 'category') ? $srcs : $srcm;
with -
Code:
switch($view){
case 'category':
$src = $srcs;
break;
case 'items':
$src = $srco;
break;
default:
$src = $srcm;
}
to be prepared for the wotd.
Now we can deal with the different image versions just by linking 'em to the current view.
Yes - it is definitly q&d - an image version selector in the article editor would be fine.
So have a nice day…