Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2015-01-31 17:51:12
- Freeant
- Member
- Registered: 2012-04-16
- Posts: 36
How to display only the first image from the article
Form default
...
<txp: permlink> <txp: title /> </ txp: permlink>
<?>
...
How to make the display (output) only the first image of the article.
Offline
Re: How to display only the first image from the article
You could use article image
something like <txp: permlink><txp:article_image /></ txp: permlink>
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: How to display only the first image from the article
Freeant – are you removing the spaces from your tag code?
You write this:
<txp: permlink> <txp: title /> </ txp: permlink>
…when the recommended way is more compact:
<txp:permlink><txp:title /> </txp:permlink>
Offline
Re: How to display only the first image from the article
Not just recommended… it won’t work with those spaces in there.
Offline
Re: How to display only the first image from the article
ruud wrote #287958:
Not just recommended… it won’t work with those spaces in there.
That was my gut feeling – I was away from a Textpattern instance to test ‘em out properly.
Offline