actually i found a simple solution for this. I'm using the categories "pictures" and "videos" and have two different templates for those entry pages.
So got it working by adding exclude_category = "pictures" in the video template, and exclude_category = "videos" in picture template, so the final code ( in video template ) is:
- Code: Select all
[[related_entries pre="<div id='related-entries'>" post="</div>"
format="<a href='%link%'>%title%</a><br />"
amount=20
order="desc"
exclude_category = "pictures"
excerpt_length=100
]]
What i still try to achieve is using thumbnails as related links. I'm using the extension "gallery" but now don't know how to implement [[ gallery_image ]] which created the thumbnails by timthumb, to the above code . I mean something like this:
- Code: Select all
format="<a href='%link%'><img src='`[[ gallery_image ]]`' alt='%title%' /></a><br />"
of course this is not working...
Any ideas?
Thanks!