I am trying to render related documents for the current page (in its page), but I am failing miserably.
In Ditto I used the Tags element, for outputting TV content and for getting related items that used the same TV options, similar to tagging.
My Ditto call:
<ul>
[[Ditto?
&parents=`11`
&display=`3`
&randomize=`1`
&tpl=`RelatedList`
&showInMenuOnly=`0`
&showPublishedOnly=`1`
&filter=`id,[*id*],2`
&tagData=`myTags`
&tags=`[*myTags*]`
]]
</ul>
My Doclister call:
[[Doclister?
&parents=`11`
&display=`3`
&orderBy=`RAND()`
&ownerTPL=`@CODE:<ul>[+dl.wrap+]</ul>`
&tpl=`@CODE:<li class="col-sm[+iteration:math=`?-1`:firstlast+]"><a href="[+url+]">[+pagetitle+]</a></li>`
&tvList=`myTags`
&renderTV=`myTags`
&tvPrefix=``
&addWhereList=`hidemenu=1 AND published=1 AND c.id!=[*id*]`
&tagsData=`myTags`
&filters=`tv:myTags:like:[*id*]`
]]
The &filters
in my Doclister call is probably completely wrong, as I can't get my head around the markup for finding out docs that use the same TV values
Any and all help is welcome and much appreciated 🙂