I’ve got the News Product runtime open and am working on it today, probably tomorrow too.
Added a feature that lets you write a very simple one-like JavaScript expression to decide if an element is displayed in a news product timeline. You can see it in the JSON spec for the site. Here’s the expression:
feedItem.enclosure !== undefined
The filter has a feedItem object available to it, containing all the info about the item that’s being considered. You can see what’s available in by clicking on the > icon under the item in the river. It’s the same object in both places.
In that filter, I’m checking if the item has an enclosure. You could also test if a string appears in the title:
feedItem.title.includes ('Peeksill') || feedItem.title.includes ('Kingston')
I’m not sure how useful this will be, but it was very easy to add, and we already had a standardized set of values associated with every item, so why not give it a try?
One tab, why display?
If a news product has only one tab, we only show the content. This was illustrated in the test version of podcatch.com.