I used kirby last year. But I want some tagcloud and that didn’t worked, so I took some other cms (nibbleblog).
Now I want give kirby2 a new chance - but tagcloud don’t work. I took it from github, read the readme-file The tags were shown where they should. On klick there is the correct url in browser but shown is the error-page. Why??
As plan B I want to “install” the search (I wonder why this is not ready by the starter-kit?), but this won’t work.
I have installed kirby on Xampp-Portable and I tried the whole sunday getting tagcloud or search running. I did everything step by step installing the search2, suddenly nothing would shown! after deleting every “search”-files everything was well again.
thanks for your answer. the problem is now different; klick on a tag brings no longer the error-page - it shows the same site I klicked on. browser shows the correct url.
I’ve gone through the tutorial and made a controllers/blog.php - nothing changed.
Maybe I expect the false things should happen by klick on a tag in the tagcloud/list. In my opinion I should get a list (titles, excerpts, full articles, …) with all blogpost (childs) having this tag.
What you expect is completely correct, that’s the way it works if it is implemented correctly. Could you post your code (just the bits that refer to the tags cloud, with the files that code is in)? Where have you placed your tag cloud?
You’re right, this I have forgotten to post, but I have it. Tried it with your code - even the same result:
On klick to a tag I see in Browser i.e. …kirby211/blog/tag:basteln and it shows the same blog-“startpage” with the list of tagcloud in the end.
Nothing I have to set in the template for the single blog-entries? What is the part of code that says what should happen when browser says “…kirby211/blog/tag:basteln” - that is what I’m missing bzw. I don’t understand where this part is.
<?php foreach($page->children()->visible()->flip() as $article): ?>
This means that you display all articles all the time and the filter in your blog.php controller will not work.
If you define $articles in your controller as explained above, you need to use it in your template, so change the above line to:
<?php foreach($articles as $article): ?>
That way, when you just call the blog page without the tag parameter, you get the full list of articles; if you open a tag link, the article filter will be applied and you get the filtered list.