Community guidelines
Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.
pamtbaau Legend
Grav Forum Moderators
@pamtbaau · Joined 8 years ago · 3127 posts · 12 topics · 1011 reputation
Badges
Recent posts
-
Crikey! on Grav 1.4.7 Administration Panel
· 8 years ago
@k64 To help you get a better response then to the same issue you created last week, I searched on Google for some bug reporting guidelines. The title of one of the guidelines says it all: How to writ
-
Create a new page from php or?
· 8 years ago
@dlannan The plugin Add Page By Form might be doing something you're aiming for. It allows users to add a new page by filling in a form.
-
Setting a Global Variable (like a phone number)
· 8 years ago
And yet again a new gem of Grav revealed to me... Thanks.
-
Setting a Global Variable (like a phone number)
· 8 years ago
Sorry, misread your question... The only solution I can think of is adding an onPageContentRaw event to your theme or plugin and replace a placeholder for the variable in the content of the page. If y
-
Setting a Global Variable (like a phone number)
· 8 years ago
@polybizman Have a look at the docs on Site Configuration. Scroll down to "custom options" You can create any option you like in this file and a good example is the blog: route: '/blog' option that i
-
Create a new page from php or?
· 8 years ago
@dlannan Uhhh, do you want it all to happen inside the Admin panel? I think not, but if so, the Admin plugin has its own event hooks. You can write your own plugin and respond to, for example, the onA
-
Redirect route including language
· 8 years ago
A different approach... I've added an onPageContentRaw function to the theme. The function searches the Markdown code for the PDF and replace it by a proper <a> All pages contain the same langua
-
Redirect route including language
· 8 years ago
Just learned a word which wasn't in my vocabulary but found it in the urban dictionary...
-
Redirect route including language
· 8 years ago
That's cool @npetri I wonder, is twig that smart or has Grav added that smartness?
-
Redirect route including language
· 8 years ago
In Twig you might try '/' ~ page.language ~ '/path/to/file.pdf'