Community guidelines
Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.
Paul Massendari Regular
Grav Forum Moderators
@paul · Joined 9 years ago · 143 posts · 0 topics · 53 reputation
Badges
Recent posts
-
Starting to write TWIG, cannot get image to display on frontend
· 9 years ago
I'm not sure, but I think .next might only work on an array of children in a collection, but give it a try! Not sure why you want to check the next one though, you could use loop.last or other conditi
-
Blueprints issue?
· 9 years ago
I think t's because of the yaml: true or the string validation
-
YAML blueprints extra boxes
· 9 years ago
You have to use a list field: exemple: header.mylistfield: type: list label: Add element fields: .mytextbox: type: text label: My text box
-
Get first page image in TWIG with "width: 100%" style applied
· 9 years ago
{{page.media.images|first.url }} will do the trick
-
Starting to write TWIG, cannot get image to display on frontend
· 9 years ago
What about checking for loop index ? {% for child in page.header.yourlist %} {% if loop.first %} {# will give true if first #} {{ child.heading }} {{ child.mydata }} {% else %} {{ child.mydata }} {% e
-
New mediapicker field from v1.5.0-rc.3
· 9 years ago
@rhuk you added preview_images to your blueprint, will this be supported?
-
Starting to write TWIG, cannot get image to display on frontend
· 9 years ago
first is a filter, so it should be used like row|first for index, did you mean {{loop.index}} ? What are you trying to do with row|first inside this loop?
-
Get -recursively- all pages
· 9 years ago
There is several ways of solving this problem. Basically, you have to adjust your collection in order to get these pages: content: items: - '@page.children' : /area1 - '@page.children' : /ar
-
How to use image from page folder into theme folder
· 9 years ago
you can just use page instead of page.find , exemple: {{ page.media.images|first }} --> Display the first image of the page {{ page.media['myimage.jpg' ]}} --> Display myimage.jpg {{ page.media[
-
Empty Script Tags in source code on new install
· 9 years ago
Hi, I replied on twitter but I guess you installed the SEO plugin. That's a bug I noticed and that I have to fix but I don't know how to do that yet. I will let you know once it's done. Paul