Community guidelines
Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.
Oliver Scholz Member
@Utis · Joined 8 years ago · 54 posts · 8 topics · 12 reputation
Badges
Recent posts
-
Complex collections depending on Frontmatter headers and it's value?
· 8 years ago
Ah, I understand now that there's only ever to be one page with that flag. Yeah, it seems like it's not possible to break from a for loop in Twig. @heihachi88: {% for p in pages.children.visible if p
-
Complex collections depending on Frontmatter headers and it's value?
· 8 years ago
I think that's a matter of taste. Using a tag like 'featured' is perfectly reasonable if you think of "being featured on the front page" as "this is an additional property of that article". I had a ve
-
Complex collections depending on Frontmatter headers and it's value?
· 8 years ago
@heihachi88: Won’t your example make a huge performance hit? I wouldn't know. I'm really quite new to Grav. I suppose, once Easter is over and the forum becomes more vivid, somebody with more experie
-
Complex collections depending on Frontmatter headers and it's value?
· 8 years ago
Well, it's Easter. The Grav experts are probably on vacation, enjoying well deserved time outside in the nature with their families, friends and/or significant others. It's only the struggling newbies
-
Accessing config from Twig macros
· 8 years ago
Hey, yeah, that might come in handy on similar occasions when extending Twig would be overkill. Thanks!
-
What's the purpose of modular pages at all?
· 8 years ago
Previously, with another CMS, I've actually used a homebrew version of this, i.e. templates that stitch a page together from its child pages. The fact that Grav has a better implemented system out of
-
Accessing config from Twig macros
· 8 years ago
Answering my own post (sorry for that). After fooling around for a bit, it seems that one "way around this" would be to extend Twig with a function. In <my theme dir>/<my theme name>.php:
-
Accessing config from Twig macros
· 8 years ago
Hello! It seems that it's not possible to access configuration values from within a Twig macro. For instance, if I have this in <theme-directory>/<theme-name>.yaml: test: "hello" And a mac
-
Themes without Twig?
· 8 years ago
Well, I did give a rather short version: Building complex HTML structures was why I did it like this. My Pug templates contain no data manipulation whatsoever, not even simple for-loops. Any access to
-
Themes without Twig?
· 8 years ago
@RobLui: hy would you want to do it like this? I have my own template system based on Pug (formerly "Jade") glued together by a small PHP kernel and GNU Make. The Pug files are compiled into HTML tem