Problem with image/gallery thumbnail

More
11 years 11 months ago #31216 by rottenberg
Hello

I found a problem with image/gallery field in the category view :

if I use reusable (DB mode) : no problem I get the good thumbnails
If I use item + field specific folder : I get nothing

I have checked the image url.

In the category view I get : images/stories/flexicontent/m_5_lords_01_couv.jpg

I the detail view I get :
images/stories/flexicontent/item_22_field_23/m_5_lords_01_couv.jpg

It seems like the directory (item_22_field_23/)is not writen in the category view.

best regards
Michel

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

More
11 years 11 months ago #31221 by rottenberg
I may have found something in the presentation category template

near the line 524
there this line :
Code:
if ( $img_field->parameters->get('image_source') && empty($img_field->value[0]['is_default_value'] ) ) {

When I replace that line by
Code:
if ( $img_field->parameters->get('image_source') && !empty($img_field->value[0]['is_default_value'] ) ) {

empty replaced by !empty

can you confirm that I'am true or give me the correction I need to do, and that I don't ned to do this modification elsewhere

thank you for help

best regards
Michel

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

More
11 years 11 months ago #31223 by ggppdk
ok there is a problem there but, better not try to fix there, better fix it inside image/gallery field.

So, leave template code as is originally and:

-- in file image.php of image/gallery plugin, replace 3 occurences of
is_default_image
with
is_default_value

then test,

thanks for feedback


-- 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 11 months ago #31227 by rottenberg
I have taken the template before the update from today.
I have updated the plugins/flexicontent_fields/image/image.php

there is now 6 ocurence of is_default_value.

It doesn't work : the name of the image directory doesn't appear (like at the beginning).

I have reactivated the modification of the template : I get the images correctly.

I come back to precedent image.php file.

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

More
11 years 11 months ago #31240 by ggppdk
This modification is certainly wrong,

you probably have change the setting "image source" in an existing image field !!!

e.g. field was using DB-stored images and you changed it to be "Folder-based" that could be a reason for your blog-template images not working

about the fix i suggested it fixes only an issue with default image !!


-- 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.

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