Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#85 2006-07-14 02:22:59
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: [plugin] [ORPHAN] upm_image: More powerful image display
Yes, wrapform. It’s missing from the help doc. You’d do:
<txp:upm_article_image form="form" wrapform="wrapform" />
In the form, you’d place the tags for details for the individual image. Wrapform allows you to further customize what goes around the list. :)
Recent svn changes now scream if tags aren’t defined properly.
4.0.4 should fix it up.
Offline
Re: [plugin] [ORPHAN] upm_image: More powerful image display
hello all, i am trying to get an image caption being displayed from out of additional, image revolving php code, wrapped in a form, looking like this:
<code><txp:php>
// written by jayrope july 2006 : toooooot! use at your own risk.
global $jrpimages;
$jrpimgarlength = count($jrpimages)-1;
function jrp_rI ($jrpinput) {
$jrprN = rand(0,$jrpinput);
return $jrprN;
}
$jrpcI = jrp_rI ($jrpimgarlength);
echo ‘<txp:upm_image image_id=’.$jrpimages[$jrpcI].’ />’;
echo ‘<txp:upm_img_caption />’;
</txp:php>
</code>
the image then displays nicely, but the caption doesn’t.
what am i doing wrong here?
A hole turned upside down is a dome, when there’s also gravity.
Offline
#87 2006-07-20 19:21:05
- jrphelps
- Member
- From: Fort Worth, TX
- Registered: 2006-07-13
- Posts: 30
Re: [plugin] [ORPHAN] upm_image: More powerful image display
When using upm_image as a link wrapper, would it be possible to add a rel
attribute? If not, I would recommend that as a feature request. What I would like to do is use upm_image and zem_article_image to automate my portfolio with lightbox. So, basically, I would just write an excerpt and description and put the id’s of the images in the article image field, and then my form would display those images as links. When the links are clicked (thus the need for rel= as that’s how Lightbox works) the images show up in lightbox. ‘Twould be even better if I could hide the subsequent images from display but show them in the lightbox. I think it could be done, though.
If anyone has thoughts on that, I would welcome them.
Offline
Re: [plugin] [ORPHAN] upm_image: More powerful image display
jayrope wrote:
hello all, i am trying to get an image caption being displayed from out of additional, image revolving php code
txp:upm_img_caption is meant to be used inside a form which is parsed by upm_image[_custom]. No output will be rendered on direct invocation. From the plugin help:
The tags available to you from within this form are fairly self-explanatory. They will only work when the form is called by upm_image or upm_article_image.
Last edited by wet (2006-07-20 19:58:50)
Offline
Re: [plugin] [ORPHAN] upm_image: More powerful image display
@jrphelps:
No need for zem_article_image just use upm_article_image
in your article form
<txp:upm_article_image form="lightbox" />
in the lightbox form
<a href="<txp:upm_img_full_url />" rel="lightbox">
<img src="<txp:upm_img_thumb_url />" alt="<txp:upm_img_alt />" title="<txp:upm_img_caption />"
width="<txp:upm_img_thumb_width />" height="<txp:upm_img_thumb_height />" />
</a>
I think that should work. I wasn’t sure what you meant by hiding teh subsequent images.
Last edited by hakjoon (2006-07-20 20:01:01)
Shoving is the answer – pusher robot
Offline
#90 2006-07-20 20:13:46
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: [plugin] [ORPHAN] upm_image: More powerful image display
When using upm_image as a link wrapper, would it be possible to add a rel attribute?
Jamie: yes, I can do that. Just so you know, you can work around that now by using a custom form (see the plugin help). :)
Offline
Re: [plugin] [ORPHAN] upm_image: More powerful image display
uhm of course i call the image revolver from a form. so that
menas mean that i have to call a form out of a form that is being called out of an article entry… ???
./->in this case….
to me thaT seems alkwardly difficult. why not
<code><txp:image caption=“1”></code>
???
damn if i knew how i would write it myself….
wet wrote:
txp:upm_img_caption is meant to be used inside a form which is parsed by upm_image[_custom]. No output will be rendered on direct invocation. From the plugin help:
The tags available to you from within this form are fairly self-explanatory. They will only work when the form is called by upm_image or upm_article_image.
Last edited by jayrope (2006-07-20 20:57:14)
A hole turned upside down is a dome, when there’s also gravity.
Offline
Re: [plugin] [ORPHAN] upm_image: More powerful image display
jayrope wrote:
uhm of course i call the image revolver from a form. so that menas mean that i have to call a form out of a form that is being called out of an article entry…
Probably, yes.
Offline
Re: [plugin] [ORPHAN] upm_image: More powerful image display
wet & earlier posts about same subject:
thanx very much for your indications.
the solution for a random image revolver using upm_image to display captions along with images looks like this now:
in article
<code><txp:php>global $jrpimages;$jrpimages = array (57,37,30);</txp:php>
<txp:output_form form=“art_rndImg” /></code>
in form “art_rndImg”
<code><txp:php>
// jayrope july 2006 : toooooot! use at your own risk.
global $jrpimages;
$jrpimgarlength = count($jrpimages)-1;
function jrp_rI ($jrpinput) {
$jrprN = rand(0,$jrpinput);
return $jrprN;
}
$jrpcI = jrp_rI ($jrpimgarlength);
$jrpimgnow = $jrpimages[$jrpcI];
echo ‘<txp:upm_image image_id=’.$jrpimgnow.’ form=“art_rndImg2” />’;
</txp:php></code>
and in form “art_rndImg2”
<code><img src=”<txp:upm_img_full_url />” alt=”<txp:upm_img_alt />” />
<i><txp:upm_img_caption wraptag=“h4” /></i></code>
A hole turned upside down is a dome, when there’s also gravity.
Offline
Re: [plugin] [ORPHAN] upm_image: More powerful image display
Documentation and code differ in details:
From the help texts for <txp:upm_img_text />
, <txp:upm_img_caption />
, <txp:upm_img_alt />
:
- escape=“value”
- Default value: unset.
From the code:
function upm_img_caption($atts)
{
[...]
extract(lAtts(array(
'class' => '',
'escape' => 'html',
[...]
etc.
Offline
#95 2006-08-08 03:55:26
- progre55
- Member
- Registered: 2006-05-02
- Posts: 668
Re: [plugin] [ORPHAN] upm_image: More powerful image display
Is there a way to use this plug in to just display a list of images associated with a particular category (not as thumbnails) but just hyperlinks to the images?
Any guidance would be appreciated as I search to find a solution to this item.
In the end all I am looking for is a list
CATEGORY NAME A
Image 1
Image 2
Image 3
Image 4
CATEGORY NAME B
Image 1a
Image 2a
Image 3a
Image 4a
I do not want all the image catgeories displayed, just the categories that I identify …
Thank you.
Last edited by progre55 (2006-08-08 03:58:16)
Offline
#96 2006-08-08 03:58:31
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: [plugin] [ORPHAN] upm_image: More powerful image display
Is there a way to use this plug in to…
Nope.
I don’t know of a plugin that does. Hope you can find something.
Offline