Hi, we are trying to get categories and the tag cloud working on a blog.
We know that there is a WHERE to select these, i.e.
Tags:('{%ToInt(tagid, "")%}' = 0 AND '{%tagname%}'='') OR (DocumentID IN (SELECT DocumentID FROM CMS_DocumentTag WHERE TagID = {%ToInt(tagid, "")%} )) OR (DocumentID IN (SELECT DocumentID FROM CMS_DocumentTag WHERE TagID IN (SELECT TagID FROM CMS_Tag WHERE TagName = '{%tagname%}' AND TagGroupID = {%ToInt(groupid, "")%} )))
Categories:'{%categoryid%}' = '' OR (DocumentID IN ( SELECT DocumentID FROM CMS_DocumentCategory WHERE CategoryID = '{%categoryid%}' ))
Both of these WHERE's work seperatly however we are trying to work out if these 2 WHERES can be merged so that a category OR tag can be selected. Is this possible?
Thanks
Ashley