pamtbaau Legend
Grav Forum Moderators
@pamtbaau · Joined 8 years ago · 3185 posts · 17 topics · 1019 reputation
Badges
Recent posts
-
onAdminSave() for setting route default override
· 8 years ago
A few thoughts come to mind: What is the performance overhead of looping through all blog items on every page request? Could you jump out when type of current page is not 'blog' and/or 'item'? Why no
-
How to set header image in grav blog page
· 8 years ago
@semplicewebsite Would you like to show different images for the blog item in the list ('blog.html.twig') and on the blog item itself ('item.html.twig')? Unfortunately that option is not build in...
-
Tag Results Page
· 8 years ago
I presume you are making the changes in a child theme by using Theme Inheritance? If not, your changes will be lost when Antimatter gets updated. And that would be a pity wouldn't it....
-
How to set header image in grav blog page
· 8 years ago
It depends.... What is the theme you are using? What (and hence the template) are you looking at: The header of page blog.md? The header of each item listed on page blog.md? The header of page item.
-
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