Hello.
As with this thread: https://toolset.com/forums/topic/shortcodes-on-js-and-css-fields-in-views/
I was just wondering whether Andy's suggestion to pre-process the CSS/JS has been taken into consideration yet.
It would be great if we could use SCSS/LESS, and have shortcodes processed.
Imagine the potential.
ShortCodes in CSS are not possible.
I am not sure what happened to that Feature Request, I could not find any record of this.
I don't think we can implement this, as it's not allowed by WordPress either.
I will query with the Developers in this regard and update you here afterwards.
We do not plan to evaluate this, for several technical issues that you would stumble over if we would allow ShortCodes in JS or CSS.
Thank you, and I apologise that we cannot implement this.
That's unfortunate.
Would you at least consider SCSS preprocessing?
We should follow the way of WordPress, where ShortCodes in CSS or even in HTML, are not intended.
We created some custom features in Views so you can use ShortCodes within other ShortCodes or as attributes to HTML.
But we cannot create a new way to embed the CSS, the CSS and JS is not loop-element based, it is Views based.
The idea that you can include the same CSS and JS for each element in the loop is dangerous and potentially problematic: how would you manage to define the same function in JS, with a different behaviour for each element in the loop?
And it would be a complete change of the current implementation.
I am sorry to say that we cannot implement this.