Image field above article header - core modif…

More
14 years 4 months ago #9435 by collacocca
As requested in the T&T forum -
www.flexicontent.org/forum/index.php?f=23&t=1958&rb_v=viewtopic

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've 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. But in the meantime… ;)

So have a nice day…

Somewhere over the drain flows…

Please Log in or Create an account to join the conversation.

More
14 years 4 months ago #9503 by micker
yes a selector is a good idea !
thanks for this first solution
regards

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.458 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline