Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

Vadym Regular

@b.da · Joined 4 years ago · 109 posts · 0 topics · 32 reputation

Badges

✏️ First Post ❤️ Well Liked

Recent posts

  • Footer Menu translations · 4 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 · 4 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 · 4 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 · 4 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 · 4 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 · 4 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 · 4 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 · 4 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 · 4 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

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

    @Flop ok, working solution, but I haven't figured out yet how to make it safe when updating the admin plugin. The idea is to add an option site.private to field type acl_picker (with data_type: access