Related entries extension

Discuss PivotX 2.0.x extensions here, and view extensions that are available for download.

Re: Related entries extension

Postby hansfn » Tue Jun 11, 2013 1:04 pm

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 ...
hansfn
Developer
 
Posts: 3278
Joined: Sun Nov 25, 2007 7:48 pm
Location: Molde, Norway

Re: Related entries extension

Postby lomi » Thu Jun 13, 2013 1:33 pm

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!
lomi
 
Posts: 25
Joined: Fri Jun 17, 2011 6:27 pm

Re: Related entries extension

Postby winters » Sun Oct 26, 2014 6:00 pm

I would like to second that. ( option to use gallery that would be great!)

willem
winters
 
Posts: 82
Joined: Thu Jan 13, 2011 9:09 pm

Re: Related entries extension

Postby winters » Tue Mar 08, 2016 11:39 pm

is there a reason why $entry.extrafields.image would not work together with the plugin?

thanks!
winters
 
Posts: 82
Joined: Thu Jan 13, 2011 9:09 pm

Re: Related entries extension

Postby Harm10 » Wed Mar 09, 2016 7:32 am

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.
Quality is in the detail of things............

Want to change or update your PivotX site? Mail or PM me!
I can also convert your site to a Wordpress site!
Harm10
Developer
 
Posts: 2010
Joined: Wed Jun 17, 2009 9:37 am
Location: Somewhere in The Netherlands (aka Holland)

Re: Related entries extension

Postby winters » Wed Mar 09, 2016 6:42 pm

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 !
winters
 
Posts: 82
Joined: Thu Jan 13, 2011 9:09 pm

Re: Related entries extension

Postby Harm10 » Wed Mar 09, 2016 10:21 pm

Sorry but I am not familiar with this extension. If you are requesting an upgrade to it you can try the author.
Quality is in the detail of things............

Want to change or update your PivotX site? Mail or PM me!
I can also convert your site to a Wordpress site!
Harm10
Developer
 
Posts: 2010
Joined: Wed Jun 17, 2009 9:37 am
Location: Somewhere in The Netherlands (aka Holland)

Previous

Return to 2.x Extensions

Who is online

Users browsing this forum: No registered users and 3 guests

cron