I'm using the dump
function of the twig
.
But it shows the data "folded", like in here:
When I click the arrow, I may reveal the data by unfolding it, like in here:
Question:
Is there any way to tell the twig
or dump
to directly display the objects fully-unfolded.
You can do this with javascript (jQuery):
This simulates the user clicking each dump toggle (excluding the first one with
gt(0)
) of each sf-dump on a page.Edit: I added an each() function to make the script work for any number of sf-dumps there might be on a page. Thanks to @Xavi