EE - Creating Thumbnails from a weblog?

I’ve got a clients site we a revamping and on the home page we want to show recent news stories along with a thumbnail from that weblog.

Any pointers, I’ve trawled the threads and I’m confused!

Thanks,

Ben


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Thumbnail, you mean a part of the text and eventually a small imagage and a link to the full article? That is actually standard procedure for a CMS like EE Please have a look at: Title_permalink http://expressionengine.com/docs/modules/weblog/variables.html , trunchtml http://utilitees.silenz.org/index.php/addons/software/trunchtml/ and Image Sizer plug-in. Or do you mean a thumbnail af the actually HTML page of the full article to click on? I do not know if it’s possible. Would be very interesting though…:slight_smile:


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Yes. That’s it. I’ve used the title_permalink but imagesizer has me beat - my page keep show the whole image not a resized one?

I guess I’m having trouble working out where and what code for image sizer to use?

Any tips?


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

I suppose you have your image in a custom field, yes? Trick is to extract the URL from the code.

I use this, as a link to the full article, attached to the shrinked image.
{exp:imgsizer:size src={exp:extract_url}“{your_image_custom_field}”{/exp:extract_url} height=“100” alt=“{title}”}

Hope you understand what happens here, I use a second plug-in, nested. Extract_url takes away surplus code.


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Sorry, code makes a link here (always forget this…)

<a href="{url_title_path=weblog(or channel)/template}" title="{title}">{exp:imgsizer:size src={exp:extract_url}"{your_image_custom_field}"{/exp:extract_url} height="100" alt="{title}"}</a>

dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Great I’ll give it a go first thing Monday.

I guess you drop the code in the HTML item with the other ee tags in FW?

Ben


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Code must be embedded inside your exp:entree tags. If your item is repeating (likely on a index page with a limited numbers of entrees showing) you’ll use the Anonymous action (for the Validation) on the repeating HTML item and sometimes also the remove P tag action, depending on your set-up.


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Now I’m getting confused!


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Inside the exp:entree tags you call whatever content you want, right? In this example a shrinked version of the image that gets called from {your_image_custom_field}.
You say: recent news stories. That’s a potential repeating element in the HTML output. (Not from FW of course, but the output from EE.) FW gives an ID to each and every HTML element. If they repeat, you end up with a page that does not validate. Walther wrote this Anonymous action, that strips the ID from the item. Very clever, because we do not need it here. Ergo, page validates!


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Thanks!

I have it working. I’ll post up a link soon when the client is happy.

Next Job integrating a calendar with the clients exchange server!!


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options