I have come across a bug with using twig within components, where a headline
element is nested within a div
element, and the div
element is being exported as a component.
In this instance, having a headline
element pull through the parameters from the div
component with twig (e.g. {{ p.text }}
), and twig data passed into the component in a page is not being parsed, and is outputting nothing in the Cornerstone preview, and twig text in on the frontend ( {{ looper.index }} etc)
This occurs when using the component in a looper that is being fed by dynamic content from a parameter.
I have set up a testing environment to troubleshoot this bug and eliminate other issues that might be going on.
You can see the page here: https://components.odb.host/component-twig-bug/ and I will add login details to a secure note.