Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#697 2010-05-29 07:50:07

the_ghost
Plugin Author
From: Minsk, The Republic of Belarus
Registered: 2007-07-26
Posts: 907
Website

Re: smd_gallery: super-flexible gallery generator

Is it possible to user replacement for my new columns in txp_image table? I’ve added column code_left and use some value in it – how do i show this value inside smd_gallery form, like {code_left}?


Providing help in hacking ATM! Come to courses and don’t forget to bring us notebook and hammer! What for notebook? What a kind of hacker you are without notebok?

Offline

#698 2010-05-29 08:17:01

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 10,562
Website GitHub

Re: smd_gallery: super-flexible gallery generator

the_ghost wrote:

how do i show this value inside smd_gallery form, like {code_left}?

Exactly. Just make sure you tell the plugin about the new column via the columns attribute.


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

#699 2010-06-02 10:32:48

RedFox
Member
From: Netherlands
Registered: 2005-03-25
Posts: 782
Website

Re: smd_gallery: super-flexible gallery generator

sort="random" doesn’t work on ‘root’ server … !?

OK … maybe it has been asked before but I’ve a problem with the browser cache and the plug-in … I think!

And it’s a bit weird. When this site was on a subdirectory on the same server everything was working fine. Yesterday the site went ‘online’ and now the images at the top doesn’t sort at random any more. The plug-in (!) still renders the same image. Only when I disable the cache I get a new image … only for that moment.

The code:

<txp:smd_gallery category="banner" form="banner" limit="1" sort="random" />

The form:

<img src="{url}" alt="{alt}" title="{alt}" width="{width}" height="{height}" />

Any help is appreciated.

Last edited by RedFox (2010-06-03 07:18:02)

Offline

#700 2010-06-18 01:59:57

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

Re: smd_gallery: super-flexible gallery generator

Hi I’m havin’ a problem creating an additional slideshow with different dimensions.
In the slideshow css file I’ve copied all the slideshow classes to slideshowthree with new dimensions. But the slideshow just shows the alternate content image. So i must be missing something but i can’t see anything in the css file that i’m missing.

<txp:smd_gallery controller = "{duration: 2000, transition: Fx.Transitions.Elastic.easeOut}"
  category="3colslideshow" form="3colslide"
  combo="imglist:{id}{ext}"
  collate="quote:{imglist}:{alt}" />

3colslide form:

<div class="slideshowthree" id="slideshowthree">
	<img src="<txp:site_url />images/{id#1}.jpg" alt="{alt#1}"/>
</div>
<script type="text/javascript">
	var myShow = new Slideshow('slideshow', [{imglist}], {hu: '/images/', resize: false, duration: 2000 });
</script>

its a bad hen that wont scratch itself.
photogallery

Offline

#701 2010-06-18 03:14:09

renobird
Member
From: Gainesville, Florida
Registered: 2005-03-02
Posts: 786
Website

Re: smd_gallery: super-flexible gallery generator

Brilliant! I’ve done simple galleries/slideshows with this before.
Today, I’m working on a bit of a complicated slideshow and whaddya know – smd_gallery has everything I need.

Thanks Stef!


Tom

Offline

#702 2010-06-25 12:31:15

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

Re: smd_gallery: super-flexible gallery generator

trying to trouble shoot a slideshow that’s not working using smd. Rechecked everything not sure what the problem is:

Txp gernerates this debbugging code:

Tag error:  <txp:smd_gallery controller = "{duration: 2000, transition: Fx.Transitions.Elastic.easeOut}"category="homeslideshow" form="homeslideshow"
combo="imglist:{id}{ext}"collate="quote:{imglist}:{alt}" /> ->  Textpattern Notice: Unknown tag attribute: controller  on line 699

the js in the html renders like this:

<script type="text/javascript"> var myShow = new Slideshow('slideshow', ["5.jpg","4.jpg"], {hu: '/images/', resize: false, duration: 2000 });
</script>

All my links are in the head. Not sure how to trouble shoot this. Any ideas?


its a bad hen that wont scratch itself.
photogallery

Offline

#703 2010-06-25 12:48:27

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 10,562
Website GitHub

Re: smd_gallery: super-flexible gallery generator

kvnmcwebn wrote:

Unknown tag attribute: controller on line 699

For some reason your smd_gallery tag is thinking that your javascript definition for the controller is a tag attribute. Probably something to do with quotes in the tag. Can you post your actual smd_gallery tag please and any associated forms?


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

#704 2010-06-25 14:42:54

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

Re: smd_gallery: super-flexible gallery generator

thanks steph,

here’s my form:

<div class="slideshow" id="slideshow">
	<img src="<txp:site_url />images/{id#1}.jpg" alt="{alt#1}"/>
</div><script type="text/javascript">
var myShow = new Slideshow('slideshow', [{imglist}], {hu: '/images/', resize: false, duration: 2000 });
</script>

and my article:

<txp:smd_gallery
 controller = "{duration: 2000, transition: Fx.Transitions.Elastic.easeOut}"
  category="homeslideshow" form="homeslideshow"
  combo="imglist:{id}{ext}"
  collate="quote:{imglist}:{alt}" />

its a bad hen that wont scratch itself.
photogallery

Offline

#705 2010-06-25 15:12:31

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 10,562
Website GitHub

Re: smd_gallery: super-flexible gallery generator

kvnmcwebn wrote:

controller = “{duration: 2000, transition: Fx.Transitions.Elastic.easeOut}”

Hmmm, what’s that supposed to be? controller isn’t an smd_gallery attribute, which is why it’s complaining.

You’re not using the word controller in your form so it’s not like it’s even a botched custom combo definition. What’s it supposed to control? And where did you get the example code from? I’m not very familiar with slideshow; maybe somebody else here is?


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

#706 2010-06-25 15:25:13

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

Re: smd_gallery: super-flexible gallery generator

What’s it supposed to control?

good question… I don’t know exactly….it’s just mootools slideshow attributes that controls the length of the fades and stuff. I got it off the slideshow mailing list/forum actually I’ve used the exact same article on another site and it’s working with or without the controller attributes.
Also I’ve now taken it out of the site in question and the error message does go away thanks.
The slideshow is still not working though and i am at a loss as to why. Must be something silly on my end. Thanks again steph.


its a bad hen that wont scratch itself.
photogallery

Offline

#707 2010-06-28 11:06:30

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

Re: smd_gallery: super-flexible gallery generator

Ok I gave up on the slideshow for and am using slimbox for my galleries now.

For a basic thumbnail-lightbox gallery is working well with this form:

<a  rel="lightbox-galleryname" href="<txp:site_url />images/{id}{ext}" alt="{alt}" title="A picture of {title}" height="{height}" width="{width}">   
 <txp:thumbnail id="{id}" />
</a>

But I would like to output only one thumbnail per gallery:

To do this I need to render this html – only the first anchor has an image link – the rest are empty( i know):

<a  rel="lightbox-galleryname" href="../images/66.jpg" alt="" title="A
 picture something" height="326" width="540"><img src=".../images/
66t.jpg" alt="" title="some title" width="100" height="90" /></a>
<a  rel="lightbox-galleryname" href="../images/67.jpg" alt="" title="A
picture something" height="326" width="540"><!-- blank, no foto here--
></a>
<a  rel="lightbox-galleryname" href="../images/68.jpg" alt="" title="A
 picture something" height="326" width="540"><!-- blank, no foto here--></a>

Can I do this using collation mode and the (name} attribute?

Last edited by kvnmcwebn (2010-06-28 11:07:02)


its a bad hen that wont scratch itself.
photogallery

Offline

#708 2010-06-28 11:35:30

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 10,562
Website GitHub

Re: smd_gallery: super-flexible gallery generator

kvnmcwebn wrote:

But I would like to output only one thumbnail per gallery:

Does thumblimit="1" work? You’ll probably need to replace <txp:thumbnail id="{id}" /> in your form with {object} so the plugin can put the thumbnail in only when it needs (i.e. on the first link).


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

Board footer

Powered by FluxBB