Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-02-12 04:30:35

camello
Member
From: Lisbon
Registered: 2006-01-15
Posts: 63
Website

I need to use <txp:thumbnail /> whithout having to assign an id=""

I, I’m using <txp:article form=“default” listform=“excerpt” />, because it is a newspaper. So at the front-page list I want to apear only the “excerpt” form. whereas at the article form=“default” one gets the full article with the “normal size” image.

The problem is that I want to have a default “excerpt” form with <txp:thumbnail />, so it can show the specific thumbnail of that specific article image.

I just cant do it. It needs me to put an <thumbnail id=“number of the article image”/>.

But that way I cannot have a form to work with any article. I have always to put the specific image id on it!

Is there anyway of puting the <txp:thumbnail /> automaticaly getting, by default, the specific thumbnail of the image shown at the “default” form of a specific article?

Or, if not, is there any plugin? Does bau_article_thumb do it?

Thanks

camello

Offline

#2 2006-02-12 13:16:31

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

Re: I need to use <txp:thumbnail /> whithout having to assign an id=""

Try wet_article_thumb.

Wrap your code in < code > < /code > tags to display it on this forum (without the spaces).

Offline

#3 2006-02-12 13:56:56

camello
Member
From: Lisbon
Registered: 2006-01-15
Posts: 63
Website

Re: I need to use <txp:thumbnail /> whithout having to assign an id=""

Ok, this is my “Headlines” form code. It is suposed to show a supertitle, title, a brief description of the article, and a small thumbnail of the article photo. When one clicks the title, the page will be redirected to the complete article page.

<code>

<STYLE type=“text/css”>

.abovetitle { color: red; font-size: 70%; font-weight: bold; }
.title a { color: #0066CC; font:arial ; font-size: 100%; font-weight: bold; text-decoration: none; }
.superlead { color: black; font-size: 100%; }

</STYLE>

<p></p>
<p><SPAN class=“abovetitle “><txp:custom_field name=“custom1” /></span></p>

<p><SPAN class=“title a”> <txp:permlink> <txp:title /> </txp:permlink> </span></p>

<p><SPAN class=“superlead”> <txp:custom_field name=“custom2” /> </span> </p>

<txp:thumbnail id=“5” />

</code>

As you can see, i have to assign a specific image number to the thumbnail, otherwise, it won’t show any image at all ! The problem is that this way I cannot have a default form for all articles. I have allways to assign a specific thumbnail id for every diferent article !

Last edited by camello (2006-02-12 13:58:54)

Offline

#4 2006-02-12 18:50:50

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

Re: I need to use <txp:thumbnail /> whithout having to assign an id=""

<txp:thumbnail /> is no good for this. Install the plugin wet_article_thumb and use the tag that goes with it.

Offline

#5 2006-02-12 23:13:28

camello
Member
From: Lisbon
Registered: 2006-01-15
Posts: 63
Website

Re: I need to use <txp:thumbnail /> whithout having to assign an id=""

Ok, I’ve installed wet_article_thumb, and used the <txp:wet_article_thumb/>.

But it still does not show any image when on a article list.

This is the form of the article when it appears on a list:

<code>
<STYLE type=“text/css”>

.abovetitle { color: red; font-size: 70%; font-weight: bold; }
.title a { color: #0066CC; font:arial ; font-size: 100%; font-weight: bold; text-decoration: none; }
.superlead { color: black; font-size: 100%; }

</STYLE>

<p></p>
<p><SPAN class=“abovetitle “><txp:custom_field name=“custom1” /></span></p>

<p><SPAN class=“title a”> <txp:permlink> <txp:title /> </txp:permlink> </span></p>

<p><SPAN class=“superlead”> <txp:custom_field name=“custom2” /> </span> </p>

<txp:wet_article_thumb/>

<code/>

Do you think anything is missing on my form code. Or should I put any info about the thumb on the page?

Thanks for helping

camello

Last edited by camello (2006-02-12 23:13:45)

Offline

#6 2006-02-13 07:39:53

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

Re: I need to use <txp:thumbnail /> whithout having to assign an id=""

Are you sure that

  • you have a space before the closing slash in <txp:wet_article_thumb />?
  • you assigned the article image in the right way? In the article image field should be either the id (5) or the image name (image.jpg).
  • you activated the plugin?
  • you are pointing to the right form in your article tag?

If you can’t find anything else you overlooked, then you’d better ask in the plugin thread.

Offline

#7 2006-02-13 07:53:01

camello
Member
From: Lisbon
Registered: 2006-01-15
Posts: 63
Website

Re: I need to use <txp:thumbnail /> whithout having to assign an id=""

Hi,

Thanks again. Your very kind!

Its done !!!
I was not assigning the image on the article image field the way I should.

It was a simple and acurate suggestion! I was putting /images/5.jpg. The image appeared on the estended article but the thumb did not apear on the listed articles!

Thanks

Last edited by camello (2006-02-13 07:57:37)

Offline

Board footer

Powered by FluxBB