Champ Relation (List of related items)

More
8 months 1 week ago #70639 by alog
Bonjour,

j’ai créer un champ Relation (List of related items) qui m’affiche les images en bas de page des fiches items.
Mais actuellement la seule possibilité trouvée est un lien cliquable sur le titre ouvrant la fiche de l’item et je souhaiterai afficher l'image sans le titre.
Est-il possible de créer un lien hypertexte sur l’image (des items en relation) dans les paramètres du champ ?

merci de vos lumières !

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

More
8 months 1 week ago - 8 months 1 week ago #70640 by ggppdk
Hello

there is a parameter for this, you missed it
It is at

"Viewing" TAB /
"Related Item List" TAB /
"Item HTML" TAB /
Parameter 'Item HTML'

In it add
Add html before
<a href="__item_url__" title="__item_title_escaped__">
  {{imgfieldname##display_small}}
</a>
Add html after e.g. <br/>


-- 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 review. Thanks!
Last edit: 8 months 1 week ago by ggppdk.

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

More
8 months 6 days ago #70709 by alog
Hello ggppdk,
how to set up the related items by displaying only the main image of the item, if an item contains 2 or 3 photos ?

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

More
8 months 5 days ago - 8 months 5 days ago #70725 by ggppdk
Hello

to get the thumbnail url of the first image you can use the display variable
display_small_src

the full list of the supported display variables are here:

About custom display of image / gallery field
Add html before
<a href="__item_url__">
  <img src="{{imgfieldname##display_small_src}}  title="__item_title_escaped__"  />
</a>
Add html after


-- 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 review. Thanks!
Last edit: 8 months 5 days ago by ggppdk.

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

More
8 months 5 days ago #70729 by alog
thank you for support and for this list of the display variables i was looking for :)

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

Moderators: vistamediajoomlacornerggppdk
© 2018 Flexicontent. All Rights Reserved.