Muut Archive Legend
@Muut · Joined 9 years ago · 18337 posts · 3878 topics · 137 reputation
Badges
Recent posts
-
Post to Data (print current username)
· 10 years ago
Given the above a good go in different ways, but It's not working: My Form {{ config.system.pages.theme }} my name is: {{ grav.user.username }} ^ The twig above is being processed because the theme is
-
Post to Data (print current username)
· 10 years ago
Ah I see, cheers flaviocopes, Thanks a lot!
-
Post to Data (print current username)
· 10 years ago
No actually that's added to the Twig variables by the Login plugin, which handles user authentication. I don't think it's documented anywhere, but used in various plugins and themes. Need to be added
-
Post to Data (print current username)
· 10 years ago
Thank you flaviocopes, really appreciate it. I can't seem to find that object in the grav documentation. Is there a way to find grav objects like that one? Is it the API classes?: https://learn.getgr
-
Post to Data (print current username)
· 10 years ago
You can use the built-in Twig object grav.user, for example like this <strong>Username:</strong>: {{ grav.user.username}}
-
Post to Data (print current username)
· 10 years ago
If it helps, or is more effeciant I've created the twig plugin that allows me to Output some PHP code result in a Twig or md template. which is currently the example string 'something;. <?php names
-
Post to Data (print current username)
· 10 years ago
Hello, I'm using the form plugin to save user generated html from submitted data. Below is the default data.html.twig code that generates these pages in the form plugin. I'd like to add the current
-
This must be so simple....Antimatter's Blog config
· 10 years ago
Good advice Janne, TY
-
This must be so simple....Antimatter's Blog config
· 10 years ago
Thanks very much!
-
This must be so simple....Antimatter's Blog config
· 10 years ago
I know from experience that writing documents is hard because the writers are typically experts, so they take some things for granted — that's why I always try to read through all documentation at our