Champ Relation (List of related items)

More
6 years 4 months 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
6 years 4 months ago - 6 years 4 months 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
Code:
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...
Last edit: 6 years 4 months ago by ggppdk.

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

More
6 years 4 months 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
6 years 4 months ago - 6 years 4 months 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
Code:
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...
Last edit: 6 years 4 months ago by ggppdk.

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

More
6 years 4 months 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
Time to create page: 0.283 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