Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2012-04-06 19:06:13
- sudcadred
- New Member
- Registered: 2012-04-06
- Posts: 1
howto display image in excerpt automatically
I would like to have an image displayed in excerpt automatically, e.g. it could be first image from article. I do not expect complete step-by-step guide, but just some hints, so I can make it:) Thank you
Offline
Re: howto display image in excerpt automatically
Do you mean on the page where your excerpt is displayed or in RSS Feeds?
You could add code to your page or form near <txp:excerpt/>
to output the first article image using <txp:images>
with a limit.
Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker
Offline
#3 2012-04-06 21:29:06
- uli
- Moderator
- From: Cologne
- Registered: 2006-08-15
- Posts: 4,315
Re: howto display image in excerpt automatically
And here’s the code ;)
Like Matt said, add limit="1"
to the code in the “Tips” paragraph from redbot’s site.
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline