Muut Archive Legend
@Muut · Joined 9 years ago · 18337 posts · 3878 topics · 137 reputation
Badges
Recent posts
-
Twig for loop break & continue
· 11 years ago
@flaviocopes what does _self.printJob does ? Where should I paste this into it ?
-
Twig for loop break & continue
· 11 years ago
You can try {% set wrapper_added = false %} {% for job in page.header.jobs %} {% if loop.index <= page.header.maxitems %} {{ _self.printJob(job, loop.index) }} {% else %} {% if not wr
-
Twig for loop break & continue
· 11 years ago
Hey all, I'm working on something difficult. I've given a max range of items for a array and want to wrap a div around the result after the max range is passed. So here is my try. In the web i found a
-
Javascript problems with image uri´s
· 11 years ago
You might already know it, but the path of the file you include must be relative to the js file path, not to the Grav root folder
-
Javascript problems with image uri´s
· 11 years ago
I'm sorry i forgot to say that the js is in the theme/Promedia/js folder. @Sommerregen No I want to get a file via JS. the above code is a twig thing and I dont know how I can get the same result for
-
Javascript problems with image uri´s
· 11 years ago
@muuvmuuv I guess you want to set a path in your theme config and use it in the theme, right? I haven't tested it, but {{ url(theme://**) }} should work.
-
Javascript problems with image uri´s
· 11 years ago
Hello all, i've a problem, I need to get a file through my js, but the script cant find the uri. I've tried different options and search the docs again, but id not found any solution.. ... template: '
-
Contact for on every page
· 11 years ago
Currently the Form plugin requires the form parameters to be in the page header, so you cannot add the form to the entire site at once. You can use the https://github.com/nunopress/grav-plugin-simple_
-
Contact for on every page
· 11 years ago
Where would I put the form configuration options? The documentation has us rename a page as form.md and put the configuration in there.
-
Contact for on every page
· 11 years ago
I would just put that form in a footer.html.twig file and include it from the base twig file so that it displays on every page.