We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 9549
    • 93 Posts
    It don’t seem to work that either sad

    Call:
    [!Ditto? &parents=`2` &tpl=`ListArt` &display=`10` &sortBy=`id` &extenders=`parentFilter`!]

    Extender:
    <?php
    
    $filters["custom"]["parentFilter"] = array("parent","parentFilter"); 
    
    if (!function_exists("parentFilter")) {
    	function parentFilter($resource) {
    		if ($resource['id'] == 43 && $resource['id'] == 46) {
    			return 0;
    		} else {
    			return 1;
    		}
    	}
    }
    ?>


    note that I changed "parent" to "id".

    I also tested the tagging method without any luck..
    [!Ditto? &parents=`2` &tpl=`ListArt` &display=`10` &sortBy=`id` &extenders=`tagging` &tagData=`id` &tags=`43,46` &tagMode=`onlyTags`!]

    However, it works when it’s just a single record. But when there’s more of them, the "No records found"-message displays.
      • 9549
      • 93 Posts
      Finally! I solved this problem by taking an another approach. Instead of using filtering or tagging I used the &documents parameter in Ditto.


      Example...

      [Ditto? &startID=`2` &tpl=`ListArt` &summarize=`10` &paginate=`1` &extenders=`summary` &sortBy=`createdon` &sortDir=`DESC` &documents=`24,80,190,194,` &filter=`tvlan,15||tvkommun,12`]]