Related Fields Item HTML Codes

More
3 years 5 months ago - 3 years 5 months ago #79522 by iamrobert
I wanted to create a related field with custom text and images, and this mini tutorial will show to do it.




Here's a simplified code view:
Code:
<div class="cell medium-6 wow iamrobert"> <a href="__item_url__" title="{item->title}"> <div class="eff link rel"><img src="{{image_field_name##display_large_src}}" alt="{item->title}"/> <div class="abs work-text"> <p>{{field_project_name}}</p> <h2>{item->title}&nbsp;<span class="arr">&nbsp;→</span></h2> </div> </div> </a> </div>

Use
  1. {{field_project_name}} = use this format to place custom fields
  2. {item->title} = use to show the title raw value - so can use with alt="{item->title}"
  3. {{image_field_name##display_large_src}} = image large size. For more image options .
  4. __item_url__ = to generate a pure URL eg: <a href="__item_url_"></a>



You can set it up here in ITEM HTML:

Last edit: 3 years 5 months ago by iamrobert.

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

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