Hello Kevin Pipher,
You are on the right track with your idea. You could add the meta field for expiration date, but you'd also need to create a new public control. You could create, let's say, MyBlogPosts
control, inherit BlogPosts
control and simply override the IMetaSearchInfo CreateFilter()
function which defines the filter that will be used for displaying posts. So all you need to do in that function is create an array of MetaSearchInfo
objects that would specify only to return posts where publication date meta value is greater or equal to today, but whose expiration date meta value (the one you would add) is greater than today.
On a side note, you can add more filters to this array to achieve some advanced filtering and functionality.
Let me know if you have additional questions.
the Telerik team