using related/backrelated item to create a related item list

More
11 years 8 months ago #34056 by ggppdk
-- 1st problem is due to wrong code above which had an extra character,


please restore original file
, or try:
... = '';

AND NOT
.... = : '';

-- 2nd problem is not a bug it is normal , since you display the image HTML of the field, i think we need to add more display variables that link to the item
For now please use display_variable without popup

<img src=""{{fieldname##display_small_src}}"> BUT YOU need to hack code not to display label as described above
About link to item see parameters' poppup description on how to add a link

I will make this even more in future version, and removing the label altogether and allowing MANUAL ONLY insertion

Regards


-- 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 8 months ago #34079 by rottenberg
Hello

I have corrected the display line in fields.php
the content now is the following :
Code:
//$custom_field_display = $_field ? '<b class="flexi label">'.$_field->label .'</b> : ' : ''; $custom_field_display = '';

I have replaced the the value to be displayed like this :
Code:
<img src="{{produit##display_large_src}}" width="150" height="200">
(I have taken the resized large image because in the context medium or small are to little to be seen).


I get the first image but not the 5 others links (there are 6 links). I get this :
Code:
<div class="flexi value field_produits_editeurs"><img src="http://bibliactiv.mishdanart.com/images/stories/flexicontent/item_115_field_43/l_couv-20-aout-55.jpg" width="150" height="200"><br /><img src="/" width="150" height="200"><br /><img src="/" width="150" height="200"><br /><img src="/" width="150" height="200"><br /><img src="/" width="150" height="200"><br /><img src="/" width="150" height="200"></div>


The main problem now is that I don't get the images after the first one and if possible not display the line feed < b / > between each image. I would prefer display each of them one next to the other with a css order.

best regards
Michel

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

More
11 years 8 months ago #34081 by rottenberg
I think I have found a clue for the images that are not displayed after the first one.

In the present case the link are from the publisher to each book that he publishes.

In the present case bibliactiv.mishdanart.com/index.php/fr/l...roduits-de-l-éditeur the images are in the books article in the field 'produit'.
Each book has only one image.

For another publisher I have more images for each book :
bibliactiv.mishdanart.com/index.php/fr/l...roduits-de-l-éditeur

the images displayed for each book are :
the 1st for the first book, the 2nd for the second book, the 3rd for the third book... and the first for the 4th book (that's strange for this book wich have 6 images).

I think about the non reinitialization of the image index for each book.

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

More
11 years 8 months ago #34084 by ggppdk
Thanks for report will fix this, temporarily do not use this new feature (field replacement) for image field

Regards


-- 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 8 months ago #34375 by rottenberg
Hello
Do you have some correction about this problem ?

best regards

Michel

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

More
11 years 8 months ago #34396 by ggppdk
The code is correct just some variable reference is wrong in the loop, still did not get around to fixing this yet,

-- this is new feature of v2.0.0, please use links for now , like it was in r1601 , these will work

this is is of the 2 remaining bugs to fix for v2.0.1


-- 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: 0.385 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