I want to do something like a match pattern inside a single result view so that if the Action that returned the results is of a particular type, the view will be modified.
In Content-result-view.bxb, the default view for multiple docs returned is normally a thumbnail view.
render {
if (size(this) > 1) {
list-of (this) {
has-details (true)
where-each (item) {
layout-macro (content-thumbnail-card) {
param (content) {
expression (item)
}
...
I want to do something like
if from-output: GetNewsFromAllAltBrains {
layout-macro (content-thumbnail-getnews-from-all-card)
}
else {
layout-macro (content-thumbnail-card)
}
It looks as if I could do this by creating a separate result-view for this match but that seems like a lot of overhead to have a whole different result-view for just one special situation.