Is there a way to create a link that calls a tag that is used in several articles so that when a user clicks on it, it will load the results of those articles based on that tag?
For instance, if I have a tag called "corporate news", and I've been adding those to all of my articles, I want to create a link where the user clicks on it, and it will load a search results page that has all of those articles listed?
I'm not sure if I'm using the correct programming or web terms in my question, but that's the best I can explain it.
The only way I've found to do it is to do a manual search using that tag and copying/pasting the results URL into my link. However, that would mean I would have to update that link each time I publish a new article that has the tag in it, which isn't ideal.
You should be able to use the search results URL from a manual search to get results published at any time. Enter an asterisk as the keyword, and filter by tag and any other filters, as shown below. The URL that is produced will work for content published at any time.
When I initially do what you instructed, the page loads the correct content, but when I use that URL in a hyperlink, the page does not load anything. I get this instead:
This appears to be a bug that occurs when there are no tag groups on the site. I've made our development team aware of the issue. We'll let you know when a fix is available.
As a temporary fix, you can create a temporary tag group in Control Panel > System > Tag Groups . You may need to add a tag to the group as well. The tag group will appear on the search page as a filter, but you can hide it by adding the following CSS to Control Panel > System > CSS Overrides .
All of my tags use underscores instead of dashes. When I create a tag within the tag group, it automatically makes my underscores into dashes. Is there no way around that?
I've created a case for our development team to look into it. We'll let you know when a fix is available for this as well.
Your site now has the fix for both issues.
Choose a location