freetag - related posts' pictures

Creating and modifying plugins.
Post Reply
peggylon
Regular
Posts: 51
Joined: Tue Jul 01, 2008 6:32 pm
Location: Berlin
Contact:

freetag - related posts' pictures

Post 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!
----------
peggylon aka multikulinaria http://www.multikulinarisch.es
Don Chambers
Regular
Posts: 3652
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

Re: freetag - related posts' pictures

Post by Don Chambers »

Have you seen link within? That would be cool to have if based on tags.
=Don=
peggylon
Regular
Posts: 51
Joined: Tue Jul 01, 2008 6:32 pm
Location: Berlin
Contact:

Re: freetag - related posts' pictures

Post 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...
----------
peggylon aka multikulinaria http://www.multikulinarisch.es
Eni
Regular
Posts: 62
Joined: Thu Jan 27, 2005 10:47 pm
Location: Münster, Germany

Re: freetag - related posts' pictures

Post 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.
Sorry, I'm Late. But I Got Lost On The Road Of Life.
peggylon
Regular
Posts: 51
Joined: Tue Jul 01, 2008 6:32 pm
Location: Berlin
Contact:

Re: freetag - related posts' pictures

Post by peggylon »

Thank you for the hint Eni!
I'll try adapting it for my purpose.

cheers
----------
peggylon aka multikulinaria http://www.multikulinarisch.es
peggylon
Regular
Posts: 51
Joined: Tue Jul 01, 2008 6:32 pm
Location: Berlin
Contact:

Re: freetag - related posts' pictures

Post 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
----------
peggylon aka multikulinaria http://www.multikulinarisch.es
Post Reply