Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#349 2009-12-09 07:06:07

jstubbs
Moderator
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

Re: [plugin] [ORPHAN] upm_image: More powerful image display

Hi Els, I tried that already but it didn’t work. Here is what should happen:

<div class="panel">
<div class="panel-wrapper">
<h2 class="title">title1</h2>
<img src="/images/30.jpg" width="500" height="394" alt="home" title="bla" />
</div>
</div>
<div class="panel">
<div class="panel-wrapper">
<h2 class="title">title 2</h2>
<img src="/images/31.jpg" width="500" height="394" alt="home" title="bla bla" />
</div>
</div>

… and so on. Note the sequential images.

There are 4 images tied to the article image field but there could be 3 or 2. The code should loop through each image and create the panel wrapper as above.

Offline

#350 2009-12-09 09:49:46

pieman
Member
From: Bristol, UK
Registered: 2005-09-22
Posts: 491
Website

Re: [plugin] [ORPHAN] upm_image: More powerful image display

Not quite sure where you’re hoping to get the h2 title from, but how about something like this:

<txp:if_individual_article>
slider wrapper..
<txp:article limit="1">
  <txp:upm_article_image form="slider-images" />
</txp:article>
/slider wrapper...
</txp:if_individual_article>

Form slider-images:


<div class="panel">
  <div class="panel-wrapper">
    <h2 class="title">title 2</h2>
    <img src="<txp:upm_img_full_url />" alt="<txp:upm_img_alt />" title="<txp:upm_img_caption />" width="<txp:upm_img_full_width />" height="<txp:upm_img_full_height />" />
  </div>
</div>

Offline

#351 2009-12-09 13:48:58

jstubbs
Moderator
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

Re: [plugin] [ORPHAN] upm_image: More powerful image display

Awesome Stuart, thanks. Works a charm. Funny how easy it is to forget how to do things – I’d written how to do it earlier and forgot ;-)

The h2 title is from the Coda Slider 2.0 – its used for the panel tab name. What’s that plugin called that allows one to add a digit i.e 1, 2, 3, 4 each time? adi_calc? That would be great for an individual article slider – tabs with a number instead of a title.

Edit: Yep, its adi_calc. What a great plugin. I’ll write how to get the Coda Slider going on TXP Tips. Thanks all for the help!

Last edited by jstubbs (2009-12-09 14:02:14)

Offline

#352 2009-12-17 13:22:44

rathersplendid
Plugin Author
From: London
Registered: 2008-05-02
Posts: 163
Website

Re: [plugin] [ORPHAN] upm_image: More powerful image display

I don’t know if this has been mentioned before, if it has I apologise.

I think I might have found a problem with the plugin, specifically its use with rss_auto_excerpt; I posted a new article on my blog this morning which had an animated gif, when I viewed the article after posting it, only the content that preceded the animated gif was present and absolutely nothing else. I had to remove the offending gif, which displayed correctly I might add.

It seems that the problem only occurred when my code, which has been used many times before, was inserted and for some reason the auto excerpt plugin cannot handle it.
<txp:upm_image image_id="123" form="itemImage" />

It’s not a huge bother, but thought i might mention it.


Admin Themes Prometheus | Stung | <txp:coder/
My Portfolio | ɹǝpuɐz.com | @MrMartineau
<txp:coder /> – Convert your designs into Textpattern-based websites
jQuery Style | @jquerystyle

Offline

#353 2009-12-17 17:20:33

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

Re: [plugin] [ORPHAN] upm_image: More powerful image display

The best thing to do when you run into tag/template problems (whether built-in or plugin) is to take a look at your page’s source and tag trace.

Offline

#354 2010-04-27 17:57:38

alanfluff
Member
From: Ottawa, Canada
Registered: 2008-09-15
Posts: 222
Website

Re: [plugin] [ORPHAN] upm_image: More powerful image display

Hello,

I hope the answer to this is not so obvious that I look more stupid than normal…

Pretty please, does somebody lovely know how I get this functionality with this brilliant plugin?

Right now I can get a thumbnail that when clicked will popup to show the full image using the standard code:

<txp:upm_image type="popup" image_id="13" class="image" />

I looked at the docs and failed to find how/if I could make the target for clicking some text, rather than a thumbnail, so I tried this construction:

<txp:upm_image type="popup" image_id="13" class="image">click this to see the popup img</txp:upm_image>

but it doesn’t create a link, just the plain-text click this to see the popup img.

Does anyone know if there is a way to achieve this — in case relevant, I am also using the brilliant upm_img_popper plugin — any clues most appreciated!

Cheers, -Alan


At LAST I’ve cheerfully donated to the core devs at #TXP. I only wish I were able to give more. Thanks to the devs and ALL fellow TXPers. -A

Offline

#355 2010-04-27 18:21:39

molly
Member
From: Virginia
Registered: 2004-08-15
Posts: 44
Website

Re: [plugin] [ORPHAN] upm_image: More powerful image display

Hi Alan – try setting up a custom form that has the elements you want. You can then use the image popper to insert your image with the code that references the form you created. I hope this makes sense.

Offline

#356 2010-04-27 18:25:27

masa
Member
From: Asturias, Spain
Registered: 2005-11-25
Posts: 1,091

Re: [plugin] [ORPHAN] upm_image: More powerful image display

I recently asked a similar question Launch pop-up image from plain text links and got a few good suggestions.

Offline

#357 2010-04-27 18:56:44

alanfluff
Member
From: Ottawa, Canada
Registered: 2008-09-15
Posts: 222
Website

Re: [plugin] [ORPHAN] upm_image: More powerful image display

Thanks molly and Martin!

I’ll go and try with this wisdom under my belt and see what I can do — much appreciated. Cheers, -Alan


At LAST I’ve cheerfully donated to the core devs at #TXP. I only wish I were able to give more. Thanks to the devs and ALL fellow TXPers. -A

Offline

#358 2010-04-28 15:12:50

mattmikulla
Member
From: Nashville Tennessee
Registered: 2004-08-25
Posts: 281
Website

Re: [plugin] [ORPHAN] upm_image: More powerful image display

Is there a txp tag that gets and outputs an article_image url yet or is it best to use upm_image still?


Art Rogue – Fine Art Photography

Offline

#359 2010-04-28 15:37:11

alanfluff
Member
From: Ottawa, Canada
Registered: 2008-09-15
Posts: 222
Website

Re: [plugin] [ORPHAN] upm_image: More powerful image display

I’m not aware of one Matt, but I’m not the most knowledgeable…


At LAST I’ve cheerfully donated to the core devs at #TXP. I only wish I were able to give more. Thanks to the devs and ALL fellow TXPers. -A

Offline

#360 2010-04-28 23:21:33

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

Re: [plugin] [ORPHAN] upm_image: More powerful image display

I don’t believe there is a built-in tag yet, no.

Offline

Board footer

Powered by FluxBB