Badges
Self employed developer and web witch. Building tiny shiny websites with Grav since 2018 (also some bigger ones). Tech is political!
Recent posts
-
clean way to show some content only if someone is logged in?
· 3 days ago
You know, that seemed such a delightfully simple solution, I implemented it straight away! And the login form appeared – but I just realised the logout link does not work/do anything, for reasons I ju
-
is it possible to save a colorpicker value as oklch? how do I go about adding that?
· 1 week ago
oklch(from var(--hex) ...)) Ooooooohhh I did not realise I could do that! Thank you SO much 🙏🙏🙏 I will go with that for now!
-
plugin/theme development: logging works, sending messages to debugger does not
· 1 week ago
Augh, I made a typo! Sorry about that. This is my function: public function onApiConfigUpdated(Event $event): void { $this->grav['log']->info('still testing'); $this->grav['debugger']
-
clean way to show some content only if someone is logged in?
· 1 week ago
Oh, I managed to miss those! Very nice, thank you. I’m still left with the problem of showing the login form directly though… apparently there is no simple solution for that? Hm… I will probably put s
-
plugin/theme development: logging works, sending messages to debugger does not
· 1 week ago
In my theme.php I want to do something whenever the theme config gets saved. I tried two hooks for that: onAdminSave and onApiConfigUpdated. Both let me send messages to the logs via $this->grav['l
-
is it possible to save a colorpicker value as oklch? how do I go about adding that?
· 1 week ago
Hm, I would like to do it with PHP whenever the theme settings are saved. Just convert the freshly picked colour and save it in the theme config as an extra field. Do you see any reason to use js for
-
is it possible to save a colorpicker value as oklch? how do I go about adding that?
· 1 week ago
Oh, I totally can. Sorry, I did not explain this very well: I actually manipulate the picked theme colour into different shades, and that is very easy to do if it’s oklch, but not if I’m working with
-
clean way to show some content only if someone is logged in?
· 2 weeks ago
Sadly, this does not work easily, because page.home is always false (since it’s the login page). How could I check whether the login form came from/redirects to the home page? I can’t find that inform
-
clean way to show some content only if someone is logged in?
· 2 weeks ago
I am making a tutorial site that is only available to logged in users. So for most of the pages I did it as you suggested, but for the home page I would like to have a little bit of text for people wh
-
is it possible to save a colorpicker value as oklch? how do I go about adding that?
· 2 weeks ago
It’s easier to use in Tailwind as that stores all its colours as oklch…