There is a sequence of conditions that have led me to what I think us an impasse.
I'm trying to create a grid-based views layout that is responsive, without me having to load the bootstrap library. (I'm using Astra, which already uses their own version of bootstrap, so this would be doubling up the amount of css.)
This has required me to deactivate views and activate blocks instead so that I can create the view within the block editor using a grid block.
Because I wish to use that view in multiple locations, I've created it within a content template.
Depending on where I wish to display the view, I want to pass it an attribute with different values, and then use [wpv-attribute name="..."] to get the value.
But because I have to use the content template shortcode to display the view, rather than the View shortcode, I'm not able to pass it an attribute value. (I've tried this and it didn't work: please confirm that it is NOT possible.)
Currently, I see four options:
1) Don't use the attribute mechanism, but instead create 8 to 10 different versions of the content template and view - not a good choice for maintenance purposes.
2) Write some php code so that I CAN pass a parameter into the content template.
3) Abandon the use of blocks and use some jQuery library/CSS code. Urg!
4) Use Bootstrap anyway - probably the least work.
But am I missing another option?
Finally, the view also uses a content template within the loop to display the actual data: when I pass an attribute into the view I'm assuming I will be able to access its value using [wpv-attribute name="..."] from within the content template in the loop. Right?
Thanks for any clarification!
Alex