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

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Usk70 Member

@Usk70 · Joined 9 years ago · 20 posts · 14 topics · 0 reputation

Badges

✏️ First Post 💬 Conversation Starter

Recent posts

  • Get -recursively- all pages · 9 years ago

    I have the following structure: /blog /area1 /blog_entry1 blog.md /blog_entry2 blog.md /blog_entry3 blog.md /area2 /

  • Adding image to twig template from variable · 9 years ago

    Wow, no comments. I tried so many things I missed the most obvious one. Thanks.

  • How to use image from page folder into theme folder · 9 years ago

    Thanks, what if I would like to find an image from the page that invoked the template? -i.e., in twig you can not reference the exact page path as it might be different each time-

  • Adding image to twig template from variable · 9 years ago

    @dimitrilongo: <img src="{{ page.media[page.header.slide1].url }}" alt="MyPassion" / I tried this in the template (solution.html.twig): <p>{{ page.header.slide1 }}</p> And I can't get

  • Adding image to twig template from variable · 9 years ago

    /var/www/html/grav-admin/user/pages/03.soluciones/01.erp/01.ventasycrm# ll total 236 drwxr-xr-x 2 root root 4096 Sep 27 11:08 ./ drwxr-xr-x 12 root root 4096 Sep 27 06:13 ../ -rw-r--r-- 1 root roo

  • How to use image from page folder into theme folder · 9 years ago

    I would like to refernece an image from page folder inside a template (theme folder). Is that possible? if so, what do you need to do to use an image in page folder from the template? (the idea is tha

  • Adding image to twig template from variable · 9 years ago

    thanks, but I get unknown! Note: myimage1.png, myimage2.png and myimage3.png are in the same folder as the markdown page definition (not in the template folder).

  • Adding image to twig template from variable · 9 years ago

    I am trying to define three filenames to be included in a slider. Filenames are defined in the page as: --- slide1: myimage1.png slide2: myimage2.png slide3: myimage3.png --- And in the Twig template

  • How to add css to Twig templates · 9 years ago

    I would like to understand how should I include the following HTML syntax in a Twig template (custom theme): < ! - - [if lt IE 9]> < script type="text/javascript" src="js/customFoo.js" >

  • Navigation menu list in Grav · 9 years ago

    https://stackoverflow.com/questions/46403161/navigation-menu-list-in-grav I am new to Grav and I am trying to get the basics. If I want the following page structure: root |_______ set1 | |