I have this query below in a custom query repeater to display all articles that have the same value under PracticeAreas as the current one. PracticeAreas has multiple checkboxes - and this is the problem.SELECT ArticleTitle, NodeAliasPath FROM my_articles
JOIN view_cms_tree_joined
ON ArticlesID = DocumentForeignKeyValue
where classname = 'my.articles' and
##WHERE##
and have this in the WHERE condition:PracticeAreas = '{%CurrentDocument.PracticeAreas#%}' and NodeID != {%CurrentDocument.NodeID#%}
Example: Article#1 has 1 and 2 checked under PracticeAreas; Article#2 has 1 checked; Article#3 has 1 and 2 checked.Result: Only Article#1 and Article#3 are considered related from my code. But
what I really wanted is all 3 articles above to be related because they all have one same PracticeArea which is checkbox 1. Is this possible? Hope it's clear. Thanks!
↧