Images for items in Relation field?

More
6 years 9 months ago - 6 years 9 months ago #72222 by lipatovroman
Hello!
Is there way to include icons/images for items in Relation field or we have only text links?
Same question about extra fields for items in Relation field list.
Last edit: 6 years 9 months ago by ggppdk.

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

More
6 years 9 months ago #72223 by ggppdk
Hello

i am not sure that i understand your question,
you can display any field of the related items,

the links to related items are just the default display


-- 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
6 years 9 months ago #72230 by lipatovroman
Hmmm...
Ah. sorry. I need to be more careful.

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

More
6 years 9 months ago - 6 years 9 months ago #72231 by ggppdk
Hello

for customizing the image urls or related items
you also need to read this FAQ article

flexicontent.org/documentation/faq/71-fi...e-gallery-field.html

you can use display variable
display_small_src
or
display_medium_src

and create your own custom <img> TAG


-- 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 9 months ago by ggppdk.
The following user(s) said Thank You: lipatovroman

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

More
6 years 9 months ago #72270 by lipatovroman

ggppdk wrote: Hello

for customizing the image urls or related items
you also need to read this FAQ article

flexicontent.org/documentation/faq/71-fi...e-gallery-field.html

you can use display variable
display_small_src
or
display_medium_src

and create your own custom <img> TAG


Hello.

Not sure I understand how to use it in Relation field.

Tryed this code:

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

More
6 years 9 months ago #72272 by ggppdk
Hello

you missed it
you can do it ;)

instead of
{{fieldname}}
e.g.
{{icon}}

you can use:
{{fieldname##displayvar}}

- To get small display use:
Code:
{{icon##display_small}}


- To get small thumbnail use
Code:
<img src="{{icon##display_small_src}}" />


- To get small thumbnail and link to item toouse
Code:
<a href="__item_url__" title="__item_title_escaped__"> <img src="{{icon##display_small_src}}" /> </a>


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