Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo

Albums in Gallery


Go to End


30 Posts   8337 Views

Avatar
Carbon Crayon

Community Member, 598 Posts

22 November 2008 at 2:10am

well I think it is already there in the GalleryPage at the bottom of the 'gallery' tab, so to use it you just have to call $DefaultIcon, or if you want to style it then <img src="$DefaultIcon.URL" />

so in your GalleryHolder.ss file you would do something like:


<% control children %>

<h2>$Title</h2>
<a href="$Link">$DefaultIcon</a>

<% end_control %>

Avatar
UncleCheese

Forum Moderator, 4102 Posts

22 November 2008 at 3:45am

mhull: Can you explain what's happening with SWFUpload? That's the one place it's most likely to break, so I'm really trying to iron out that part of it. If possible, can you tell me your version of Flash Player, browser, and what exactly the error is?

Aram: Glad you like it. Stay tuned for more add-ons. I didn't realize Floatbox was framework-indexpendent. If that's the case, I'm happy to add it to the bundle.

LeeUmm: For the time being, we can paginate the "gallery overview" page to say, 10 albums per page. That's all built into the DataObjectSet class, so it should be no problem. As far as the sidebar, though, that could get long. I wonder if you're better off having not only multiple albums, but multiple galleries, as well?

Everyone: Please feel free to log into the admin. It's all wide open for you with admin/password. Or, to get access to just the gallery features, go to http://www.mysite.com/my-gallery/admin and it should grant you admin perms on the gallery page only.

Avatar
mhull

Community Member, 79 Posts

22 November 2008 at 5:00am

UncleCheese, it seems to be something to do with the _config.php file in swfupload.
I am on leopard Safari v3.2, Flash 9.0 r124.
Working when I look at your site, but not installing after flushing the database and trying on mamp.

Aram, many thanks for all your help, all working now!
One more unrelated question: I have made a sidebar through 'Sidebarcontent' => 'HTMLText'
How would I allow this to hold images aswell? at the moment it will only allow text. Any ideas?

Avatar
UncleCheese

Forum Moderator, 4102 Posts

22 November 2008 at 5:04am

What makes you think it's a problem with the _config.php file? Have you checked the perms? Is there a specific PHP error it's throwing?

Avatar
Liam

Community Member, 470 Posts

22 November 2008 at 7:45am

aram: There is nothing wrong with it being dependent, nothing at all. The only real pro would be if you're already using something like jquery, the file size of the lightbox would be smaller because it would obviously take advantage of the functionality of jquery. It's really just me being picky I guess lol.

UncleCheese: Ya I'll have to mull it over and see what the best option is. The development part of the site I'm doing is still a bit off, as it's a larger project still on the design phase. I'm just thinking for when I get to that part.

Another thing I'm not really familiar with would be the performance of the gallery once it gets large since this holds all the images in one folder. I don't think it would be an issue, but as I stated, I'm really not familiar with this it.

Avatar
UncleCheese

Forum Moderator, 4102 Posts

25 November 2008 at 8:06am

New version!

Albums are now tied to physical folders, so you have the option of creating a new space for your images, or using an existing folder. This is mostly beneficial to users who are currently on a standard GalleryPage and want to port over their existing images. Plus, it makes asset management a lot more organized.

Other fixes are mostly CSS bugs, IE6 in particular.

As always, demo is at:
http://imagegallery.carlinowebdesign.com

Admin for gallery:
http://imagegallery.carlinowebdesign.com/gallery/admin

Admin for CMS:
http://imagegallery.carlinowebdesign.com/admin

Credentials: admin/password

Download:
The uploader isn't accepting my file on account of its size. Here's a link:
http://imagegallery.carlinowebdesign.com/ImageGallery_0.6.zip

Go to Top