Hi all,
I'm trying to return a list of links from an entity list.
Im using the liquid code below, but cant return the url.
Any help would grateful.
Martin
{% entitylist key: page.adx_entitylist.id %} {% entityview logical_name: 'my_entity_name' name:'My Entity List', page_size:20 %} {% for item in entityview.records %} <a href="{{ item.id.url}}">{{ item.name}}</a> {% endfor %} {% endentityview %} {% endentitylist %}
*This post is locked for comments
Hi Martin,
What type of entity is in the list? Only certain entities have a URL (for example, Web Pages).
If in your example the entity was Web Pages, the following Liquid should work:
{{ item.url}}
But if it's a custom record type, they won't have URLs associated with them.
You can find out more here:
community.adxstudio.com/.../entities
Nick
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,253 Super User 2024 Season 2
Martin Dráb 230,188 Most Valuable Professional
nmaenpaa 101,156