Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2006-09-10 20:55:57

hakjoon
Member
From: Arlington, VA
Registered: 2004-07-29
Posts: 1,634
Website

Re: article images

What did you put in the article image field? It should take the image ID, from your post it sounds like you put the article ID.
<txp:article_image/> should display the image even if the plugin is not working if you supplied the right information in the article image field.

There are also other article image plugins but wet’s should do what you are looking for.


Shoving is the answer – pusher robot

Offline

#14 2006-09-10 21:09:44

elduderino
Member
From: Whitstable. south-East England
Registered: 2006-01-02
Posts: 175
Website

Re: article images

Hi there,

No sorry ive just read my post and i did write “ article no..” but i meant image no. Im definatley getting that bit right!

Offline

#15 2006-09-11 21:00:43

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

Re: article images

Are you sure you entered the right ID? (an existing one?)
Can you display the image and the thumbnail by using <txp:image id=".." /> and <txp:thumbnail id=".." /> on your page? (.. being the ID you entered in the article image field?)

Offline

#16 2006-09-12 18:00:00

elduderino
Member
From: Whitstable. south-East England
Registered: 2006-01-02
Posts: 175
Website

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> &#183;</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

Board footer

Powered by FluxBB