Pedro M Regular
@pmoreno · Joined 6 years ago · 412 posts · 108 topics · 102 reputation
Badges
Recent posts
-
Get values from checkboxes with Switch Function
· 3 years ago
Hi there. How do I get in twig, the data saved via checkboxes, using switch function? Blueprint example: header.shareicons: type: checkboxes label: Social Icons default: facebook: true
-
Remove image from filter |first
· 3 years ago
Hi @b.da, first of all I want to thank you for your help. The final code works great and is what I wanted. Second, I want to apologize for not asking the right questions. 😅 It is true that in this pos
-
Remove image from filter |first
· 3 years ago
@b.da, following this Github thread, in which @rhuk, explains how to get SVG from page.media, I have made some code modifications that allow to get both images (jpg, png, etc) and SVG files. I think i
-
Remove image from filter |first
· 3 years ago
Okay. I already know what's going on. If I upload .jpg or .png images everything works fine with your code, but if I upload .svg images it doesn't. However, I can load .svg images in page.header.prima
-
Remove image from filter |first
· 3 years ago
HI @b.da. I describe the current configuration (with Future2021 theme): Example page: /blog/post-five/item.md In md file I have three images (example): media_order: '01.jpg,02.jpg, avatar.jpg' avatarI
-
Remove image from filter |first
· 3 years ago
@b.da, I'm testing your solution with this code: {% set avatar = page.media[page.header.avatarimage] %} {% set images = page.media.images%} {% set image = page.media[page.header.primaryImage] ?: image
-
Remove image from filter |first
· 3 years ago
Hello. How to set a first image from page.media.images with any twig filter or other way, if it is different from other one defined in page.header.avatar? Hypothetical example: {% set image = page.med
-
Filtered author taxonomy does not work if it is defined in the page header
· 3 years ago
The saying goes that a picture is worth a thousand words. I have modified some pages in the Future2021 theme demo to be able to show this error. We have two pages, with the author "Ana", one with the
-
Filtered author taxonomy does not work if it is defined in the page header
· 3 years ago
Hello What is the difference between having the author taxonomy defined in site.yaml and page.header.author? If I use the author taxonomy from site.yaml, I can filter blog pages by author, however, if
-
Title on results page filtered by taxonomy
· 4 years ago
Hi Finally I've found a solution for this question in Grav Coder Theme. Simply I've added this lines to a blog.html.twig: {% if uri.param('category') %} {% set page_title = theme_config.listing_ti