Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#733 2010-07-30 08:03:38

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

Re: smd_gallery: super-flexible gallery generator

chrisgoodhue wrote:

one column displays thumbnails of images in the “design” category. Clicking any of them should open up the “design” lighbox. Same goes for “photography.”

The lightbox pops up for me on both groups, in Firefox. The only thing that may be a bug or a feature (depending on your stance) is that you can navigate between the groups once you have popped up the lightbox. So if you want to separate them you do need to get the rel="fancybox-{category}" thing working (assumption: that you have assigned the images to separate Image categories!)

What am I missing regarding what you expect vs what you’re seeing?


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

#734 2010-07-30 14:28:47

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

Re: smd_gallery: super-flexible gallery generator

hi bloke,

the lightbox is working because currently i have rel=“fancybox” in place instead of rel“fancybox-{category}

when i use rel=“fancybox-{category}” i don’t have any response from the lightbox. the images are assigned to specific categories. this is the weirdest thing.

Offline

#735 2010-07-30 14:41:45

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

Re: smd_gallery: super-flexible gallery generator

chrisgoodhue wrote:

when i use rel=“fancybox-{category}” i don’t have any response from the lightbox.

That’s very strange indeed. When you add rel="fancybox-{category}" to your site and refresh the page, what does TXP spit out in the image/anchor tags HTML?

Long shot: does it work with rel="fancybox_{category}" or, since you’re using two smd_gallery tags, hard-code this into one: rel="fancybox-design" and this into the other: rel="fancybox-photography".

EDIT: what versions of smd_lib/smd_gallery are you using?

Last edited by Bloke (2010-07-30 14:42:39)


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

#736 2010-07-30 15:28:42

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

Re: smd_gallery: super-flexible gallery generator

this is what txp spits out, which i’m assuming is what’s supposed to happen:

<a rel=“fancybox-photography” href=“http://chrisgoodhue.com/chris/images/12.jpg” title=“PHOTOGRAPHY: “>
<img src=“http://chrisgoodhue.com/chris/images/12t.jpg” alt=”“ width=“263” height=“150” /> </a>

i’m using version 0.62 of smd_gallery and .036 of smd_lib

Offline

#737 2010-07-30 15:36:35

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

Re: smd_gallery: super-flexible gallery generator

chrisgoodhue wrote:

this is what txp spits out, <snip>

Yup, perfect. But you need to update your jQuery start script as I mentioned a few posts ago. You’re currently doing this:

$("a[rel=fancybox]").fancybox({
...
});

which won’t match when you are using fancybox-something :o) You need to find some other way of starting your fancybox script off; either explicitly starting two of them:

$("a[rel=fancybox-design], a[rel=fancybox-photography]").fancybox({
...
});

Or by adding a class to all your anchors in the gallery Form and using:

$(".imgclass").fancybox({
...
});

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

#738 2010-07-30 16:02:19

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

Re: smd_gallery: super-flexible gallery generator

that did the trick!!

thanks so much for your help. i’ve learned a lot

Offline

#739 2010-08-05 11:29:36

Gallex
Member
Registered: 2006-10-08
Posts: 1,315

Re: smd_gallery: super-flexible gallery generator

my aim is quite similar to chrisgoodhue, but i’m using shadowbox and i want to wrap the whole code into smd_gallery tags

my template:

<txp:smd_gallery category="linnud" thumbsize="100">
   <a rel="shadowbox" href="{url}"
     title="{caption}">
 <txp:thumbnail id="{id}" />
</a>
</txp:smd_gallery>

almost get to work beside thumbsize=“100” and next/previous links won’t appear below of large images.
what’s wrong in my code?

Offline

#740 2010-08-05 13:52:04

Gallex
Member
Registered: 2006-10-08
Posts: 1,315

Re: smd_gallery: super-flexible gallery generator

Gallex wrote:

next/previous links won’t appear below of large images.
what’s wrong in my code?

ok, this one i get to work – needed to use square brackets

<txp:smd_gallery thumbsize="100">
   <a rel="shadowbox[linnud]" href="{url}"
     title="{caption}">
<txp:thumbnail id="{id}" />
 </a>

but this thumbsize staff….

Offline

#741 2010-08-06 09:55:23

Bijay
Member
Registered: 2010-07-02
Posts: 17

Re: smd_gallery: super-flexible gallery generator

Hi Bloke .. i have used an smd_gallery plugins.. On my “slidebar” form i have used this code…

 <script type="text/javascript">
myShow1 = new Slideshow("slideshow1",
  { hu: "<txp:site_url />images/",
    images: [{imglist}],
    captions: [{alt}],
    classes: ["prev","next","active"],
    type: "fade"
  });
</script>

But i didn’t get the result. it shows “myShow1” error when i turn on firebug..
So can you tell me how should i solve this problem and make plugin to work..
thanx

Offline

#742 2010-08-06 10:22:16

Gallex
Member
Registered: 2006-10-08
Posts: 1,315

Re: smd_gallery: super-flexible gallery generator

this is the page i’m working

i would ike to display only first image from both albums. and here is code i’m using:

page:

<txp:smd_gallery category="linnud, eksponaadid" form="shadowbox" thumblimit="1" thumbsize="380,300" onchange="category_title" onchangewraptag="h3" grouptag="div" groupclass="pildid" />

form:

{onchange:category_title}
{grouptagstart}
<a rel="shadowbox[category]" href="{url}" title="{caption}">
{object}
</a>
{grouptagend}

everything ok, but it doesn’t recognize the image category correctly. it outputs same images in both albums

the html output

<a rel="shadowbox[category]" href="http://www.hm-kodulehed.ee/images/44.jpg" title="Hallpea-rähn">
<img src="http://www.hm-kodulehed.ee/images/44t.jpg" alt="emaslind männioksal" width="380" height="300" />
</a>

but should be

<a rel="shadowbox[linnud]" href="http://www.hm-kodulehed.ee/images/44.jpg" title="Hallpea-rähn">
<img src="http://www.hm-kodulehed.ee/images/44t.jpg" alt="emaslind männioksal" width="380" height="300" />
</a>

any ideas what could be wrong in my code?

Offline

#743 2010-08-07 08:54:38

Gallex
Member
Registered: 2006-10-08
Posts: 1,315

Re: smd_gallery: super-flexible gallery generator

switched to slimbox2 and get it work propely

Offline

#744 2010-08-11 11:16:26

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

Re: smd_gallery: super-flexible gallery generator

Mr B,

I’ve managed to get a Showcase slideshow working on my front page which has its own section. Trrrrific.

Now, just as a special challenge I’m hoping to add a separate slideshow for each article in a 12 page section.

Maybe I’m not thinking correctly but can I get a slideshow, pulling the images from the images linked to the article rather than a gallery, ie the first page has images A, B, C and the second D, E, F, the third G, H I etc.

I want the images & captions to be separate from any other text ie so these slideshows would be placed outside each article on the page.

Or do I create 12 separate galleries and somehow link these to the individual page where each article appears?

Not quite sure if this question is just plain dumb or profound.

Offline

Board footer

Powered by FluxBB