Muut Archive Legend
@Muut · Joined 9 years ago · 18337 posts · 3878 topics · 137 reputation
Badges
Recent posts
-
How would I get the current language?
· 9 years ago
Yup, and Grav 1.2.0 should be release this week.
-
How would I get the current language?
· 9 years ago
Its ok i worked it out :D - {{ language_codes.getnativeName(grav.language.getActive) }}
-
How would I get the current language?
· 9 years ago
@rhukster and how would i get the natvie name?
-
How would I get the current language?
· 9 years ago
@rhukster, thats handy to know, thanks very much :D i will take a look at the exisiting solution. How long until Grav 1.2 is released roughly?
-
How would I get the current language?
· 9 years ago
FYI i've added this to base set of Twig variables so it will be available without any extra custom work for Grav 1.2.0 release : https://github.com/getgrav/grav/commit/330a90b0ab810f1ed3ca4f89f2e13cd4
-
How would I get the current language?
· 9 years ago
Currently that is not available in Twig directly. That lookup is in the class LanguageCodes.php, but it currently can only be used by PHP, ie in a plugin or something. You could do this easily enoug
-
How would I get the current language?
· 9 years ago
Hi, How do I go about getting the current language? No just the country code 'en', 'de' but the actual name for example 'English' or 'Deutsch'. I am using langswitcher, but can seem to find anything t
-
Website + blog + webapp workflow
· 9 years ago
My personal website includes static content and a blog. I'm currently building a pastebin into it, and will then be merging my family recipe site into it as well. It's certainly doable, and isn't even
-
Website + blog + webapp workflow
· 9 years ago
do you think that beeing a big application would it fit into grav, or may be is better to leave it alone, and integrate it in some other way?
-
Website + blog + webapp workflow
· 9 years ago
You can put plugin-like logic in the theme. The theme class actually supports every event (except onPluginsIntialized), however, it's probably better to create a custom plugin. Check out the devtool