Community guidelines
Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.
Alexander Kim Member
@heihachi88 · Joined 8 years ago · 77 posts · 28 topics · 5 reputation
Badges
Recent posts
-
Why we need to save the page twice before we can upload an image using Admin plugin?
· 8 years ago
If we press "Add Page" modal within admin plugin > it shows page creation modal, after we fill info, we need to click save again in order to use media field, what purpose of this?
-
Custom page creation modal in Admin
· 8 years ago
@paul: no, you just use the template name, without the .html.twig extension example: mytemplate.html.twig -> mytemplate blog-article.html.twig -> blog-article I've used twig extension ... 🙂 Tha
-
Custom page creation modal in Admin
· 8 years ago
@paul: name: type: hidden default: 'sometemplate' I've tried this and it didn't work for me. You just provide path to template like mainpage.html.twig or you give full path? @paul: For adding taxono
-
Custom page creation modal in Admin
· 8 years ago
Using this recipe: https://learn.getgrav.org/cookbook/admin-recipes#add-a-custom-page-creation-modal I've added custom modal for page type "news". How can i set default page template to use with this
-
Ordering by date not working [bug]
· 8 years ago
{% set options = { items: '@root.descendants', 'order': {'by': 'date', 'dir': 'asc'}, 'pagination': false } %} {% set main_collection = page.collection(options) %} {% for p in main_collection %}
-
Complex collections depending on Frontmatter headers and it's value?
· 8 years ago
I've faced another issues - it's not possible to limit number of articles, while using Twig's for... Dev's are you there?
-
Would ordering by date work in my case?
· 8 years ago
Maybe it's better to use unix date format, then reformat it with twig?
-
Would ordering by date work in my case?
· 8 years ago
I have set default format for dates as d.m.Y - 11.07.2012 What if i will have 10 pages created within the same day, how ordering will work with this? 10 pages have the same creation date, how Grav can
-
Complex collections depending on Frontmatter headers and it's value?
· 8 years ago
Grav dev's should take care of that issue with filtering collections, hope to see it live very soon.
-
Complex collections depending on Frontmatter headers and it's value?
· 8 years ago
@Utis: {% for p in pages.children.visible if p != page %} {% if p.header.main_article %} {# Do stuff. #} {% endif %} {% endfor %} How do you order items using this method? Without collections is impo