Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#16 2014-09-26 18:08:04

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,395
Website GitHub Mastodon Twitter

Re: How do I create an article-based image gallery?

Doesn’t sooGallery need jquery to work?


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#17 2014-09-26 18:57:56

Viktor
Member
From: Nürnberg
Registered: 2008-09-12
Posts: 21
Website

Re: How do I create an article-based image gallery?

That, I don’t know but in the example there’s no link to jquery in the source code.

Offline

#18 2014-09-26 21:59:30

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,319

Re: How do I create an article-based image gallery?

As soon as I filled in lorem ipsum for titles and caption it started working. I’m not a JS expert so can’t explain you why. (Does somebody know? I’d like to learn why.) So that’s one way. Second one is: delete those lines from the JS you don’t intend to use.


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#19 2014-09-27 03:59:30

maverick
Member
From: Southeastern Michigan, USA
Registered: 2005-01-14
Posts: 976
Website

Re: How do I create an article-based image gallery?

I’m puzzled. soo_image (plugin) created JavaScript galleries. But Jeff’s gallery demo referred to was designed to show what could be done with the (then new) core image tags. He said that the core tags replaced most of what soo_image could do. As best as I can recall, the gallery demo doesn’t use JavaScript. Am I mistaken?

Edit
Okay, pulling foot from mouth. I just reread the page. It does reference a rudimentary JavaScript.

Last edited by maverick (2014-09-27 04:03:45)

Offline

#20 2014-09-27 13:27:35

Viktor
Member
From: Nürnberg
Registered: 2008-09-12
Posts: 21
Website

Re: How do I create an article-based image gallery?

Thanks Uli for that hint. It’s quiet odd that it doesn’t work without. Could somebody who knows JS tell me in which way the code must be changed in order to work with or without captions?

Offline

#21 2014-09-27 18:56:05

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,319

Re: How do I create an article-based image gallery?

Viktor wrote #284266:

[…] tell me in which way the code must be changed in order to work with or without captions?

Jeffs solution requires that you’re consistent with what you do. You either want titles and captions. Then you’ve to fill in all these info fields (right, on the Images panel) for all of the images you want in galleries with that script. Or you don’t want to work with titles and captions. Then your JS has to be shortened to this:

function sooGallery(showThis) {
   if (document.getElementById) {
      document.getElementById('sooGalleryMain').src = showThis.href;
      return false;
   }
   return true;
}

There’s nothing in between, as far as I can tell.


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#22 2014-09-28 10:43:17

Viktor
Member
From: Nürnberg
Registered: 2008-09-12
Posts: 21
Website

Re: How do I create an article-based image gallery?

ok. Thank you very much for the help!

Offline

Board footer

Powered by FluxBB