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 →

pamtbaau Legend

Grav Forum Moderators

@pamtbaau · Joined 8 years ago · 3221 posts · 18 topics · 1023 reputation

Badges

Grav Core Team ModSquad Team Member ✏️ First Post 💬 Conversation Starter ❤️ Well Liked

Recent posts

  • Tag Results Page · 8 years ago

    @techielass According the docs on theme variables, the uri object is available in Twig. You could add something like the following to template blog.html.twig somewhere around line 20: {% if uri.param

  • onAdminSave() for setting route default override · 8 years ago

    Would you mind elaborate on why you would like to keep the Wordpress style urls? Is it pageranking, or ...

  • [SOLVED] How to generate fake url /item-XXX or item/XXX for the same page? · 8 years ago

    Ah, I see I have misunderstood your requirements... The approach you have taken seems to fit your needs pretty well. I see some area's of improvement in coding though: The regex used to get the ID w

  • [SOLVED] How to generate fake url /item-XXX or item/XXX for the same page? · 8 years ago

    @nicolasG Grav's routing capabilities are quite flexibel and powerful. Have a look at the documentation for Routing. For instance you can set multiple aliases in the frontmatter of a page. For example

  • Page collection does not filter category · 8 years ago

    @Jack @Jack: but I had also to modify my frontmatter Rewriting should not be necessary, but I can reproduce the issue when using your excact format of frontmatter. The size of the collections were 0

  • Page collection does not filter category · 8 years ago

    @Jack Are all tutorial and blog pages, children of the current page in the folder structure? Or in other words, are the collections of pages containing category: [excel] or category: [blog] a subset

  • onAdminSave() for setting route default override · 8 years ago

    @metbril I'm afraid it is not exactly clear to me what you would like to achieve? Would you like to: Redirect Wordpress like request to internal folder structure. Are you converting a Wordpress site

  • Automatically "translate" URLs / Set Default Route to match the Title · 8 years ago

    @Paddi This could well be an 'undocumented feature' of Grav... It is however a bit silly to change the slug of a child of a modular, because the child-page is never displayed on its own and hence do

  • Hero_image setting ignored · 8 years ago

    Keeping the images in /user/pages/images is suggested in the docs Where to put your media files. You can then use: page.find('/images').media['my-image.jpg'] If I put the images in /user/images I have

  • Hero_image setting ignored · 8 years ago

    Ah, the blog-list-item.html.twig has yet another way of finding the image: {% set image = page.media.images|first %} It doesn't look at the field 'hero_image' it just picks the first it finds in the p