Muut Archive Legend
@Muut · Joined 9 years ago · 18337 posts · 3878 topics · 137 reputation
Badges
Recent posts
-
Stripe checkout (with require_once) inside twig page
· 10 years ago
Yes, that's what I am trying to achieve. For now my workaround is to direct user to another pure .php page where to handle payments.
-
Stripe checkout (with require_once) inside twig page
· 10 years ago
By require_once, I assume you mean the PHP function and intend to include a local library. This would have to be wrapped in a plugin, as Twig does not parse PHP directly.
-
Stripe checkout (with require_once) inside twig page
· 10 years ago
I am trying to get up and working Stripe within Grav (I don't want to use official Grav-Stripe plugin as it includes shopping cart which in my case is unecessary). So I am following examples on Stripe
-
Invalid Security Token when attempting to save page
· 10 years ago
Maybe create an issue here? https://github.com/getgrav/grav/issues Please make sure you say that it's only MS Edge browser.
-
Invalid Security Token when attempting to save page
· 10 years ago
Hi, I only have this when I try to save a page after a long period during which I do nothing. My session is "expired" I think. Could it be this in your case ? My 2 cents, Nicolas
-
Invalid Security Token when attempting to save page
· 10 years ago
When attempting to save page in Admin plugin I get an Invalid Security Token error message and page is not saved. I'm running the latest v1.1.0 rc3 version. I get this message when using Edge in Win10
-
How to access frontmatter value in a onPageProcessed event?
· 10 years ago
i try that code $route = $page->route(); if ($uri == $route) { // do stuff } it works but not with home page because $route is /home and $uri is /
-
How to access frontmatter value in a onPageProcessed event?
· 10 years ago
oh! thanks, i will try that, thanks again
-
How to access frontmatter value in a onPageProcessed event?
· 10 years ago
onPageProcessed is called on all pages. You can check it's the current page by checking its route and comparing to the current route stored in $grav['uri']
-
How to access frontmatter value in a onPageProcessed event?
· 10 years ago
thanks, but why when i dump $header i see all page's frontmatter. If i echo $value from a specific key in my foreach it prints all value from different pages