Community guidelines
Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.
Hugh Barnes Veteran
Regular
Grav Forum Moderators
@hughbris · Joined 8 years ago · 577 posts · 12 topics · 127 reputation
Badges
Recent posts
-
Twig error after update with concat tilde
· 8 years ago
It does seem like a bug in parsing and quite possibly in Grav, so please log an issue with instructions to reproduce if you can. Could you try [home_url-tilde-blah]({{(home_url ~ "/blah")}}) (extra pa
-
Themes without Twig?
· 8 years ago
Didn't pay much attention to the "direct PHP" part actually. Yeah, I wonder why too now. I was thinking of other templating systems when I gave my answer.
-
Themes without Twig?
· 8 years ago
I am pretty sure Twig is integral to Grav core operation at present, but tracking this in case someone can provide useful comment about how hard it would be to swap in other templating engines. I like
-
Including HTML on selective pages
· 8 years ago
No, I'm afraid if they extend the same base template, I am not sure. I rarely have this problem in Grav, but have you checked cache and Twig cache settings? I usually have them turned off in developme
-
Formatting date ranges
· 8 years ago
c) I noticed in Hugh’s example, the input field is set to textand classes are added to which the selector is attached. I have tried this approach too, but I get the same result regarding the datepicke
-
Including HTML on selective pages
· 8 years ago
You are correct that a Twig file is the best way to implement this. You want to create a "partial" template. Look at the way partial templates like navigation, footer, and header are stored and called
-
Formatting date ranges
· 8 years ago
Updated that Gist to add a couple of functions required it depends on, and correctly closed the JQuery callback wrapper.
-
Twig error after update with concat tilde
· 8 years ago
It looks fine to me. It's a strange error I haven't seen myself. What is the value of home_url? What happens when you substitute home_url for a literal string e.g. "/siteroot". A couple of (unsatisfyi
-
Uninstall Skeleton Files?
· 8 years ago
I have not tried this skeleton myself. If it is simply a theme demo skeleton (as I think it would be), you should start with a fresh install of Grav, then install the Helium theme, and create pages fr
-
Formatting date ranges
· 8 years ago
This has worked for me and is deployed in the wild (Date of Birth field): https://gist.github.com/hughbris/4815199651b53c1edebed5f99c67af76 Builds on Paul's example. Good luck!