Can any of you assist me with the following objective?
I need to display 2 lists. 1 List of posts tagged as “popular”, and another list of featured posts.
Is there any specific approach that any of you know that I could make use of so I don’t occasionally display the same post in those 2 lists at the same time?
Is there any specific approach that any of you know that I could make use of so I don’t occasionally display the same post in those 2 lists at the same time?
You can mutually exclude them as in the example below.
@fueko , When I think of it… Even though this a great V1 for a solution, I wonder if there’s an acceptable/easy way to improve this even more.
In the second filter, do you think there is a way to filter out based on the posts that came in after the first get request?
Here’s an example: suppose I have 3 posts tagged as “most-popular”, but I only fetch two at the top. The one that wasn’t fetched is also marked as “featured”. That being the case, the third post should then go into the “featured posts” section.
Does this make sense? I wonder if nesting those get requests would allow us to do something?
The easiest way would be to set the filter in the second {{get}} request to filter="featured:true". But I understand that then the filtering would not always do what you expect.
I wonder if nesting those get requests would allow us to do something? In the second filter, do you think there is a way to filter out based on the posts that came in after the first get request?
In Ghost we try not to nest {{get}} requests, they may cause some problems. Perhaps someone with more knowledge will be able to advise you better here.