Muut Archive Legend
@Muut · Joined 9 years ago · 18337 posts · 3878 topics · 137 reputation
Badges
Recent posts
-
How to adjust this "for" loop to get all sub pages
· 9 years ago
Should have removed the @taxonomy.tag stuff from the example. It's irrelevant.
-
How to adjust this "for" loop to get all sub pages
· 9 years ago
I'm just learning this stuff myself, so ymmv, but it's something based on this: {% set collection = page.evaluate([{'@page.children':'/blog', '@taxonomy.tag':'photography'}]) %} If you did that three
-
How to adjust this "for" loop to get all sub pages
· 9 years ago
Thanks- I think I should have phrased my question better: What is the code to load the three blogs, then build the collection, then order the collection?
-
How to adjust this "for" loop to get all sub pages
· 9 years ago
I think you'd have to query each blog page separately and build a page collection, then order the collection.
-
How to adjust this "for" loop to get all sub pages
· 9 years ago
I'm displaying blog posts in a global sidebar and the snippet below works great for gathering up posts from the blog page: - {% for post in page.find('/blog').children.order('date', 'desc').slice(0, 2
-
Page.evaluate is ignoring @taxonomy.tag filter
· 9 years ago
I'm trying to pull in the property listings tagged with "Featured" but I'm getting all of the listings. {% set p_collection = page.evaluate([{'@page.children':'/properties', '@taxonomy.tag':'Featured
-
Filtering content
· 9 years ago
Pfieuw, that's a while ago. I don't exactly remember my thought path anymore. What I did is this: {% set taxlist = taxonomylist.get() %} {% if taxlist %} {% set category = grav.uri.params("category"
-
Filtering content
· 9 years ago
Hey what was your solution? Having the same issue filtering posts on a listing page. Cheers
-
Filtering content
· 9 years ago
Nevermind! I finally found it! :D It's so much easier than I thought. Phew :)
-
Filtering content
· 9 years ago
Thanks for your reply! Reading back my first post; hmm not so clear :) Had been staring at the issue for too long, so was a bit numb :). Anyhow, my main question is: how can I filter the posts on a li