Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: bos_image_display and bos_image_category for simple image gallery
No, in help text there isn’t that option: only in my development version, that I will release as soon as possible.
Sortdir is not implemented yet, but I was thinking about it. Nice you named it: I’ll try to implement it for the next release.
Thank you and bye!
Z-
Offline
Re: bos_image_display and bos_image_category for simple image gallery
Version 3.0beta released.
Please see the first post. Thanks for any test.
Bye!
Z-
Offline
#15 2006-02-28 17:53:09
- lee
- Member
- From: Normandy, France
- Registered: 2004-06-17
- Posts: 831
Re: bos_image_display and bos_image_category for simple image gallery
Hello Zanza, I’m using <code><txp:bos_image_display cat=“flowers” /></code> in the default template, with a bunch of image in image category flowers, but nothing is showing.
Offline
Re: bos_image_display and bos_image_category for simple image gallery
Hello Lee.
As for the original txp:image_display tag, nothing is shown by default in a page template: this tag is used to display the image you click on the list from txp:image_index (in my case, txp:bos_image_index), that you should use in the same page.
This is no good. Just for this reason I added the default attribute to the bos_image_display tag. You may use it to define:
- a id number of an image you want to display as first image (default=“nn”); or better:
- default=“first”, to display the first image in cat=“flowers” accordingly to the sort criteria used.
So try to add the default attribute, the bos_image_index tag and see if it’sworking as expected! :)
Thank you for checking, bye!
Z-
Last edited by Zanza (2006-02-28 18:27:35)
Offline
Re: bos_image_display and bos_image_category for simple image gallery
I thought that having the default=“first” set by… default in the bos_image_display tag may help! After all I can’t imagine a situation when I don’t want the default turned on.
I updated the plugin so now it should work out of the box with the first image of the category automatically displayed. You can always change the default to a specific image id if needed.
Bye
Z-
Last edited by Zanza (2006-03-01 11:40:06)
Offline
#18 2006-03-01 07:03:48
- lee
- Member
- From: Normandy, France
- Registered: 2004-06-17
- Posts: 831
Re: bos_image_display and bos_image_category for simple image gallery
Many thanks for the help, got it working now.
Offline
Re: bos_image_display and bos_image_category for simple image gallery
Nice to hear it works. :)
I added a feature that may be useful: default=“random” option. Now the bos_image_display tag can be used as a standalone tag to display random images from a defined category everywhere in page template. Updated version number to 3.1. See first post.
Bye
Z.
Offline
#20 2006-03-05 08:00:09
- helge
- New Member
- Registered: 2006-03-05
- Posts: 6
Re: bos_image_display and bos_image_category for simple image gallery
Hi everybody!
Maybe I found a tiny bug “unwanted feature” in this great plugin ;)
This is the behaviour of bos_image_display wrap according to help
<blockquote>wrap<br />
A wraptag for the whole image+title+caption block.</blockquote>
So I tried to use a div in order to have a div around the img and the caption. But this was the output:
<code><div class=“img”><img src=“3.jpg” style=“height:661px;width:445px” alt=”“ /></div><p>Caption</p></code>
To my mind, either the help or the code is incorrect. Do you agree?
Regards,
Helge
Last edited by helge (2006-03-05 08:01:01)
Offline
Re: bos_image_display and bos_image_category for simple image gallery
It’s true, my mistake.
I needed a wrap around the img to style it, so this is the way I made it work. The help is incorrect.
Now the problem is: should I simply correct the help or should I change the behavior (eventually adding a wrapper only for the image)?
Take in account that by default the image is always showed. So, there is no-need to have a wrapper as attribute for the whole block: in the page template you should simply use a div around the bos_image_display tag.
So I’m thinking to just correct the help.
I should add a wrapper/container attribute only when I add a way to not have the image displayed (i.e., also adding a keyword=“noshow”, that I don’t think useful).
If you have suggestions, you’re welcome.
Thank for the debug! :)
Z-
Offline
Re: bos_image_display and bos_image_category for simple image gallery
I made some fix now that I had the time. V.3.2 is on.
Bye
Z-
Offline
Re: bos_image_display and bos_image_category for simple image gallery
I just have to say that this is really the best image plugin for textpattern I have found. I have tried everything, from Max Ziebell’s plugin (which was made before there were plugins!) all through album_pattern and the very nice rss_image_pop. This is just what I have been looking for. Thanks.
Offline
Re: bos_image_display and bos_image_category for simple image gallery
Wow… I think you’re really exaggerating, but thank you. :)
I’m happy this suits you.
I’m back from my week out of office, and will try to make a better example/documentation online asap.
Bye
Z-
Offline