Retrieve from multiple collections (blade) #6609
-
I'm using a collection tag like this in my blade view:
Is it possible to use this approach to pull from multiple collections? I've tried passing an array:
and also a list:
but neither are working. Am I missing something, or is this just not possible? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
The To do multiple collections in Antlers, you have to do So, in Blade you should do |
Beta Was this translation helpful? Give feedback.
-
If you guys keep this up, people are gonna start talking ;) |
Beta Was this translation helpful? Give feedback.
The
Statamic::tag()
mimics the Antlers tags.To do multiple collections in Antlers, you have to do
{{ collection from="one|two" }}
.So, in Blade you should do
Statamic::tag('collection')->from('one|two')