I have some tags links on the homepage and what I need to do is when I click on one tag to show a new template with the images from all the projects regarding this tag. like this: http://localhost:8000/tag:BIM
On the homepage I am only showing cover images, so I don’t want to filter just these images but all the images on the website that have the same tag. I am trying to use the Filtering via Routes method but even though the URL changes, I don’t get the filtered images nor the tag template. Would appreciate any help, since I am stuck here. Thank you so much!! Here’s my homepage code:
I don’t know why this assets thing is happening, but the important thing here is that you make sure that the url you generate for your tags is the same as the one you are listening to in your route
If your route listens to home/tag/BIM, then the above URL won’t work.
I managed to make it work but the problem I have is that all my assets are not being loaded, I have to create a Tag folder on the main folder of the website and copy my assets to there as well as javascript files etc. I don’t understand why this is happening. Do you have any idea on how to avoid this?
I think the paths you are using to your assets are not correct, i.e. they only work on the home page but not on subpages, because you are probably using relative links:
I am using the Kirby css like this: <?=css('assets/css/index.css')?> but somehow doesn’t work here. any idea why?
I removed the code from the config and add 2 controlelrs 1 for the homepage and one called projects (they are bot the same):
but this only works because I have created a new folder called projects on the main folder of the website and copied the assets again and I know this is not good. please help me I don’t really now why this is happening!!