Muut Archive Legend
@Muut · Joined 9 years ago · 18337 posts · 3878 topics · 137 reputation
Badges
Recent posts
-
Building Tag Lists by Category
· 11 years ago
Hi Bob, I follow your conversation a while, but I had no time to answer… However I copied your code and tested it. It works fine. On the first request of page the message "CategoryMenu Plugin cache mi
-
Building Tag Lists by Category
· 11 years ago
It looks ok at first glance to me Bob. Did you ensure that you are getting to the $cache->save() call?
-
Building Tag Lists by Category
· 11 years ago
OK, finally a little code to show: public function onPageInitialized() { /** @var Cache $cache */ $cache = $this->grav['cache']; /** @var Pages $pages */ $pages
-
Building Tag Lists by Category
· 11 years ago
asort do not need because if you have a empty array what you need to sorting? :P another, the filler, i think the categories_tags have page object, not have sense save in cache only the tagname, try r
-
Building Tag Lists by Category
· 11 years ago
Here's a snippet of the code I'm working on for this. $cache_id = md5('categorymenu'.$page->path().$cache->getKey()); $this->categories_tags = $cache->fetch($cache_id); if ($this->cate
-
Building Tag Lists by Category
· 11 years ago
I think the best it's add a twig function with params for filter by tag/category/etc. For now im busy with other projects, but if is userfully for some ppl i can pause other projects and develop this
-
Building Tag Lists by Category
· 11 years ago
Sounds ok so far to me :) Let me know when you have some initial code and i'll take a look at that, just easier for my brain to grok actual code.
-
Building Tag Lists by Category
· 11 years ago
I'm re-starting work on a plug-in to gather a list of all the tags used for each of the categories defined in my blog. The taxonomylist plug-in creates arrays of all the categories and all the tags, b
-
Syndication buttons and url
· 11 years ago
OK, it seems to me it was the solution too, but I am not an expert with GRAV today. Thank you very much for your confirmation.
-
Syndication buttons and url
· 11 years ago
If you need to access from various pages you could set a site wide global variable in you site.yaml file and reference that. My changes were an attempt to make the theme not require a configure option