Page 2 of 2

Re: Related entries extension

PostPosted: Tue Jun 11, 2013 1:04 pm
by hansfn
OK, I read your post again:
So if you're browsing in an entry in one specific cateogry ( news ) it just would display related entries that match the tags and are in that same category (news ).

The extension doesn't support this. I'm really busy so I can't promise to add this very soon. It's not hard - just add another parameter "incategory" which turns on limitation to the categories of the current entry. This sounds so useful that I might actually do it this week ...

Re: Related entries extension

PostPosted: Thu Jun 13, 2013 1:33 pm
by lomi
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!

Re: Related entries extension

PostPosted: Sun Oct 26, 2014 6:00 pm
by winters
I would like to second that. ( option to use gallery that would be great!)

willem

Re: Related entries extension

PostPosted: Tue Mar 08, 2016 11:39 pm
by winters
is there a reason why $entry.extrafields.image would not work together with the plugin?

thanks!

Re: Related entries extension

PostPosted: Wed Mar 09, 2016 7:32 am
by Harm10
winters wrote:is there a reason why $entry.extrafields.image would not work together with the plugin?
I do not understand your question. Please elaborate.

Re: Related entries extension

PostPosted: Wed Mar 09, 2016 6:42 pm
by winters
like

Code: Select all
[[related_entries pre="
                    <ul class='related-entries'>" post="
                    </ul>
                    <!--end related entries-->" format="

                    <a href='%link%'>%$entry.extrafields.image% <strong>%title%</strong></a>" method="strict" list_separator=", " date_format="%day% %monname% %year% - " ]]



as result for $entry.extrafields.image i get %Array.extrafields.image%

I would like to see the content of entry.extrafields.image

hope this makes sense !

Re: Related entries extension

PostPosted: Wed Mar 09, 2016 10:21 pm
by Harm10
Sorry but I am not familiar with this extension. If you are requesting an upgrade to it you can try the author.