Thank you so much for your help, sorry for not responding until now. It’s working as it should. I ended up using the pageid anyway, which of course works much better in an URL (e.g. no spaces or special characters). I added surrounding parentheses however to eliminate the problem with page id:s containing the same sequence, where unwanted docs would otherwise pass the multiple choice Ditto filter (7).
$filter='enProductGroup,' . $_GET['frompage'] . ',7';
$tpl='@CODE <div class="ditto_item" id="ditto_item_[+id+]">
<a href="[~[+id+]~]&frompage=' . $_GET['frompage'] . '"><div><img src="[+mainimage+]"></div>
<h3 class="ditto_pageTitle">[+pagetitle+]</h3></a> The only remaining issue is that I need to manually edit the option list in the TV (for each language) when a new product group is added. The list looks something like this: All products (56)||Load carriers (58)||Pouches (59)||Slings and Holsters (63)||Backpacks and Bags (74)||Medical bags (88)... and for each product multiple options can be chosen.
I am sure that there is a way to construct this option list from the pagetitles and id:s in the database (with a @SELECT binding or a snippet?). This wiki article
http://wiki.modxcms.com/index.php/%40SELECT_Binding is very informative, but more or less tells someone like me to keep away...
Any hints? Can I use Ditto in the back-end maybe?