Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#13 2007-06-06 16:51:23
- herrin.blue
- Member
- From: Sometimes around Scotland
- Registered: 2007-05-26
- Posts: 10
Re: list newest articles w/pictures only
Els wrote:
On your page, in the left column:
<ul>
<txp:article form="justtheimage" />
</ul>
Form ‘justtheimage’:
<li>
<txp:permlink><txp:article_image thumbnail="1" /></txp:permlink>
</li>
Hi Els,
I’ve tried to do what you suggested and it worked! thanks!
My problem now is that I can’t get the thumbnail of my picture though I’ve uploaded them textpattern shows the full size image… how come? did I make any mistake?
Thanks for helping!
Offline
#14 2007-06-06 17:19:26
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: list newest articles w/pictures only
Did you upload them through ftp? This only works if you created the thumbnail in the ‘image’ screen.
EDIT: If you really need to create them yourself and ftp them, then make sure you name them like this: if the large image is renamed to 24.jpg, the thumbnail should be 24t.jpg.
Last edited by els (2007-06-06 17:21:57)
Offline
#15 2007-06-06 17:28:06
- herrin.blue
- Member
- From: Sometimes around Scotland
- Registered: 2007-05-26
- Posts: 10
Re: list newest articles w/pictures only
That’s what I did, Els.
I uploaded the two pictures with the same name, using a t after the thumbnail image. So you have 24.jpg and 24t.jpg
I can even see them under my image section but then, when I call them on my default page, it does not display the image called 24t.jpg but the full size image…
I’m lost! I can post the code if you like.
Thanks
Offline
#16 2007-06-06 17:37:43
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: list newest articles w/pictures only
So you did not use txp to upload your images at all? If so, could you try uploading one image and it’s thumbnail in the ‘images’ tab and see if it works for that one?
Offline
#17 2007-06-06 18:00:32
- herrin.blue
- Member
- From: Sometimes around Scotland
- Registered: 2007-05-26
- Posts: 10
Re: list newest articles w/pictures only
Yes yes, I did it.
this is the code in the default page:
<ul>
<txp:article_custom form=“justtheimage” allowoverride=“0” pgonly=“0” sort=“Posted desc” status=“4”/>
</ul>
this is the form:
<txp:permlink><txp:article_image thumbnail=“1” class=“article_image_thumb”/></txp:permlink>
and this is the article form:
<txp:article_image class=“article_image” thumbnail=“1” />
<div id=“posttitle”><txp:title /></div>
<div id=“date”><txp:posted gmt=“1” /></div>
<txp:body />
<br/></div>
In the advanced options for the article, I’ve chosen to attach the following image:
http://127.0.0.1/nuovosito/images/15.jpg
whose thumbnail is http://127.0.0.1/nuovosito/images/15t.jpg uploaded using txtpatter (locally).
So now, why on both forms (article and justtheimage) the displayed image is
http://127.0.0.1/nuovosito/images/15.jpg
and not
http://127.0.0.1/nuovosito/images/15t.jpg
I can’t read the mistake anywhere!
Thanks
Offline
#18 2007-06-06 19:12:13
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: list newest articles w/pictures only
Can you try one more thing? In the article image field, just enter ‘15’ (without the quotes).
Offline
#19 2007-06-12 18:08:26
- herrin.blue
- Member
- From: Sometimes around Scotland
- Registered: 2007-05-26
- Posts: 10
Re: list newest articles w/pictures only
Hi Els,
I’ve tried this option as well, but no way. Could it be that some plug in is in conflict with some other?
It seems to me that textpattern is not recognizing the thumbnails, though they appear to be uploaded.
Thanks!
Offline
#20 2007-06-12 21:41:33
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: list newest articles w/pictures only
You can try disabling your plugins and if it works then, activate them one by one, to find out which one is the culprit. Also try following the guidelines in this FAQ: Diagnosing template problems.
The only thing that doesn’t seem right in your code is thumbnail="1"
in the individual article form. But that wouldn’t cause the thumbnail not to display…
Offline