Muut Archive Legend
@Muut · Joined 9 years ago · 18337 posts · 3878 topics · 137 reputation
Badges
Recent posts
-
Access media in collection
· 11 years ago
I blindly assumed that the |firstfilter referred to the first image on the page, which would be what was set in the header (the other image displayed just by being existent in the folder). What you su
-
Access media in collection
· 11 years ago
post.media.images is an array of all the images for a particular page. the |first filter is the just a way to get the first item from the array. If you are looking for a specific image you should do
-
Access media in collection
· 11 years ago
In making a Featured Posts display using the Mediator Skeleton/Theme, but am having issues accessing the correct image from each page. I set a featured_image-variable like this: {% set featured_image
-
Retrieve a single page from a page collection
· 11 years ago
Try dumping page.children and make sure you actually have children available: {{ dump(page.children) }}
-
Retrieve a single page from a page collection
· 11 years ago
does not work
-
Retrieve a single page from a page collection
· 11 years ago
Yes you can do that, it will do that if your array is integer based. However, i don't 'think' collections are. One way to get around this is to use []notation but with the slice syntactic sugar: {% s
-
Retrieve a single page from a page collection
· 11 years ago
how can I retrieve a single page from a page collection in one line? {% set second_page = page.children[1] %} something like this?
-
Macro that compares two dates and returns time that has passed
· 11 years ago
The built-in |nicetime filter already does this for you although it returns the difference in a human readable style. If this is not what you want there are plenty of examples of this on google: http
-
Macro that compares two dates and returns time that has passed
· 11 years ago
Hey lovely people of GRAV, I want to create a macro that compares two dates (now and when post was published) and returns the time that has passed since then ! Does someone have an idea ?
-
Resizing of Title Logo
· 11 years ago
Makes perfect sense, pardon my obvious oversight. By the way, great job! Little bit of a learning curve, but we are getting there! Thank You!