Badges
Self employed developer and web witch. Building tiny shiny websites with Grav since 2018 (also some bigger ones). Tech is political!
Recent posts
-
[SOLVED] Define a callback function in a plugin
· 8 years ago
I got it to work! In case somebody else needs it, this is my solution: $content = preg_replace_callback('/([a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,6})/', array(get_class($this), 'munge'), $conten
-
[SOLVED] Define a callback function in a plugin
· 8 years ago
I'm writing a little plugin that checks pages for plain text email addresses and turns them into javascript-encrypted mailto links. I have defined a function munge($address) and I'm using it with preg
-
[SOLVED] What is the GitHub ID when creating a new plugin?
· 8 years ago
Excellent, thank you! If I may make a suggestion, perhaps it would be helpful to change the prompt in devtools to "Your GitHub username" to avoid confusion. I did some research and found that I actual
-
[SOLVED] What is the GitHub ID when creating a new plugin?
· 8 years ago
So this may be a very simple question, but I still don't know what to put here. I'm creating a new plugin with devtools, and it's asking for a GitHub ID. Is that my user ID, or the repository's ID, or
-
cropResize does not work as expected for images in portrait format
· 8 years ago
I'm using the following code to list a bunch of articles with an image each. The image part is: {{ image.cropResize(300,300).html('','Foto','right dreh'~drehgrad) }} This works a treat for landscape s
-
More than 1 Site > Developing locally > A Local Multisite Use Case? Gotchas? Setup?
· 8 years ago
I have no answer to this (my guess is that you'll have to come up with your own custom solution, I've never seen a plugin or anything for the job), but I would also like to be able to do that! Some so
-
[solved] Page variable conflict (?) when including another page on a page
· 8 years ago
Hello Romarain, thank you so much for your reply! It helped me figure out what was wrong, and it was a simple thing really. First of all, I copied the with {'page': page.find('/extra', true)} bit from
-
[solved] Page variable conflict (?) when including another page on a page
· 8 years ago
I have a set of pages that use a specific template "example.html.twig". All the pages that use this template have a common section after their main content, but ONLY if a specific frontmatter variable
-
Wrap form on modular page in a div?
· 8 years ago
I have a form on a modular page. My theme has no form.html.twig template, and neither does the Quark theme. It seems that the templates in the form plugin folder are being used. However, I would like
-
Cookie-free domains
· 8 years ago
I also am interested in creating a cookie-free site (because I don't see why it would need one and GDPR makes cookies a bit of a hassle). I just tried what you suggested @arank, but the grav-site cook