Community guidelines
Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.
M Member
@myscha · Joined 8 years ago · 30 posts · 10 topics · 2 reputation
Badges
Recent posts
-
How to debug using dump and xdebug?
· 4 years ago
Thanks for your reply. I have a fresh install of grav-admin and added the events plugin. To the plugin I added the following code: public function onAdminSave(Event $event) { $this->
-
How to debug using dump and xdebug?
· 4 years ago
I was absent from Grav for some time and wanted to continue develoment. About two or three years ago I could simply place a dump() command inside a PHP file and saw the content in the browser. This is
-
How to get file date/time in twig?
· 5 years ago
@pamtbaau: {{ page.media['myimage.jpg'].modified | date('Y/m/d') }} Thank you very much. Using {{ file.modified | dateTranslate(grav.config.system.pages.dateformat.long) }} even considers the configu
-
How to get file date/time in twig?
· 5 years ago
With {% for file in page.media.files %} in Twig I can iterate over the files in a specific folder. Then I can access properties, like file.url, file.name, file.extension and file.size. How can I acces
-
How to create two menus
· 5 years ago
Hi, I want to migrate a older project to Grav. The site has two menus: a horizontal one at the top and a vertical one on the right side. Can this easily be realized with Grav? Best regards Michael
-
Is it possible to change plugin config programmatically?
· 6 years ago
I do want to change the config file. But it doesn't work. It always remains unchanged.
-
Is it possible to change plugin config programmatically?
· 6 years ago
No, this file is also not being modified. I have no idea what 'saveConfig' does.
-
Is it possible to change plugin config programmatically?
· 6 years ago
Thanks for your reply. I already went through the tutorial and I tried it with the following code: public function onAdminSave(Event $event) { $config = (array) $this->config->get('plugins.e
-
Is it possible to change plugin config programmatically?
· 6 years ago
I'd like to implement a checkbox that the site admin can set in the plugin settings. And when he decides to store the settings I'd like to evaluate this checkbox and reset it afterwards. Is that possi
-
(SOLVED) Translation doesn't work
· 7 years ago
Thanks to a bug report I found the solution: it has to be 'GRAV.MONTHS_OF_THE_YEAR' not 'MONTHS_OF_THE_YEAR'.