A new photo album manager : Gallery
Re: A new photo album manager : Gallery
step by step:
1) create a new template "topgallery". this can be a copy of the one you normally use and delete the things you dont want to see in the top level gallery.
2) go to the backend of the top level gallery (the place you can set the title and comment etc)
3) specify which template this top level gallery should use. Set it to "topgallery"
1) create a new template "topgallery". this can be a copy of the one you normally use and delete the things you dont want to see in the top level gallery.
2) go to the backend of the top level gallery (the place you can set the title and comment etc)
3) specify which template this top level gallery should use. Set it to "topgallery"
Re: A new photo album manager : Gallery
ah, allright sorry. i got it now. i thought a way much complicate
.
Jos, how can i access the big image of the cover of a gallery? can't find that in the wiki
.
i want to make another *overview*template with the gallery title and one big (cover) image.
in {$images} i just can find
[thumb] => uploads/images/GalleryThumbs/7-6.jpg
but the path to that big image would be great!

Jos, how can i access the big image of the cover of a gallery? can't find that in the wiki

i want to make another *overview*template with the gallery title and one big (cover) image.
in {$images} i just can find
[thumb] => uploads/images/GalleryThumbs/7-6.jpg
but the path to that big image would be great!
Last edited by nicmare on Wed Jun 16, 2010 4:35 pm, edited 1 time in total.
Re: A new photo album manager : Gallery
For a "album-cover" the big picture is not available. You can create a template with "large" thumbs ;)
Re: A new photo album manager : Gallery
haha, what a nice walkaround! this fills out my needs! thank you very much. be excited! currently i am developing a nice small pictures website with a very special feature
. i will post it at the end of next week!
before i forget it: please add features:
1. quality of thumbnails (looks bad at big thumbnails
)
2. renaming templates (is currently impossible?!)
it does not work when i try it in cms_module_gallery_templateprops
thank you

before i forget it: please add features:
1. quality of thumbnails (looks bad at big thumbnails

2. renaming templates (is currently impossible?!)
it does not work when i try it in cms_module_gallery_templateprops
thank you

Last edited by nicmare on Thu Jun 17, 2010 4:42 pm, edited 1 time in total.
Re: A new photo album manager : Gallery
Excellent work with this module, Jos
I've started to play around with it today, and I'm very impressed with it's ease of use. I can't believe it's only a recent project, it looks like it's one of the oldest plugins around with all it's features.
But anyway, of course, I have a question
What I want to know is how is it possible to have 2 or more instances of Gallery on the same page? Then each of these Galleries will be pulling in images from 2 or more different sets of images. Is this possible?
I am using my own custom template (thank you for implementing this feature, very useful) and my own JS plugin (I am a Mootools dev, so I have my own preferences!). You can see it here:
http://213.175.206.16/~tyrepark/index.php?page=gallery
How do I duplicate my foreach statement so that I can have two Galleries on the page? Presumable I will need to specify a different image directory somewhere so that they are unique? I hope it's possible
Here is the main part of my custom template:
Thanks for your time.

But anyway, of course, I have a question

What I want to know is how is it possible to have 2 or more instances of Gallery on the same page? Then each of these Galleries will be pulling in images from 2 or more different sets of images. Is this possible?
I am using my own custom template (thank you for implementing this feature, very useful) and my own JS plugin (I am a Mootools dev, so I have my own preferences!). You can see it here:
http://213.175.206.16/~tyrepark/index.php?page=gallery
How do I duplicate my foreach statement so that I can have two Galleries on the page? Presumable I will need to specify a different image directory somewhere so that they are unique? I hope it's possible

Here is the main part of my custom template:
Code: Select all
{foreach from=$images item=image}
<li>
{if $image->isdir}
<a href="{$image->file}"><span>{$image->title}</span><img src="{$image->thumb}" alt="{$image->title}" class="thumb" /></a>
{else}
<a class="item" href="{$image->file}"><span>{$image->title}</span><img src="{$image->thumb}" alt="{$image->title}" class="thumb" /></a>
{/if}
</li>
{/foreach}
Re: A new photo album manager : Gallery
OK, it looks like I've figured this out now, I should have read the documentation more!
Code: Select all
{Gallery dir="gallery02"}
Re: A new photo album manager : Gallery
some offtopic hint to share with the community because i was looking for formating the date of the gallery. and i found nothing here. maybe someone helps it how to format the date. you simple use a smarty modifier:
{$image->filedate|date_format:"%d. %B %Y"} and you get 17. June 2010 (german format)
find your specifications in the smarty docs
{$image->filedate|date_format:"%d. %B %Y"} and you get 17. June 2010 (german format)
find your specifications in the smarty docs
Re: A new photo album manager : Gallery
Is is possible in the Gallery in the CMS to either:
Increase the length of the Title field to more characters (it seems to be limited to 100)?
Have a 2nd Title field of some sort, similar to the Comments field and have this pulled into the outputted HTML too?
Have the Comments field output it's content to HTML?
Increase the length of the Title field to more characters (it seems to be limited to 100)?
Have a 2nd Title field of some sort, similar to the Comments field and have this pulled into the outputted HTML too?
Have the Comments field output it's content to HTML?
Re: A new photo album manager : Gallery
Yes, you can change the fieldsettings in the database (with e.g. phpMyAdmin)Tetsuo wrote: Is is possible in the Gallery in the CMS to either:
Increase the length of the Title field to more characters (it seems to be limited to 100)?
No, not without hacking the codeTetsuo wrote:Have a 2nd Title field of some sort, similar to the Comments field and have this pulled into the outputted HTML too?
The image commentsfield is a plain textfield which can contain anything you want. Setting a single parameter in the code can change it to a field with WYSIWYG-editor. This will however completely destroy the compact view of the backend gallery page.Tetsuo wrote: Have the Comments field output it's content to HTML?
The way you output it is up to the gallery-template you use, and you can adjust it to your own needs.
Better use the album module if you want an overload of fields per image
Last edited by Jos on Wed Jun 23, 2010 11:46 am, edited 1 time in total.
Re: A new photo album manager : Gallery
Thanks Jos. To be clear, all of these are related to the Image/Title/Comment/Date/Album Cover etc.. fields, not gallerytitle, gallerycomment etc.
Jos wrote:Yes, you can change the fieldsettings in the database (with e.g. phpMyAdmin)Tetsuo wrote: Is is possible in the Gallery in the CMS to either:
Increase the length of the Title field to more characters (it seems to be limited to 100)?
Is there a way to do this via a paremeter on the front-end, anywhere in the code? I was thinking something like {$image->title charlength="200"}
No, not without hacking the codeTetsuo wrote:Have a 2nd Title field of some sort, similar to the Comments field and have this pulled into the outputted HTML too?
The image commentsfield is a plain textfield which can contain anything you want. Setting a single parameter in the code can change it to a field with WYSIWYG-editor. This will however completely destroy the compact view of the backend gallery page.Tetsuo wrote: Have the Comments field output it's content to HTML?
The way you output it is up to the gallery-template you use, and you can adjust it to your own needs.
I actually meant the Comment box next to the images themselves, as mentioned above. Is this possible?
Better use the album module if you want an overload of fields per image
Re: A new photo album manager : Gallery
That's how I understood (and answered) it also :)Tetsuo wrote: Thanks Jos. To be clear, all of these are related to the Image/Title/Comment/Date/Album Cover etc.. fields, not gallerytitle, gallerycomment etc.
The image titlefield is of type VARCHAR(255) so it should be able to hold 255 characters. If you want more, you can set it to type TEXT.
Re: A new photo album manager : Gallery
ThanksJos wrote:That's how I understood (and answered) it alsoTetsuo wrote: Thanks Jos. To be clear, all of these are related to the Image/Title/Comment/Date/Album Cover etc.. fields, not gallerytitle, gallerycomment etc.
The image titlefield is of type VARCHAR(255) so it should be able to hold 255 characters. If you want more, you can set it to type TEXT.

Re: A new photo album manager : Gallery
you have to go in your mysql database. i.e. with phpmyadmin! but you have to be experienced and careful!
Re: A new photo album manager : Gallery
i am wondering what happens when i move one existing gallery from one folder to another (silbing) folder thru ftp mode? does everyhing is going to work properly? the idea is having some functionality of "categories". i want to sort my albums by time/year. therefore i wanted to start creating folders of 2009, 2010 and archive. so when one album gets outdated, i want to move it to archive folder. is this going to work?
Re: A new photo album manager : Gallery
It will work, but you will lose all imagetitles and comments!
You better use the move-function that is built in the Gallery module
You better use the move-function that is built in the Gallery module
