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
-
Form backend validation
· 8 years ago
Does the script run or does it get escaped? Have you been able to use this to run some javascript from form input? You'll have a much better chance to get help if you describe a lot more about what yo
-
Modules with different column-width, Antimatter Theme Inheritance: Dropdownmenu?
· 8 years ago
Before we go any further, there was a bug only recently fixed with theme inheritance in the devtools plugin. Please read through /forum/general/theme-inheritance-not-working-properly-t7717 and try som
-
Textarea editor called in YAML not processing markdown
· 8 years ago
Educated guess here ... I don't think the markdown property here is doing anything except ensuring that when the page is edited or created, its extra_info field is saved as YAML-compatible markdown. H
-
Global twig variable for page.find('/images')
· 8 years ago
It's not as well documented and often requires experimenting to see how it actually works, but if you are comfortable digging around in the API docs and sometimes source code, you'll find that most Gr
-
How to remove "Grav is an easy to use, yet powerful, open source flat-file CMS." from Google Search
· 8 years ago
Find where the text is coming from, which you could have easily done by searching Grav's user folder for that text. From memory, there are two places it might be: Grav's user/config/site.yaml may hav
-
Getting one random children page using TWIG
· 8 years ago
You may be about the first person to notice this! Try setting cache_enable: false in the page frontmatter to find out if it's a cache problem. If it is, I was thinking that this is a bug, but on refle
-
Form backend validation
· 8 years ago
Where or how did you notice this?
-
Getting one random children page using TWIG
· 8 years ago
The Twig documentation mentions the random function, which you could use to simply wrap your expression above (forget the for loop): random(page.find('/blog').children.order('date', 'desc').slice(0,5)
-
Global twig variable for page.find('/images')
· 8 years ago
So have you tried setting it in your theme's base template? I keep forgetting how scope works in Twig. I assume you have, though. Failing that, twig_vars as you mentioned will work and is the only oth
-
404 Not Found other than homepage
· 8 years ago
Please provide a lot more information if you want help with this. For example: your level of experience what you set up and the steps you took which operating environment which pages you set up (espe