Skip to content
Grav 2.0 is officially stable. Read the announcement →

Pedro M Regular

@pmoreno · Joined 6 years ago · 412 posts · 108 topics · 102 reputation

Badges

✏️ First Post 💬 Conversation Starter ❤️ Well Liked

Recent posts

  • Get array elements from selectize field · 4 years ago

    Hi. I'd like to get the values from a selectize field. I have this in item.yaml: header.author: type: selectize multiple: true size: medium label: Author In blog-item.html.twig I have: {%

  • Blank page apache2 localhost · 4 years ago

    Have you visited this link? https://learn.getgrav.org/17/troubleshooting/permissions I remember to have had the same problem in the past.

  • Down arrow in main menu only · 4 years ago

    I finally got the code that shows the result I want. It is the following (macros.html.twig file): {% macro nav_loop(page) %} {% import _self as macros %} {% for p in page.children.visible %} &

  • Down arrow in main menu only · 4 years ago

    Hi @Karmalakas I've tested your suggestion but I'm not able to get the desired result. I'd like to get this: <nav id="nav"> <ul> <li><a href="index.html">H

  • Down arrow in main menu only · 4 years ago

    Hello there I'm trying to make a navigation menu with jquery dropotron library, and I'd like show the down arrow only in top level items. This is my code in macros.html.twig: {% macro nav_loop(page) %

  • cropZoom doesn't work with svg images · 4 years ago

    I know this @Karmalakas. So the solution in this case was to wrap the svg image in div tags, and apply the size of that div tag in the style sheet.

  • cropZoom doesn't work with svg images · 4 years ago

    Hello. I have found a workaround, until resizing of svg images is supported by cropZoom or cropResize filters. In the simplesearch_item.html.twig file, I define the banner variable as: {% set banner =

  • cropZoom doesn't work with svg images · 4 years ago

    Hello there I'm working in several improvements to theme Telephasic (twig template for search results), and I can see the svg images doesn't work fine with cropZoom or cropResize filters. They don't c

  • How to use translated taxonomy in page collections · 4 years ago

    Hi. I'm trying to get the pages in collection through their taxonomy filter. I have this code in a twig template: {% for page in page.evaluate({'@taxonomy.category':'featured'}).order('date', 'desc')

  • How to set lazy loading in Twig template · 4 years ago

    Hi @pilot23 , Have you tried change your code for this? <ul> {% for image in page.media.images|sort|reverse %} <img src="{{image.cropResize(400,200).url|e}}" class="some classes" loadin