Community guidelines
Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.
Anna Regular
@Netzhexe · Joined 8 years ago · 179 posts · 63 topics · 19 reputation
Badges
Recent posts
-
How do I change a user's email address in a plugin?
· 5 years ago
Excellent memory, it is as simple as that! Thanks 🥰
-
How do I change a user's email address in a plugin?
· 5 years ago
I have a form where a logged in user can have a confirmation email sent to them. I'm showing an email input field with the email address from their profile prefilled. However, if they change it, I'd l
-
Config-default@: grav.user.email does not work for email field in frontend form
· 5 years ago
Thank you both for your time and ideas! I also thought in the data-default@ direction and tried it almost @pamtbaau's way, but I missed the $grav = Grav::instance(); bit so I got an error about using
-
Config-default@: grav.user.email does not work for email field in frontend form
· 5 years ago
Yeah no :-) since I want to show the logged in user's email. I tried though, and site.author.email does work as expected. So why not with grav.user.email? user.email doesn't work either…
-
Config-default@: grav.user.email does not work for email field in frontend form
· 5 years ago
I have a frontend form with an email field, and I would like to prefill it with the user's email address. {{ dump(grav.user.email) }} gives me the address, but putting it in the form doesn't return an
-
How to show a defined form from PHP
· 5 years ago
Ah, I did not make myself clear. But I solved it by myself! :-) This is my page markdown (feels super inelegant, but I'm pressed for time and nobody has admin access apart from me): [some text content
-
How do I modify the confirmation message after form submit?
· 5 years ago
Oh, you totally did! I was just too busy coding to reply straight away ;-) and I'll look at that code as soon as I'm done with this super urgent thing. Thanks for the tip!
-
How to show a defined form from PHP
· 5 years ago
I have a plugin with some custom logic of what to display on a page, and I would like to show a form which I have defined for that page given a certain condition. Basically, how do I do this twig bit
-
How do I modify the confirmation message after form submit?
· 5 years ago
@pamtbaau, once again, you've come to save my day! :-D That did exactly what I wanted. I did dump the form object, but to be honest, I did not and still do not see how I could have known from its outp
-
How do I modify the confirmation message after form submit?
· 5 years ago
Hmm, sure, I could. Doesn't make a difference in this case since it's definitely a German only project. But I don't see how that would change my problem with altering the message AFTER the form has be