Related Items Fields in one Template... ?

More
10 years 9 months ago #44362 by Pitpony
Hi

I have created a relationship between two types...

eg: Writer and Book example

I have a 'Writer' template and a 'Book' template showing 'Relationship' fields.

How can I display individual fields from the related 'Writer' and 'Book' Items in the same template... ?

eg: If a 'Writer' has an 'image' field that displays their Photo, can I show that 'image' in the related 'Book' template

Thanks

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

More
10 years 9 months ago #44391 by ggppdk
Hello

yes,
you can show fields of the related items
meaning:
e.g. your current items has 3 related items
you can show this 3 items and include any field of them

please see the popup description of "HTML" parameter in field's configuration


-- 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
10 years 9 months ago #44504 by Pitpony
Hi

I have tried to add a related image using the {{logo##0##_image_}} protocol and I can not get it to work.

If I add <img src="{{logo##display_small_src}}"/> it works... am I doing something wrong with the first example ?

Also is it possible to add an image and keep the default link back to the the related item ?

This is an excellent component but could do with a few more idiot guides :-)

Thanks

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

More
10 years 9 months ago #44548 by ggppdk
Hello

use
<img src="{{logo##display_small_src}}"/>
or
{{logo##display_small}}


if you see description it mentions __item_url__

so you can use:
Code:
<a href="__item_url__" title="__item_title_escaped__"> {{logo##display_small}}


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