Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#289 2009-02-10 22:23:02
Re: [plugin] [ORPHAN] upm_image: More powerful image display
Stuart, while I’ve not followed your query in detail, you might want to take a look at the gallerific jquery plugin which I only recently discovered and seems very similar to Galleria. I’ve not used it myself (yet) but on that page under point 4 it says:
<div class="caption">
(Any html can go here)
</div>
If you’re having problems with getting the line break out of the caption, you might want to try one of the search and replace txp-plugins (e.g. Jukka’s rah_replace or pax_grep) to swap a placeholder for a <br />
. I realise it’s not great form suggesting all these untried variants and plugins, but maybe this bit of thinking aloud with you is some help…
TXP Builders – finely-crafted code, design and txp
Offline
#290 2009-02-10 22:35:17
Re: [plugin] [ORPHAN] upm_image: More powerful image display
Thank you both. Some options to look at. I believe I have the prospect of getting my head around the Cycle plug-in for the textpattern.com site so that’s something to look forward to. :)
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline
#291 2009-02-23 12:21:44
Re: [plugin] [ORPHAN] upm_image: More powerful image display
I’m having a problem using the <txp:upm_img_date />
tag when called by <txp:upm_image />
.
There are a lot of images in a single page and I want to break the page up to show a sub-heading according to month of uploading.
I tried to use if_different
around the date but it only showed up once, so I added the date to every image (commented out) and it shows every image as being uploaded on the same date – 01/01/70.
You can see it if you view source on this page: http://www.annekeothavong.co.uk/gallery
Any help appreciated
Stu
Offline
#292 2009-02-23 13:03:53
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: [plugin] [ORPHAN] upm_image: More powerful image display
Hmm. That sounds like the date info isn’t getting passed for some reason. I’ll check on my side of things.
Offline
#293 2009-02-23 13:08:18
Re: [plugin] [ORPHAN] upm_image: More powerful image display
Thanks. I did check the database to be sure and the dates are correctly stored there.
Offline
#294 2009-03-01 23:43:43
Re: [plugin] [ORPHAN] upm_image: More powerful image display
Could anyone provide an example of ‘wrapform’ and ‘<txp:upm_img_list>’ usage? I’m trying to use lightbox while having multiple images assigned to article. Solution seems to be within wrapform but can’t get it right.
Last edited by debeljko (2009-03-01 23:46:02)
Offline
#295 2009-03-11 13:44:52
- Gallex
- Member
- Registered: 2006-10-08
- Posts: 1,313
Re: [plugin] [ORPHAN] upm_image: More powerful image display
hakjoon wrote:
in your article form
<txp:upm_article_image form="lightbox" />
in the lightbox form
<a href="<txp:upm_img_full_url />" rel="lightbox[galerii]">
<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’m using this solution in my lightbox gallery and it works very well except one thing: titles not showing up into big pictures. could anybody help me here?
and a second question: i group a set of related images by adding manually a group name between square brackets in the rel attribute rel="lightbox[galerii]"
like it said in a lightbox tutorial
but, is it possible to insert the image category name “automatically” (dynamically) between those square brackets? something like this rel="lightbox[image category name]"
then i could create multiple gallerys with one code
Last edited by Gallex (2009-03-11 14:23:34)
Offline
#296 2009-03-12 09:26:30
- Gallex
- Member
- Registered: 2006-10-08
- Posts: 1,313
Re: [plugin] [ORPHAN] upm_image: More powerful image display
Gallex wrote:
and a second question: i group a set of related images by adding manually a group name between square brackets in the rel attribute
rel="lightbox[galerii]"
like it said in a lightbox tutorial
but, is it possible to insert the image category name “automatically” (dynamically) between those square brackets? something like thisrel="lightbox[image category name]"
then i could create multiple gallerys with one code
solved this by custom field.
<a href="<txp:upm_img_full_url />" rel="lightbox[<txp:custom_field name="gallery" />]">
<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>
and works like a charm.
but now, in some reason, it doubles the created articles. take a look
article form i’m using:
<div class="article">
<h3><txp:permlink><txp:title /></txp:permlink></h3>
<txp:upm_article_image form="lightbox" />
</div>
any ideas?
Offline
#297 2009-03-12 12:44:07
- Gallex
- Member
- Registered: 2006-10-08
- Posts: 1,313
Re: [plugin] [ORPHAN] upm_image: More powerful image display
Gallex wrote:
but now, in some reason, it doubles the created articles. take a look
…because i had created so many of them myself. dear me… ;) case closed
but, this title question is still up.
it seems to me that this is a css issue really…
if you look at big image source, the <span id=“caption”/> is not active here:
<div id="imageDetails">
<span id="caption"/>
<span id="numberDisplay" style="">Image 3 of 4</span>
</div>
have you idea, why?
Offline
#298 2009-03-12 15:14:00
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: [plugin] [ORPHAN] upm_image: More powerful image display
Because it’s not closed?
Offline
#299 2009-03-12 16:17:49
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: [plugin] [ORPHAN] upm_image: More powerful image display
You don’t need to use a custom field if you want to have the image category, as there’s a tag for that: <txp:upm_img_category />
. See help doc for details.
The title attribute is supposed to be applied to the link and not the image itself, in order for Lightbox to pick it up. :)
So:
<a href="<txp:upm_img_full_url />" rel="lightbox[<txp:upm_img_category />]" title="<txp:upm_img_caption />">
<img src="<txp:upm_img_thumb_url />" alt="<txp:upm_img_alt />" width="<txp:upm_img_thumb_width />" height="<txp:upm_img_thumb_height />" />
</a>
Offline
#300 2009-03-13 09:21:13
- Gallex
- Member
- Registered: 2006-10-08
- Posts: 1,313
Re: [plugin] [ORPHAN] upm_image: More powerful image display
bingo! thank’s a lot mary!
Offline