Related field : html custom display

More
7 years 6 months ago - 7 years 6 months ago #64230 by juansolos
Hello,
i used this code to display the imag of related items in the item view.
Code:
<a href="__item_url__"><img src="{{fieldID##display_small_src}}"/></a> __display_text__

Some items have not image. How to hide imag code if there is no image?
Php seems no to work inside.

Regards
Last edit: 7 years 6 months ago by juansolos.

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

More
7 years 6 months ago #64240 by ggppdk
instead of:
<img src="{{fieldID##display_small_src}}"/>

try to use:
{{fieldID##display_small}}

or if you have multiple images in the field:
{{fieldID##display_single}}
or
{{fieldID##display_single_total}}


-- 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
7 years 6 months ago #64244 by juansolos
Perfect,
thanks.

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

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