Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#97 2006-08-08 04:00:22
- progre55
- Member
- Registered: 2006-05-02
- Posts: 668
Re: [plugin] [ORPHAN] upm_image: More powerful image display
Arghhhhhhh …
But thanks for the quick reply.
Offline
#98 2006-08-14 04:03:43
- brighthearted
- New Member
- Registered: 2005-11-21
- Posts: 8
Re: [plugin] [ORPHAN] upm_image: More powerful image display
Ok, first of all, amazing plugin!
I can teach my clients how to upload images through TxP’s content/images interface, but I’m afraid having them inject the following code into an HTML template every single time they upload a photo is out of the question.
<code><txp:upm_image image_id=”# goes here” form=“photos” /></code>
My question is, is there anyway to use “if” statements, or some other PHP magic to somehow automate this process. Otherwise to keep even a very simple listing of images updated requires a webmaster.
Is what I’m asking making sense? Is there a better way of achieving this? I just need a list of images to be output, based on what images the client uploads…
<code>
<a href=“1.jpg”><img src=“1t.jpg” /></a>
<a href=“2.jpg”><img src=“2t.jpg” /></a>
<a href=“3.jpg”><img src=“3t.jpg” /></a>
</code>
Basically a solution where the HTML code is created once, and you can forget about it, so the client is self-sufficient.
Thanks,
Brad
Last edited by brighthearted (2006-08-14 04:06:27)
Offline
#99 2006-08-14 04:10:46
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: [plugin] [ORPHAN] upm_image: More powerful image display
Can’t really say without knowing more about what you mean.
Is this for a photo blog or photos accompanying articles? Then they can stick the tag(s) into their article.
Offline
#100 2006-08-14 06:04:34
- brighthearted
- New Member
- Registered: 2005-11-21
- Posts: 8
Re: [plugin] [ORPHAN] upm_image: More powerful image display
Sorry, I should have included a more specific example.
Here is the actual site I’m currently developing with TxP. This is the gallery page, just a simple list of thumbnail / links.
<a href=“http://aaron.brighthearted.com/gallery/”>http://aaron.brighthearted.com/gallery/</a>
As it stands, the client can upload photos through TxP’s image interface, but isn’t techsavy enough to go touch the code/tags in the page/template everytime he uploads a photo. Is there a way around this?
Last edited by brighthearted (2006-08-14 06:05:15)
Offline
#101 2006-08-14 06:12:45
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: [plugin] [ORPHAN] upm_image: More powerful image display
What you’ll probably want to do is either use the gallery-like built-in tags (image_index & image_display) or plugin, and use a category/categories. Then all he has to do is assign his image to a category when he uploads it, and it’ll appear. :)
This one was just made to be improvements on the tags like article_image, image and thumbnail.
Offline
#102 2006-08-18 21:26:41
- dimfish
- Member
- Registered: 2006-06-01
- Posts: 72
Re: [plugin] [ORPHAN] upm_image: More powerful image display
Hi Mary
Do I just use <code><txp:upm_img_caption wraptag=“p” /></code> in my form to display a caption?
Offline
#103 2006-08-19 00:19:15
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: [plugin] [ORPHAN] upm_image: More powerful image display
In a form for the tag, yes, not your article form (check the “Customizing Output” section of the help doc). i.e:
<txp:upm_image form="my_customized_form" />
my_customized_form
<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
#104 2006-08-19 10:47:44
- dimfish
- Member
- Registered: 2006-06-01
- Posts: 72
Re: [plugin] [ORPHAN] upm_image: More powerful image display
Thanks Mary.
Can’t seem to get it to work.
I’m calling form “newsitem” in my page
newsitem:
<code>
<h3><txp:title /></h3>
<span class=“posted”>Posted: <txp:posted format=”%d %b %Y” /> by <txp:author /></span>
<txp:upm_image form=“customupmimage” />
<txp:body />
</code>
customupmimage:
<code>
<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>
</code>
Am I barking up the right tree?
Last edited by dimfish (2006-08-19 10:48:12)
Offline
#105 2006-08-19 14:05:43
Re: [plugin] [ORPHAN] upm_image: More powerful image display
you’ll probably need upm_article_image instead of upm_image.
Offline
#106 2006-08-19 17:50:53
- dimfish
- Member
- Registered: 2006-06-01
- Posts: 72
Re: [plugin] [ORPHAN] upm_image: More powerful image display
- )
Offline
#107 2006-09-08 12:04:59
Re: [plugin] [ORPHAN] upm_image: More powerful image display
I have two images in the article_image-field (49,60) and try to reach only the second one, so I do:
<code><txp:upm_article_image type=“image” limit=“1” offset=“1” /></code>
but it allways shows the first image (49). Without the limit=“1”:
<code><txp:upm_article_image type=“image” offset=“1” /></code>
it shows the second image (60), but if there are three or more images in the list, they will be sown too – that is not what I want. I only want to show the second image out auf the article-image-list.
Is it a bug or am I doing something wrong?
Offline
#108 2006-09-10 16:55:57
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: [plugin] [ORPHAN] upm_image: More powerful image display
Sounds like a bug, but I’ll need to check. Are you using “the latest available version (0.4.4), by the way?
Last edited by Mary (2013-01-24 17:27:42)
Offline