Here is my "problem" : I want to build a related link list, which will be displayed at the bottom of each articles. There is the ListRelated snippet, sure, but I need to randomize and add advanced filters so it won’t do.
Each article has a TV (named keyword) defined with a list of Keywords (multiple checkbox so that the user can check all associated keywords).
I have to list 5 random links for each keyword the current article has in common with other articles.
Here is my ditto call for keyword 1 :
<ul>
[!Ditto? &parents=`0` &depth=`6` &display=`5` &randomize=`1` &filter=`keyword,keyword 1,1|id,[*id*],2` &tpl=`tpl_list_related` &noResults=` ` &showPublishedOnly=`1`!]
</ul>
Notice I use the second filter to filter out the current article ( id,[*id*],2 ).
Works just great
The only thing is, I have to build a call for each keyword, manually...
Not that great
Now, I have never used the Tag mode, maybe there is something there that could achieve what I want (any pointer ?)
Or a little snippet to cycle through the values of the keyword TV ?
How would you go about this ?
Thanks !