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.

Severo Iuliano Member

@iusvar · Joined 9 years ago · 35 posts · 1 topics · 14 reputation

Badges

✏️ First Post 💬 Conversation Starter ❤️ Well Liked

Recent posts

  • Pdf-js, only one embedded frame per page? · 8 years ago

    Hi, for now you can embed only one pdf ... I'm looking for a suitable solution the format of the options is just an example, I have exaggerated with the options, in fact you need only one paramete

  • "Some Widget Text" · 8 years ago

    simply removing it from user/themes/antimatter/templates/partials/sidebar.html.twig

  • Displaying image in extra folder specified in yaml frontmatter · 8 years ago

    Hi, try something like that: {% set p = page.find('/images',true) %} {% set cover = p.header.header_image %} {% if cover %} {{ p.media[cover] }} {% endif %} Remember to use {% if etc.%} instead o

  • Where is alias: home defined? · 8 years ago

    '/home' points to user/pages/01.home. If you want to point to user/pages/01.hello you have to change aliases: in '/hello'

  • Inserting two line breaks in Markdown · 8 years ago

    Happy to have been useful. Happy holidays to both!

  • Markdown extra not work · 8 years ago

    Hi all, everything is alright. The button remains gray because its highlight value is false. You can see it in <YOUR_SITE> /system/blueprints/config/system.yaml 😄

  • Inserting two line breaks in Markdown · 8 years ago

    Without touching the twig template, if you want to put only one line break, then again, you can do it in the markdown. I say this only for other situations, in this case the result is not nice because

  • Inserting two line breaks in Markdown · 9 years ago

    Hi, inside markdown it is always possible to insert html tags, so you could put how many <br/> you need

  • Add an alt tag to an image and to cropZoom version · 9 years ago

    Once Grav shows any content in the browser, to modify that you need to work with javascript (jquery, etc.). that is, get the object to be changed by name or class and change an attribute ...

  • Add an alt tag to an image and to cropZoom version · 9 years ago

    Well for your first two points, in the twig file try to write: {% set header_image_media = page.media.images|first %} {{ header_image_media.html('if_you_want_title', header_image_media.meta.alt_text,