pamtbaau Legend
Grav Forum Moderators
@pamtbaau · Joined 8 years ago · 3185 posts · 17 topics · 1019 reputation
Badges
Recent posts
-
Quark: Show hero image from blog page also on default page
· 7 years ago
@thomas, Ah well, that was not part of the question... ;-) You could try copying template 'user/themes/quark/templates/partials/hero.html.twig' to you theme and comment out lines 2 to 6. That way you
-
Quark: Show hero image from blog page also on default page
· 7 years ago
@thomas, You could adapt the default.html.twig in Quark, but I would suggest the following: Create an inherited theme. This will prevent future updates of Quark to override your changes. Follow the s
-
Stream mp3 with twig
· 7 years ago
For anyone else who wants to know in which locations media files can be placed, the documents have a dedicated chapter on it: Where to put your media files
-
Get content of different pages on Homepage
· 7 years ago
@ramez, Although I'm not a fan of one-page website, I did some playing... Note: The quote you mention is from the overview of page types. That's only part of the story. There is more information to b
-
Config.theme empty
· 7 years ago
@bmcwilliams, Because of the labels you are using, my first guess is that you expect to see the dumps in the resulting Html. However, unlike {{ var_dump() }}, {{ dump() }} does not display its resul
-
How access to own class method in Twig
· 7 years ago
@pawel, A rough example might give you an idea to start from. I presume you have already found the plugin tutorial where you can learn the basic structure of a plugin. There are many events you can s
-
Acces page.raw_route in template?
· 7 years ago
You might consider creating an issue or feature request at Grav's repository at GitHub...
-
Acces page.raw_route in template?
· 7 years ago
@fosil Even more confusing perhaps: Page::route is also a protected property and Page::route() is a pubic function. And in Twig, functions can be called without the parenthesis... So you are calling p
-
Acces page.raw_route in template?
· 7 years ago
@fosil It seems {{ dump(Page) }} is dumping the properties of Page. Page::raw_route is a protected property, while Page::rawRoute() is a public function. I guess the debugger has access to the protect
-
Acces page.raw_route in template?
· 7 years ago
@fosil I don't think you're making a mistake... I just had a look and it's reproducible. Same happens with other properties with underscores. The resulting null can either mean that the value of the