Lava Filters - AppendFollowing
Category:Other
Description:Returns the following status for the currently logged in user to the results of an entity command or Persisted Dataset.
Input:
Lava: Entity Command Example
{% person where:'Id != 1' limit:'3' iterator:'People' %}
{% assign followedItems = People | AppendFollowing %}
{% for item in followedItems %}
- {{ item.FullName }} - {{ item.IsFollowing }}
{% endfor %}
{% endperson %}
Persisted Dataset Example
{% assign data = 'mydataset' | PersistedDataset | AppendFollowing %}
{% for item in data %}
- {{ item.Title }} - {{ item.IsFollowing }}
{% endfor %}
Output: Entity Command Example
- Ted Decker - true
- Cindy Decker - false
- Noah Decker - false
Persisted Dataset Example
- Friday 3/25 - true
- Saturday 3/26 - false
- Sunday 3/27 - false