- Issue created by @AppLEaDaY
- Status changed to Postponed: needs info
12 months ago 2:00pm 4 December 2023 - š§šŖBelgium dieterholvoet Brussels
I just tried adding the snippet you mentioned to the
page.html.twig
template of my theme and it works, tested using Drupal 10.1.5. Are you sure you're changing the right template? You should check the page source and look for this kind of comment, it will show you what template is being used:<!-- BEGIN OUTPUT from 'themes/custom/xxxx/templates/page.html.twig' -->
- š®š¹Italy AppLEaDaY
@DieterHolvoet I just acted in page.html.twig. There I have the code below.
<div class="container mt-3 mb-3"> {{ kint(page.content) }} </div>
I know for sure from the theme debug that page.html.twig is in use.
The related output follows.
<div class="container mt-3 mb-3"> </div>
What else should I check?
Thanks in advance!
Andrea
- š§šŖBelgium dieterholvoet Brussels
- Are you sure
page.content
actually contains anything? Do you get something when you put{{ kint(_context) }}
? - Are you sure Twig debugging is enabled? Check the
debug
key undertwig.config
in yourservices.yml
file.
- Are you sure
- š®š¹Italy AppLEaDaY
@DieterHolvoet, please have a look at the screenshot.
As you can see, debug is enabled. And page.content must contain something, since, after I replacekint(page.content)
withpage.content
the content appears.
I'm puzzled.Thanks in advance!
Andrea
- š§šŖBelgium dieterholvoet Brussels
I have no idea. Does it work if you uninstall Devel Kint Extras? If it still doesn't work, you should report this issue in the Devel project ā .
- š®š¹Italy AppLEaDaY
@DieterHolvoet, I did what you suggested, and it still didn't work. Though I didn't expect that kint was coming with Devel, and not with Devel Kint Extras... Are you sure about that? I've just read the description for Devel Kint Extras, but maybe I didn't get correctly what explained there...
- Status changed to Closed: works as designed
12 months ago 5:38pm 13 December 2023 - š§šŖBelgium dieterholvoet Brussels
Yes, Iām sure. Devel provides Kint and Devel Kint Extras changes a couple things about the configuration of Kint, as explained in the project description. If the problem is still present without this module, Iām afraid this module is not the cause. I suggest having a look at the Devel issue queue.