Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: article images
Yes i can display images using those two tags. After having played around with the problem for a while ive discovered something weird. The form im calling on my default page is called articles, its the one ive posted code for above. Called in my page template using this:
<code><txp:article listform=“articles” limit=“3” /> </code>
This limits my excerts on my home page to three and also controls the article on the single article page which ive done like this:
<code> <txp:article listform=“articles” limit=“1” /></code>
Last night i tried, for some reason, adding txp:article image to my default article form, which i thought was out of action but id try use it anyway…..guess what? It made my images display. I dont get it! Why would this happen? Images work everywhere accept for the thumbs on my excert page.
This is the code for my default article form.
<code>
<h3><txp:permlink><txp:title /></txp:permlink> ·</h3><txp:article_image /> <p class=“info”><txp:posted /> by <txp:author /></p><txp:body />
<txp:comments_invite wraptag=“p” /></code>
Could anyone suggest whats going on and what i need to do to get the thumbnails working?
Last edited by elduderino (2006-09-12 18:02:29)
Offline
#17 2006-09-12 22:45:01
- els
- Moderator

- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: article images
It’s because you didn’t specify a form attribute. It seems that even if you have <txp:if_individual_article> in your form, a missing form attribute will cause TXP to use the default form for individual articles. I assume it will work when you change the article tags to <txp:article form="articles" listform="articles" limit="x" />.
Don’t know why the thumbs don’t work though. You may get a quicker response by posting this problem in the plugin thread, wet is a fast replier… ;)
Offline