We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 18443
    • 7 Posts
    I have different sections on my site, all of them share one TV for tags, but must have different tag ’namespaces’. All documents with same ’namespace’ are children of one parent.
    I’ve changed code of managermanager in order to allow that behaviour.
    Just insert in assets/plugins/managermanager/widgets/tags/tags.php after this line:
    $sql = "SELECT `value` FROM ".$modx->getFullTableName('site_tmplvar_contentvalues')." WHERE tmplvarid IN (".$sql_sources.")";

    the following code:
    				$brothers = array();
    				$doc=$modx->getDocument($_REQUEST['id']);
    				foreach ($modx->getActiveChildren($doc['parent']) as $child) {
    					$brothers[] = $child['id'];
    				}
    				$sql .= " AND contentid IN (".implode(',', $brothers).")";
    


    I hope it may be useful for anybody... smiley