I try to use tagcloud logic from Cookbook: Filtering with tags | Kirby CMS
kirby\http\params::separator(['tag' => $tag])
return empty strings so generated url is http://example.com/blog/:
Any suggestions?
Thanks
I try to use tagcloud logic from Cookbook: Filtering with tags | Kirby CMS
kirby\http\params::separator(['tag' => $tag])
return empty strings so generated url is http://example.com/blog/:
Any suggestions?
Thanks
Hm, the separator()
function doesn’t accept a parameter. This should work, but maybe there is a better way:
<a href="<?= url($page->url() . '/tag' . Kirby\Http\Params::separator() . $tag) ?>">
You can also use this:
<a href="<?= url($page->url(), ['params' => ['tag' => $tag]]) ?>">
I assume this uses the correct separator internally.
Thanks, second example working. Can you also fix it in cookbook for others please
And I have one question which is related to tags, pagination and link back from article detail.
Should I create new topic?
I have used the updated recipe from the cookbook and I am able to create a tagcloud with it but whenever I click on one of the displayed tags the updated page shows the same amount of articles as before, so the filtering doesn’t appear to be working.
Two things I have added to my Kirby test environment are the following: