Page 1 of 1

freetag - related posts' pictures

Posted: Fri Jan 04, 2013 5:13 pm
by peggylon
Hello,

I've been using the freetag-Plugin for a while. I'd like to turn the serendipity_freeTag_related content into something often seen in food blogs, featuring small pictures (with links) instead of text links.

I have an idea of how to edit the html as well as css of that section, to get 4 small floating pictures. But I don't know, which event variable referes to an entry's (small size) picture, if there is any.
Could related posts with pictures be achieved at all?

Thanks for any advice!

Re: freetag - related posts' pictures

Posted: Fri Jan 04, 2013 6:35 pm
by Don Chambers
Have you seen link within? That would be cool to have if based on tags.

Re: freetag - related posts' pictures

Posted: Fri Jan 04, 2013 6:52 pm
by peggylon
Thanks Don for pointing me to the widget. I guess that's what I had seen on many foodblogs but had mistaken for a WP-Plugin.

If there is no way of modifying the freetag plugin as wished for (still hoping), I might have to go with the external widget...

Re: freetag - related posts' pictures

Posted: Fri Jan 04, 2013 8:28 pm
by Eni
In the Mimbo theme I'm using, there is a small special picture assigned to each entry which is only displayed on the front page. The picture is assigned to the entry via a custom field called MimboImage (at the bottom of the entry edit page):
Custom Fields:
Additional custom fields can be used in your template at places where you want them to show up. For that, edit your entries.tpl template file and place Smarty tags like {$entry.properties.ep_MyCustomField} in the HTML where you like. Note the prefix ep_ for each field.
The list of available custom fields can be changed in the plugin configuration.
I'm not sure but I think that the variable for such a custom field picture is maybe easier to grab for the change then trying to fish a picture from an entry content? :? It would requiere the extra clicks of assigning one for each entry, though, but I don't find it too much of a bother.

http://i46.tinypic.com/2hnufiw.jpg
See? Once the custom field is set up once, you'd just enter the thumbnail of the entry photo there.

Re: freetag - related posts' pictures

Posted: Mon Jan 07, 2013 9:27 am
by peggylon
Thank you for the hint Eni!
I'll try adapting it for my purpose.

cheers

Re: freetag - related posts' pictures

Posted: Wed Feb 13, 2013 5:41 pm
by peggylon
I implemented a custom field for thumbnail image. Since I can't see a database connection to the post it belongs to via post id, I still wouldn't know how to call related post's custom images from another post.

Looks like I will have to go with the link within widget or stay with the related-tags plugin without images.

Thanks anyway,
Peggy