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
-
Calling a link in twig from MD file
· 8 years ago
Maybe you can do that with the shortcode plugin?
-
Ordering foreach loop by custom date field set in Blueprint
· 8 years ago
no, that's it exactly. Then, you can access it in twig with {% for item in page.collection%} {{ item.title }} {% endfor %}
-
Ordering foreach loop by custom date field set in Blueprint
· 8 years ago
oh, sorry, I missed the order('date' .... but the answer is yes, you can replace with your field, such as .order('header.datestart', desc) and it should work. If your page selection is that complex, y
-
Ordering foreach loop by custom date field set in Blueprint
· 8 years ago
yes, but you never use page.date it in your twig, or am I missing something?
-
Ordering foreach loop by custom date field set in Blueprint
· 8 years ago
Its basically doing everything but ordering it. well, then you need to order your page children. Example: {% set this_year = "now"|date('Ymd') %} {% for feature in page.find('/events').children()
-
Ordering foreach loop by custom date field set in Blueprint
· 8 years ago
well, then you slice filter si not at its place. First step would be to get only future date, and second step would be to slice, or use anoher condition. Regarding date, you can juste change page.date
-
Time out during article redaction = loosing it
· 8 years ago
It will also be fixed in upcoming admin 1.7.1 according to rhuk
-
Formatting date ranges
· 8 years ago
Hi @finanalyst I don't think Grav's datepicker has the option to be opened on a given year. However, you could probably create your own field, and initialize it with your parameters in order to achiev
-
Ordering foreach loop by custom date field set in Blueprint
· 8 years ago
You could instead store your date as YYYY-MM-DD to make comparison easier. Then you have to adjust your if to if feature.date|date('Y-m-d') Example: {% set this_year = "now"|date('Y-m-d') %} {% for
-
Edition of Image Metadata from Admin Plugin
· 8 years ago
Hi, Welcome to the Grav community! Editing the meta file associated to an image is not possible at the moment with the current admin plugin. That said, this is a planned feature, and Grav team have th