Muut Archive Legend
@Muut · Joined 9 years ago · 18337 posts · 3878 topics · 137 reputation
Badges
Recent posts
-
Datatables plugin
· 9 years ago
It's certainly possible to create a plugin. I don't think one exists yet, but there is one for the similar table sorter: https://github.com/Perlkonig/grav-plugin-tablesorter You could use this as a ba
-
Datatables plugin
· 9 years ago
Hi, I'm coming from DokuWiki, on which I use the famous jquery library datatables, which lets me easily browse, paginate, filter and sort all tables in my documentation. Is there the possibility that
-
Retrieve a given markdown language from plugin
· 9 years ago
Ok, thanks Flavio, I'll try this when I have a moment and keep you updated.
-
Retrieve a given markdown language from plugin
· 9 years ago
Related PR: https://github.com/getgrav/grav/pull/1276 P.S. after that, the site language needs to be restored to the original one.
-
Retrieve a given markdown language from plugin
· 9 years ago
I tried and in theory my approach works but you also need to initialize the pages again, to re-calculate all the routes etc. Grav by design only initializes one language at a time, to avoid performanc
-
Retrieve a given markdown language from plugin
· 9 years ago
Hi Flavio, Just tried this and it's not working unfortunately: 1) Disabled the cache and twig cache + cleared the cache using bin/grav clearcache. 2) Navigate to a page in French: localhost/fr/foobar
-
Retrieve a given markdown language from plugin
· 9 years ago
Hi Flavio, Thanks, I've tested this solution but it wasn't working. I'll try with the cache disabled to see if there's any difference.
-
Retrieve a given markdown language from plugin
· 9 years ago
$this->grav['pages']->all(); should work as long as cache is inactive, because the result of all() is cached internally.
-
Retrieve a given markdown language from plugin
· 9 years ago
Thanks Andy, I have the French version actually, I have 12 languages variations in total. It's just that when invoking $this->grav['pages']->all();, it gives an Array of pages object based on th
-
Retrieve a given markdown language from plugin
· 9 years ago
Grav automatically falls back to spanish if you don't have a french version of that page, as long as spanish is listed before french in the array of supported languages.