item html of a "relation" field type

More
7 years 10 months ago #62279 by ydl
I have an "item html" definition of a ("relation") field:
Code:
<div class="air_box"> {{bg_image}} <h1>{{name}} {{surname}} - {{role}}</h1> </div>
which works fine.
I want that each item will get a link to the related item.
I tried something like this:
Code:
<div class="air_box"> {{bg_image}} <a href="XXX" <h1>{{name}} {{surname}} - {{role}}</h1></a> </div>
BUT it does not work - no link.
and the second issue / question - how to replace the XXX with the item link?

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

More
7 years 10 months ago - 7 years 10 months ago #62280 by micker
i think
Code:
<div class="air_box"> {{bg_image}} <a href="{{item->link}}" <h1>{{name}} {{surname}} - {{role}}</h1></a> </div>

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]
Last edit: 7 years 10 months ago by micker.

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

More
7 years 10 months ago #62281 by ydl
it does not work.
I tried '{item->id}' and that works BUT not the link!
BTW - one '{' and no 2!

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

More
7 years 10 months ago - 7 years 10 months ago #62282 by ggppdk
Yes you can use for item properties:
Code:
{item->property}

NOTICE the SINGLE { e.g.
Code:
{item->id} {item->title}
etc

but for SEF url and a few other you have:
Code:
__item_url__ // Item SEF URL __item_title_escaped__ //TITLE with slashes in quotes __item_tooltip__ // Item Tooltip : class="hasTooltip" title="...." __display_text__ // DISPLAY Text according to parameters


so in your case:
Code:
<a href="__item_url__"


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

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

More
7 years 10 months ago #62283 by ggppdk
Hello

please read my above message

Also all the above are mention in the
- tooltip description of the parameter,

you can read there for more


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