Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-08-22 13:45:45

alfette
Member
From: Cologne, Germany
Registered: 2006-08-22
Posts: 20

upm_image / captions

Dear all,

I hope my English is good enough to explain my problem.
I have searched through the threads, and some answers helped me a lot. But I have still one question which I could not solve.

I would like to have an article with
1. the articles title,
2. a various number of images with their captions and
3. the body of the article

First I made an form for the article:
<code>
<txp:title />
<txp:upm_article_image form=“projektbild” />
<txp:body />
</code>

The article itself has in his image tag a various number of images (f.e. image_id1,image_id2)

The form “projektbild” looks like this:
<code>
<txp:upm_article_image />
<txp:upm_img_caption />
</code>

The output looks like this:

1. Title
2. all images of the article (in this case two images)
3. caption from image id1
4. a second time all images of the article
5. caption from image id2

But should be like this:

1. Title
2. image id1
3. caption from image id1
4. image id2
5. caption from image id2

I know that it must be something very dumb and bet for forgivness for my simple question. Maybe someone can save me from my neverending trials…

(I use textpattern 4.0.3, upm_image 0.4.4 and upm_image_popper 1.1)

Thanks a lot! Alfette

Offline

#2 2006-08-22 14:48:10

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: upm_image / captions

“projektbild”:

<p><img src="<txp:upm_img_full_url />" width="<txp:upm_img_full_width />" height="<txp:upm_img_full_height />" alt="<txp:upm_img_alt />" /><br />
<txp:upm_img_caption /></p>

:)

Offline

#3 2006-08-22 17:59:04

alfette
Member
From: Cologne, Germany
Registered: 2006-08-22
Posts: 20

Re: upm_image / captions

Dear Mary,
this worked perfect.
Thanks very very much! And even so for this great plugin. I hope I will learn much more about it, and I think your answer will help me to understand more about how textpattern works.

Have a nice evening and good luck, Alfette

Offline

Board footer

Powered by FluxBB