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.

Vadym Member

@b.da · Joined 4 years ago · 90 posts · 0 topics · 26 reputation

Badges

✏️ First Post ❤️ Well Liked

Recent posts

  • Get values from checkboxes with Switch Function · 3 years ago

    @pmoreno i don't think you should use swich tag here, after all the output is just a boolean (TRUE/FALSE). You might consider using something like this: {% set shareicons = header_var('shareicons')|de

  • Footer Menu translations · 3 years ago

    Hi, @MJR ono way could be to use translation via twig: <a href="#">{{ "THEME_NAME.FOOTER_LINK"|t|e }}</a> and put in the languages.yaml file of your inherited theme + add the translation y

  • Remove image from filter |first · 3 years ago

    @pmoreno, ok lets play to the end 🤣 <details> <summary>first, if i may say a few remarks:</summary> your code has broken logic: if primaryImage isn't defined your image var will b

  • Remove image from filter |first · 3 years ago

    @pmoreno, i'll tell you more, the original code won't work with svg files either, because page.media.images array doesn't contains svg files.

  • Need to add a column to my footer · 3 years ago

    @tomsilver01, looks like you are using a custom theme, originally for pci-gs.com, and looking at the theme options + site footer, i guess the only built-in option left is to create nav links in the fo

  • Remove image from filter |first · 3 years ago

    ok, i've tested on a fresh installation of Futura 2021 + latest grav, and change one line (image set), to your last example: {% set image = page.media[page.header.primaryImage] ?: page.media.images|fi

  • Remove image from filter |first · 3 years ago

    @pmoreno, did you try first |filter((v, k) => k != page.header.avatarimage)|first i've tested on the Quark theme and it seems to work as it should @pmoreno: any image is displayed. what do you me

  • Remove image from filter |first · 3 years ago

    @pmoreno, one solution might be to use a filter filter {% set image = page.media.images[page.header.primaryImage] ?: page.media.images|filter((v, k) => k != page.header.avatar)|first %}

  • Access blog children items from other page urls · 3 years ago

    1st part, look at Quark them: blog.html.twig, blog-bits.yaml, sidebar.html.twig#L2, sidebar.html.twig#L27 and taxonomylist.html.twig (also can be improved) in short you must reset base_url and when in

  • Struggling with Blueprint: Custom header data form in Admin area · 3 years ago

    I wanted to find a solution that didn't remove built-in functionality, finally got it to working 😅 So, we are registering a new permission in our theme. <details> <summary>1. <YourTheme