Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Blog Module /

Discuss the Blog Module.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Tag Filtering Not Working


Go to End


2 Posts   1709 Views

Avatar
Garrett

Community Member, 245 Posts

20 August 2009 at 5:59am

Hi,

I recently installed the latest Blog module (v. 0.2.1) on SS v.2.3.2 and I just noticed that the tag filtering isn't working. When you append "?tag=foo" onto the URL, the same resultset appears, no matter what the tag, and the message "No blog entries found with that tag" NEVER appears. ALL blog entries are being returned no matter what...

I noticed that the function tag(), which used to be Tag() [with a capital] has changed. This calls ShowTag(), which then uses "Director::urlParam('Action') == 'tag'" to determine whether a tag has been selected. But Director::urlParam('Action') isn't returning Anything, let alone "tag". Anyone have the tag filtering working in this new version of the Blog??

Any help would be greatly appreciated.

Thanks,
Garrett

Avatar
Willr

Forum Moderator, 5523 Posts

20 August 2009 at 1:15pm

?tag=foo is incorrect. The blog module uses the format - blog/tag/tagname rather then passing it the query string