Muut Archive Legend
@Muut · Joined 9 years ago · 18337 posts · 3878 topics · 137 reputation
Badges
Recent posts
-
Debuggin plugin development
· 12 years ago
Pages are only aware of their own images/files/videos, you can get those via {{ page.media }}. JQuery will typically be loaded by the theme itself, and you were on the right path by looking in Grav as
-
Debuggin plugin development
· 12 years ago
Sorry sould say that I'm interested in the page assets not Grav's assets. Those assets are displayed.
-
Debuggin plugin development
· 12 years ago
Thanks for the quick response. I solved this issue. Is it possible to get a list of js assets. I see in there is a method in the Assets.php file - getJs() - but it returns an empty array. I would like
-
Debuggin plugin development
· 12 years ago
If the debugbar is showing up on your page, then you should be able to add debug messages. One thing to note, is that in a plugin, by default you would use: $this->grav['debugger']->addMessage
-
Debuggin plugin development
· 12 years ago
Hi all I'm trying to create a plugin for jqmath. It is based on the tutorial (creating a random plugin and also in the simplecart plugin). This plugin will just add additional assets once loaded to th
-
How to get active taxonomy
· 12 years ago
Yes! It is working, thanks :)
-
How to get active taxonomy
· 12 years ago
No problem. You all sortded?
-
How to get active taxonomy
· 12 years ago
The solution was pretty straight forward: {% set activeTax = uri.param('category') %} PS: Sorry for spamming the forum haha
-
How to get active taxonomy
· 12 years ago
Oh, the debug bar wasn't loading :) Still trying to figure out how to get the current taxonomy from the querystring
-
How to get active taxonomy
· 12 years ago
Brilliant! {{ page.taxonomy().category|first }} works just fine, however I am unable to use {{ dump (page.taxonomy()) }} in the same page even though debugger is on, why is that, it returns nothing?