nigelwhite

Results 5 comments of nigelwhite

Thanks for this which looks like a really elegant solution. However, it's not working for me. I get ``` Twig\Error\SyntaxError: Unknown "modal_id" tag. in Twig\Parser->subparse() (line 1 of ....... ```...

I think we were missing a 'set'. When I use {% set modal_id = uuid() %} I get 'Twig\Error\SyntaxError: Unknown "uuid" function'. So the uuid function is not available in...

Ah, this works ... ``` id="{% spaceless %}{{modal_name|render|striptags|replace({' ': ''}) }}{% endspaceless %} ```

Yes, thanks. Could we put it in the documentation somewhere. Probably a common use case......

For anyone struggling with this, I found a way. Turns out that VScode has a language toggler in the bottom menu bar. You can toggle back and forth between different...