Page 1 of 1

assign images to latest posts plugin

Posted: Mon Nov 14, 2005 6:44 am
by MySchizoBuddy
we have this sidebar lugin that shows us the latest 10 posts.
Is it possible to assign thumbnails to them
just like on this template (http://www.templatemonster.com/flash-te ... /8286.html) on the left side you see under the menu these thumbnails. it will look good for the car blog, where i can show the picture of the car rather than the title of the post.

Re: assign images to latest posts plugin

Posted: Mon Nov 14, 2005 10:29 am
by garvinhicking
You would first need a place where you assign icons for entries, as else serendipity wouldn't know which image to display.

You could use the customfields feature of the entryproperties plugin for that. Create a customfield "ep_icon" for that, for example.

I've then just committed version 1.1 of the "showentries" sidebar plugin, that gives you smarty flexibilites. You can then edit the plugin_showentries.tpl file and insert "{$entry.properties.ep_icon}" as an img src element to show the url. Or you create entry icons called the same as your entry title, and use the {$entry.title|makeFilename} call to use that, if you don't want to assign seperate icons.

Best regards,
Garvin

Posted: Thu Nov 17, 2005 1:24 am
by MySchizoBuddy
ok that version is posting the whole body entry on my sidebar, totally destroying my layout. :?

I didn't do the suggested alterations. just installed the plugin.

btw shouldn't you change the "recent entries" plugin rather than "show entries" plugin :?

Posted: Thu Nov 17, 2005 1:50 pm
by garvinhicking
Yes, you can change the smarty template to not show the whole body entry...

I created a new plugin for it, because...well, because I didn't think that it would come near recent entries functionality. I didn't think about it. Well, nobody is perfect :)

Regards,
Garvin

Posted: Tue Nov 22, 2005 7:03 am
by MySchizoBuddy
garvinhicking wrote:I created a new plugin for it, because...well, because I didn't think that it would come near recent entries functionality.
Its perfect. I got it working on localhost. this customfields thingy is super cool. weee haaaa
Image

is there away to extent this functionality to any generic list
Top commented list
Top viewed list
Top rated list
Last weeks posts
etc.

one more thing. any hints on how to display it in a grid. like 2x2 grid rather than all vertical