Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#196 2008-08-21 21:37:43

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,215
Website

Re: smd_gallery: super-flexible gallery generator

OK can you turn whatever is outputting all the preamble off?

Offline

#197 2008-08-21 21:41:11

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

Re: smd_gallery: super-flexible gallery generator

Done!

Offline

#198 2008-08-22 00:18:43

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,215
Website

Re: smd_gallery: super-flexible gallery generator

OK your scripts were the problem I loaded the scripts from my server and everything works… feel free to download the scripts I’ve referenced, load them back up to your server and add your style.

Last edited by mrdale (2008-08-22 01:54:34)

Offline

#199 2008-08-22 05:10:04

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

Re: smd_gallery: super-flexible gallery generator

@mrdale > thanks a lot!

[edit]
mrdale did get <aro_slideshow /> working. The .js files of the Slideshow folder I downloaded weren’t correct … so be aware which files you install! Go to this page > electricprism.com/aeron/slideshow 1/ for the real thing!

There is still the task to get <smd_gallery /> working with Slideshow. To be continued …
[edit]

Last edited by RedFox (2008-08-24 07:41:44)

Offline

#200 2008-08-24 00:01:16

xzamen
Member
Registered: 2007-02-12
Posts: 18

Re: smd_gallery: super-flexible gallery generator

This is a great plugin. I switched from smd_slimbox looking for more functionality.
Now I need to have sort of menu from image categories (including nested categories) and when a category is clicked the thumbnails from that category are displayed. There will be hundreds of images in each category so the pagination will be necessary as well.
Can someone suggest a good way how to do that? Any help is appreciated. Please point me to the right direction if this kind of question was already asked before. Thanks

Offline

#201 2008-08-24 08:26:22

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 12,485
Website GitHub

Re: smd_gallery: super-flexible gallery generator

xzamen wrote:

Now I need to have sort of menu from image categories (including nested categories) and when a category is clicked the thumbnails from that category are displayed.

If I understand your intention correctly, daikw has been working on something like this. You might try direct contact or searching for related posts in this and other threads; some of the groundwork may well have been laid out for you.


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

Hire Txp Builders – finely-crafted code, design and Txp

Offline

#202 2008-08-25 11:47:56

xzamen
Member
Registered: 2007-02-12
Posts: 18

Re: smd_gallery: super-flexible gallery generator

Thank you Bloke, that looks similar to what I’m trying to achieve. I need to find a way to dynamically substitute category according to context. Is it possible?
For example I have a list of linked image categories and when the link is clicked the plugin should output images from that category. I came up with something like this:
<txp:category_list type="image" /><txp:smd_gallery category="<txp:category />" />
But the result is weired. It shows all images from all cats and what’s crazy it repeats every image for 9 times… Isn’t it possible to use something like category="<txp:category />"? It seems that plugin simply ignores that…

Last edited by xzamen (2008-08-25 12:48:10)

Offline

#203 2008-08-25 12:39:40

xzamen
Member
Registered: 2007-02-12
Posts: 18

Re: smd_gallery: super-flexible gallery generator

Here’s an example from my test site. The 9 images issue is not present here, I guess I did something wrong on the original site, but per-category output doesn’t work, it just throws all images… This is the code I used:
<h3>Photo</h3><h4><txp:category /></h4><txp:category_list type="image" /><ul id="thumbs"><txp:smd_gallery form="photos" category="<txp:category />" /></ul>
And the form:
<li><a href="{url}"><img alt="" src="{thumburl}"/></a>{name}</li>

I would be thankful if someone can help me with this.

Offline

#204 2008-08-25 12:52:53

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

Re: smd_gallery: super-flexible gallery generator

xzamen, you’re attempting to nest txp tags. This isn’t possible with txp versions lte 4.0.6. (It will be in 4.0.7.) I don’t know if your tags will work, but at the moment I’d recommend trying asy_wondertag for nesting tags.


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

Offline

#205 2008-08-25 13:18:24

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

Re: smd_gallery: super-flexible gallery generator

Also, get rid of any tag faults that might be on your page, I see a superfluous " and the rest of a tag />, these can confuse the parsers.


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

Offline

#206 2008-08-25 14:36:53

xzamen
Member
Registered: 2007-02-12
Posts: 18

Re: smd_gallery: super-flexible gallery generator

uli, thank you so much! You were very helpful! asy_wondertag does the trick. Great.
Those superfluous characters were the result of incorrect tag nesting.
Now I think smd_gallery turns to something totally almighty :)

Offline

#207 2008-08-25 16:40:42

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

Re: smd_gallery: super-flexible gallery generator

xzamen wrote:

Now I think smd_gallery turns to something totally almighty :)

The Cr creator will like to hear that ;D)

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

Offline

#208 2008-08-25 20:51:59

xzamen
Member
Registered: 2007-02-12
Posts: 18

Re: smd_gallery: super-flexible gallery generator

This is a little offtopic, but do you know a good replacement of <txp:category_list type="image" /> for displaying a linked list of image categories? I need to exclude some cats and also apply formatting for nested cats. Usually such plugins work with article cats only…

Offline

#209 2008-08-25 22:00:12

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

Re: smd_gallery: super-flexible gallery generator

I know about two plugins offering image category listing, upm_category_image and mah_lib_category_array. Have a look if one of them supports what you need.


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

Offline

#210 2008-08-27 23:03:32

xzamen
Member
Registered: 2007-02-12
Posts: 18

Re: smd_gallery: super-flexible gallery generator

Uli, thanks for the links. upm_category_image doesn’t seem to be able to do what I want and mah_lib_category_array is not a tag plugin. Right now I don’t want to dive into php for this and also it seems there’s no way to apply formatting for nested cats. So I stick to <txp:category_list type="image" /> for now.
Another question on smd_gallery if you don’t mind. How do I show all images, but exclude images that doesn’t belong to any category (empty)?

Last edited by xzamen (2008-08-27 23:40:27)

Offline

Board footer

Powered by FluxBB