Lava Filters - FilterFollowed
Category:Other
Description:Returns a subset of followed entities for the current user from either a Persisted Dataset or an entity command.
Input:
Lava: Entity Command Example
{%- person where:'Id != 1' limit:'3' iterator:'People' -%}
{%- assign followedItems = People | AppendFollowing | FilterFollowed -%}
{%- for item in followedItems -%}
- {{ item.FullName }} - {{ item.IsFollowing }}
{%- endfor -%}
{%- endperson -%}
Persisted Dataset Example
{%- assign data = 'mydataset' | PersistedDataset | AppendFollowing | FilterFollowed -%}
{%- for item in data -%}
- {{ item.Title }} - {{ item.IsFollowing }}
{%- endfor -%}
Output: Entity Command Example
Persisted Dataset Example