Replies: 1 comment 3 replies
-
No, not really. We just went with what we already had (a filter for
I think this is not too opinionated and would go into the direction that Timber is taking in all sorts of places. What kind of changes would you propose? Do you want to be able to
I think you mean 1), but just to be sure. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In 2.x, only global context is filterable. "post/posts" is not: https://github.com/timber/timber/blob/2.x/lib/Timber.php#L965-L995
Is there any reason that lead to that choice? I used to rename collections for better semantic in templates instead calling everything
post
orposts
(e.g.products
,recipes
, etc.). Although this is a very opinionated approach, I think object/collections should still remain under the filter scope to allow user deal with these context keys the way they want.Beta Was this translation helpful? Give feedback.
All reactions