Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#241 2008-05-15 12:30:21
Re: [plugin] [ORPHAN] upm_image: More powerful image display
idoremus wrote:
Colak,
Thank you for your patience. I am building my first site. I had seen an example of a website (built without a database) that used a background image in the header. On this site they linked to the image through the CSS file. I was trying to accomplish the same task using Textpattern and attempted to see how the style sheet would link to the images folder. I tried to use “url(/images/19.jpg )“without success.
When I searched for help in the forums I ran across “upm_image” and thought maybe this would be the missing link. That is where I am at. Any suggestions would be appreciated.
Thanks again,
Ian
hi Ian, if /images/19.jpg did not work this is a separate problem which I hope someone more knowledgeable than me will enlighten us about but if you try url(http://yoursite.tld/images/19.jpg )
and it does not work ether, then there is a problem with the css.
Last edited by colak (2008-05-15 12:31:39)
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
#242 2008-05-15 12:33:20
Re: [plugin] [ORPHAN] upm_image: More powerful image display
colak wrote:
and it does not work ether, then there is a problem with the css.
…or textpattern isn’t installed at the root.
Offline
#243 2008-05-15 17:09:38
- idoremus
- Member
- From: NW United States
- Registered: 2008-04-16
- Posts: 19
Re: [plugin] [ORPHAN] upm_image: More powerful image display
Success!
I had an unclosed div. I was then able to get it to work with the absolute path. In the end I am using: url(‘../images/19.jpg’).
Cheers, Ian
Offline
#244 2008-05-17 19:54:58
Re: [plugin] [ORPHAN] upm_image: More powerful image display
Hi, could anyone help me solve this.
I’m using the plugin for lightbox;
<a href="<txp:upm_article_image><txp:upm_img_full_url /></txp:upm_article_image>" rel="lightbox"><txp:upm_article_image type="thumbnail" /></a>
and it works nicely except when I assign multiple images to a single article. Then <txp:upm_article_image><txp:upm_img_full_url /></txp:upm_article_image>
part generates URLs of all images assigned to that article. Like…. http://mysite.tld/images/12.jpghttp://mysite.tld/images/13.jpghttp://mysite.tld/images/14.jpg
….. and if I remove enclosing <txp:upm_article_image>
tags from <txp:upm_img_full_url />
tag I end up just with URL of the section. So how should I configure things to lose redundant URLs?
Masa’s suggestion from 23rd page won’t work either.
Last edited by debeljko (2008-05-17 19:57:36)
Offline
#245 2008-05-17 20:19:33
Re: [plugin] [ORPHAN] upm_image: More powerful image display
debeljko, try adding limit="1"
to upm_article_image, if you don’t want lightbox to all images. Then it would show only one URL. In example:
<a href="<txp:upm_article_image limit="1"><txp:upm_img_full_url /></txp:upm_article_image>" rel="lightbox"><txp:upm_article_image type="thumbnail" /></a>
Or you could add lightbox to all articles by wrapping that whole snippet with <txp:upm_article_image>
.
Last edited by Gocom (2008-05-17 20:20:58)
Offline
#246 2008-05-17 20:43:35
Re: [plugin] [ORPHAN] upm_image: More powerful image display
Hi Gocom, thanx for quick reply!
Never mind, found my mistakes, it works now:)
Last edited by debeljko (2008-05-17 21:06:31)
Offline
#247 2008-08-30 12:42:05
- Dandruff
- Member
- Registered: 2007-03-16
- Posts: 18
Re: [plugin] [ORPHAN] upm_image: More powerful image display
This is such a powerful and flexible plugin. Upm_image is the first thing I always add to a fresh textpattern install.
I was curious about something though… is it possible to output how much images are in an article?
Something simple like:
- Article Title (5 images)
Offline
#248 2008-08-30 13:24:09
Re: [plugin] [ORPHAN] upm_image: More powerful image display
If all image ids are listed as comma separated article images, this would work in the article form:
<txp:title /> (<txp:php>global $thisarticle; echo count(do_list($thisarticle['article_image']));</txp:php> Images)
Offline
#249 2008-08-30 13:57:15
- Dandruff
- Member
- Registered: 2007-03-16
- Posts: 18
Re: [plugin] [ORPHAN] upm_image: More powerful image display
Thank you very much, I’m going to try this right now!
Offline
#250 2008-09-01 10:29:14
Re: [plugin] [ORPHAN] upm_image: More powerful image display
This doesn`t work for some reason. Could it be possible i cannot use a custom field in this case
or did i do anything else wrong?
<txp:wet_for_each_image category=”<txp:custom_field name=“medialist_02_category” />”>
<txp:upm_image type=“popup” image_id=”{id}”/>
</txp:wet_for_each_image>
when i use the above code i always get a list of all images uploaded (no matter wich category they are in) and this:
upm_image: supplied image id is invalid, it must be a single numeric value.
any help anyone?
Offline
#251 2008-09-22 18:22:00
Re: [plugin] [ORPHAN] upm_image: More powerful image display
I’m haing a bit of a hard time getting upmimage to display what I want.
desired output:
<div id="1"><img src="/images/1.gif" /></div>
<div id="2"><img src="/images/2.gif" /></div>
my code:
<txp:upm_article_image form="formtest2"/>
and in formtest2
<div id="<txp:upm_img_id />"><txp:upm_article_image limit="1"/></div>
but this outputs
<div id="1"><img src="/images/1.gif" />
<img src="/images/2.gif" /></div>
<div id="2"><img src="/images/1.gif" />
<img src="/images/2.gif" /></div>
adding limit=“1” to the form results in the first image being shown twice. is there any way of getting the output I want?
Last edited by kemie (2008-09-22 18:23:27)
~~~~~~~~~~~~~| monolinea.com | pixilate.com | istockphoto.com/kemie |~~~~~~~~~~~~~
Offline
#252 2008-09-22 18:29:39
Re: [plugin] [ORPHAN] upm_image: More powerful image display
Try
<div id="<txp:upm_img_id />"><txp:asy_wondertag><txp:image id="<txp:upm_img_id />" /></txp:asy_wondertag></div>
in formtest2
.
Offline