Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#709 2010-06-28 13:22:15

kvnmcwebn
Member
From: Ireland
Registered: 2007-01-27
Posts: 724
Website

Re: smd_gallery: super-flexible gallery generator

Hi,
Yeah that looks great but I’m stuck with it.
The main problem is when i put

thumblimit="1"  

it renders

thumblimit="1" 

in the html.
So not sure why that is.. Is it supposed to be inside something else?

Also yes the object tag would put the image id in as the anchor even if there was no thumb so that should work great if i can get the thumblimit=“1” going.

edited to say ….. ok i see now that the object tag should just render the one thumbnail but still can’t get thumblimit=“1” to work.

Last edited by kvnmcwebn (2010-06-28 13:26:59)


its a bad hen that wont scratch itself.
photogallery

Offline

#710 2010-06-28 13:26:59

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,453
Website GitHub

Re: smd_gallery: super-flexible gallery generator

kvnmcwebn wrote:

Is it supposed to be inside something else?

It’s an smd_gallery tag attribute. Try it there!


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#711 2010-06-28 13:36:18

kvnmcwebn
Member
From: Ireland
Registered: 2007-01-27
Posts: 724
Website

Re: smd_gallery: super-flexible gallery generator

steph sorry that’s where it is but it just renders like a piece of text


its a bad hen that wont scratch itself.
photogallery

Offline

#712 2010-06-28 13:43:28

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,453
Website GitHub

Re: smd_gallery: super-flexible gallery generator

kvnmcwebn wrote:

it just renders like a piece of text

Odd. Is your smd_gallery tag inside an article? And is the article set to process textile? That might be getting in the way. Try wrapping the tag with == signs or switching textile off for that article.

Failing that, post your smd_gallery tag here and I’ll see if I can fathom it out.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#713 2010-06-28 13:43:28

kvnmcwebn
Member
From: Ireland
Registered: 2007-01-27
Posts: 724
Website

Re: smd_gallery: super-flexible gallery generator

doh…


its a bad hen that wont scratch itself.
photogallery

Offline

#714 2010-06-28 13:47:15

kvnmcwebn
Member
From: Ireland
Registered: 2007-01-27
Posts: 724
Website

Re: smd_gallery: super-flexible gallery generator

ok got it now perfect. Thanks so much for your time. I owe you a favor.


its a bad hen that wont scratch itself.
photogallery

Offline

#715 2010-07-05 10:30:57

Katalonian
Member
From: Baku, Azerbaijan
Registered: 2010-04-18
Posts: 219
Website

Re: smd_gallery: super-flexible gallery generator

Bloke

u are just f*cking great)
don’t stop to create your amazing plugins for txp)

Last edited by Katalonian (2010-07-05 10:42:21)


<txp:txp_me />

Offline

#716 2010-07-10 19:50:25

chrisgoodhue
Member
Registered: 2010-06-06
Posts: 20

Re: smd_gallery: super-flexible gallery generator

i am trying to display a singleimage to open a gallery, but i do not want to use a thumb from an image in the gallery.
how do i do this?

Offline

#717 2010-07-13 10:55:40

detail
Member
From: geez, I seem to be in NZ
Registered: 2010-07-13
Posts: 177
Website

Re: smd_gallery: super-flexible gallery generator

Howdi!

I’ve been searching around for a slideshow that does a few simple things: full image fade, no thumbnails, navigation and title both over the proposed 700 × 400px image and both hideable. Showcase seems an eminently elegant solution, other than that annoying bouncing on Demo 1.

I’ve had a look at the adaptation to Slideshow2 that proge55 made about 2 years ago, but haven’t managed to customise Showcase to my txp site. (Jquery-1.4.2.js and jQuery.showcase.2.0.js are both installed.)

I’ve been trying to work out how to get the info produced by the page template

<div id="top_image" 
<txp:smd_gallery  category="daily-photo"  form="front_gallery" 
debug=“1” 
  combo="imglist:{id}{ext}"
  collate="quote:{imglist}:{alt}" />
</div>

to fit into the form=“front_gallery”

<script type="text/javascript">
<div class="slideshow" id="showcase1">
 <img src="<txp:site_url />images/{id#1}.jpg"
     alt="{alt#1}" width="{width#1}" height="{height#1}" />
</div>
$("top_image").showcase({
    images: [{imglist}],
    description: [{alt}],
    classes: ["prev","next","active"],
    type: "fade"

I have the outline of the showcase ie the correct number of image indicators in the frame which show the images are cycling through as well at the title frame popping up but there are no changing images or titles. There is the first image #1 which I can manually change to any of the other images. Basically the images are there somewhere but aren’t loading.

There’s a message on the debugging panel which says:

Tag error:  <txp:smd_gallery  category="daily-photo"  form="front_gallery" 
debug=“1” 
  combo="imglist:{id}{ext}"
  collate="quote:{imglist}:{alt}" /> ->  Textpattern Warning: Attribute values must be quoted  on line 984

			SELECT DISTINCT txp_image.name,txp_image.id,txp_image.alt,txp_image.caption,txp_image.category,txp_image.author,txp_image.date,txp_image.ext,txp_image.w,txp_image.h,txp_image.thumb_w,txp_image.thumb_h,txp_image.thumbnail
			FROM txp_image
			WHERE (1=1 AND  (txp_image.category IN ('daily-photo')) ) ORDER BY txp_image.category asc
			LIMIT 0, 99999

Any ideas what crucial steps have been omitted or the logic just stuffed up?

Last edited by detail (2010-07-14 05:43:33)

Offline

#718 2010-07-14 14:36:01

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,453
Website GitHub

Re: smd_gallery: super-flexible gallery generator

chrisgoodhue wrote:

i am trying to display a singleimage to open a gallery, but i do not want to use a thumb from an image in the gallery.

Sorry for the delay getting back to you. Try using the objectform attribute like this:

<txp:smd_gallery category="my_cat" thumblimit="1" objectform="other_img">
<a rel="lightbox-{category}" href="{url}">
{object}
</a>
</txp:smd_gallery>

And in your Form other_img:

<txp:thumbnail id="the_id_of_the_image_you_want_to_show" />

(or you can use the name attribute if you prefer here)


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#719 2010-07-14 14:46:19

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,453
Website GitHub

Re: smd_gallery: super-flexible gallery generator

detail

Sounds like you’re on the right lines and I think smd_gallery is doing what you expect (I think the error message is due to the curly quotes around the debug attribute?)

I guess you need to have some jQuery to ‘start’ the animation off so you probably need to wrap your jQuery code from smd_gallery in:

jQuery(function() {
   ... showcase code here...
});

which will kick off the animation once the DOM is loaded. Try that and see how far you get.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#720 2010-07-15 04:24:41

detail
Member
From: geez, I seem to be in NZ
Registered: 2010-07-13
Posts: 177
Website

Re: smd_gallery: super-flexible gallery generator

Thanks Bloke. I did manage to nut that one out, eventually, and I’m almost there.

I can see the default showcase frame with the navigation blobs showing the correct number of images. They show that the images are cycling through. And when you move the cursor over the frame the title panel comes out of hiding as it’s supposed to do, except there’s no title on that panel. Showcase seems to be up and running. Except …

There is an image but it’s that first one that I specified on my front_gallery form using

<img src="<txp:site_url />images/{id#1}.jpg" alt="{alt#1}" width="{width#1}" height="{height#1}" />

and it’s static. And isn’t showing a title.

When I use the old Safari Web inspector it shows that images: [{imglist}] is coming up with a beautiful comma separated list of 6.jpg, 9.jpg, 10.jpg, etc. The alts are also wonderfully comma separated.

But it appears that none of the listed .jpgs or alts are loading. It doesn’t seem that 10.jpg is sufficient address to load the actual image.

And another thought, I’m not using a collate="1" instruction anywhere.

Any further thoughts?

Otherwise it’s a lovely day here in Perth, 20º in the middle of winter and it’s nice to look out the window. Cheers.

Last edited by detail (2010-07-15 04:26:21)

Offline

Board footer

Powered by FluxBB