Community guidelines
Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.
Cedric W Member
@horussky · Joined 8 years ago · 34 posts · 7 topics · 2 reputation
Badges
Recent posts
-
Ordering foreach loop by custom date field set in Blueprint
· 8 years ago
@paul ok after reading the doc again, page collections only work in front matter and not in your blueprint correct? So essentially I would changing to expert mode in the admin to add this collection?
-
Ordering foreach loop by custom date field set in Blueprint
· 8 years ago
@paul I'm sorry I'm beating this post into a grave, I'm just trying to understand. So I'm looking into page.collections. Is the collection only established at the top of the page or could I do somethi
-
Ordering foreach loop by custom date field set in Blueprint
· 8 years ago
@paul: {% for feature in page.find('/events').children().order('date', 'desc') if feature.header.datestart|date('Ymd') > this_year %} isn't the .order part of this loop simply using page.date? I
-
Ordering foreach loop by custom date field set in Blueprint
· 8 years ago
@paul @paul: Regarding date, you can juste change page.date to page.header.yourcustomdate This is what I was referring to.. I tried setting the page.date to header.overview.datestart but that produc
-
Ordering foreach loop by custom date field set in Blueprint
· 8 years ago
@paul hold on, I can change the page.date to whatever? how so? That may be the easiest solution as I'm not using this template for a blog or to display a creation/publish date. Also, I was thinking so
-
Ordering foreach loop by custom date field set in Blueprint
· 8 years ago
Hmm, I don't think this will get the results I'm looking for @paul unfortunately. I need the comparison to be based off the custom date field and not the default date field. Right now your example res
-
Ordering foreach loop by custom date field set in Blueprint
· 8 years ago
is it no way to order by a custom date field?
-
Ordering foreach loop by custom date field set in Blueprint
· 8 years ago
Update: So this is the latest, it outputs the data i need just not in the order. Its ordering the data by default ordering of the page {% set this_year = "now"|date('M d Y') %} {% for f
-
Ordering foreach loop by custom date field set in Blueprint
· 8 years ago
Update: So after thinking it over I used the Blog Recipe as a guide: FrontEnd {% for feature in page.find('/events').children().slice(0, 3) %} <li> {{ feature.title }}
-
Ordering foreach loop by custom date field set in Blueprint
· 8 years ago
Is there a way to order my forloop by a custom field in my Blueprint. I see you can order by date but if I have a custom Date field, can I use that instead? for example: Blueprint header.overview.dat