Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-05-28 23:03:48

kvnmcwebn
Member
From: Ireland
Registered: 2007-01-27
Posts: 724
Website

image in article excerpt listings?

Hi two question about displaying excerpts in article lists:
1. im trying to get the listings to include a thumbnail image along with the excerpt.
Should i do this manually or is there a way to pull in an article image thumb from the article?
2. Can i put a word count or word limit on the excerpts?

im using this form to generate my lists:
<h2><txp:title /> <span class=“permlink”><txp:permlink>:</txp:permlink></span> </h2>
<txp:excerpt /> <txp:permlink>read more</txp:permlink>

Id like to get something like this working:
<h2><txp:title /> <span class=“permlink”><txp:permlink>:</txp:permlink></span> </h2>
<article img class=“article_image”>
<txp:excerpt wordcount=“100”/> <txp:permlink>read more</txp:permlink>
thanks in advance


its a bad hen that wont scratch itself.
photogallery

Offline

#2 2007-05-29 00:32:11

masa
Member
From: Asturias, Spain
Registered: 2005-11-25
Posts: 1,091

Re: image in article excerpt listings?

1. wet_article_thumb with optional link to the article

2. rss_auto_excerpt

Offline

#3 2007-05-29 13:51:17

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: image in article excerpt listings?

1. Instead of <article img class="article_image"> use <txp:article_image thumbnail="1" class="article_image" />.

Offline

Board footer

Powered by FluxBB