Displaying Original image via Image Field

More
11 years 9 months ago #34679 by igcorreia
Hello sorry to insist on this but we really need this.
Thanks

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

More
11 years 9 months ago #34682 by igcorreia
With this code I can get the original file in the image field correct?
Code:
if(!empty($field->value)){ $originalImage = isset($field->value) ? unserialize($field->value[0]) : ''; echo $originalImage['originalname']; }

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

More
11 years 9 months ago #34706 by ggppdk
-- This has been added to image field in r1654,
-- Also i have added this to module and blog template (for v2.0.1 r1656+)

use this ARRAY:
$field->thumbs_src;

e.g.
Code:
print_r($field->thumbs_src['original']); echo '<img src="'. $item->fields['imgfield1']->thumbs_src['original'][0].'" />'; echo '<img src="'. $item->fields['imgfield1']->thumbs_src['original'][1].'" />';

or
Code:
getFieldDisplay($item, 'imgfield1', null, 'display_original'); echo $item->fields['imgfield1']->display_original;


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

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

More
11 years 9 months ago #34747 by igcorreia
Great didn't know. My team said that the original image is not been saved in the server. That is now the reason why we can't call it.

This is also fixed rigth?

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

More
11 years 9 months ago #34762 by ggppdk
The permission issue ? yes i changed code back just have not committed yet, please apply this fix to image field:
flexicontent.org/forum/index.php ... =viewtopic


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

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

More
11 years 9 months ago #34780 by igcorreia
Done, lets try.

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.364 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