Logo of SermonSpeaker Extension Claim

Login Form

Backend Series and Speakers list Search Tools for Tags not working

More
1 year 7 months ago #6586 by Ken Lee
Dear Thomas,

I created some Joomla tags.
At the back end, Series and Speakers managers. I tagged some entries. Then I expand the Search Tools, and select a Tag that I have used.
The series list (or speaker list) below still shows the full list, without filtering.
The Search Tools for tags at Sermons manger and Categories manager are working, though.

Would you take a look at it?

Thank you.

Ken

Please Log in or Create an account to join the conversation.

More
1 year 6 months ago #6592 by Ken Lee
I was able to fix the problem by adding this code at getListQuery() in series model.

$tagId = $this->getState('filter.tag');

if (is_numeric($tagId))
{
$query->where($db->quoteName('tagmap.tag_id') . ' = ' . (int) $tagId)
->join(
'LEFT', $db->quoteName('#__contentitem_tag_map', 'tagmap')
. ' ON ' . $db->quoteName('tagmap.content_item_id') . ' = ' . $db->quoteName('series.id')
. ' AND ' . $db->quoteName('tagmap.type_alias') . ' = ' . $db->quote('com_sermonspeaker.serie')
);
}

You are welcome.

Please Log in or Create an account to join the conversation.

More
1 year 6 months ago #6594 by Thomas Hunziker
Thanks!
Your code is correct. I fixed it now with github.com/Bakual/SermonSpeaker/commit/c...0535c38b883849c3e9b6

Feel free to rate SermonSpeaker on JED .
Useful documentation for beginners: First Steps & FAQ
How to say "Thank You!": Contribute or support using the Donate button at the bottom of each page.

Please Log in or Create an account to join the conversation.

Time to create page: 0.091 seconds
Powered by Kunena Forum