Replies: 1 comment 1 reply
-
Hey @hfloyd! Given the nature of Data List, where the data-source items could come from anywhere, it would add complications to developing a built-in solution to support AngularJS filters. Thinking outside the box, there are a couple of ways that it could be done, but you'd need to know some CMS data, like the data-type's Guid. If it's for a small-ish dataset, (e.g. not hundreds/thousands), then you could hook into the Then your AngularJS filter could look something like this...
The " I think that'd be the most performant way of handling it, otherwise the way Hope this helps, or at least helps to spark an idea. |
Beta Was this translation helpful? Give feedback.
-
I love using DataList, and now that I'm using more and more "Block Lists" in sites, I often have a desire to use a DataList value in the name template, with an inline block editor. Using the property alias will return the value, but usually, the "name" would be more friendly. I know that Angular filters can be used to grab the name of a Content, Media or Member node (ex:
{{ myPropertyAlias | ncNodeName }}
), so I wonder if an Angular filter could be created to retrieve a different property from the DataList data source?Has anyone attempted this?
Beta Was this translation helpful? Give feedback.
All reactions