Slideshow on Homepage

rated by 0 users
This post has 51 Replies | 12 Followers

Top 500 Contributor
Posts 50
Points 910
Julio Casal Posted: Sat, Apr 7 2007 12:40 PM

Hi. I would like to take the Slideshow from the Gallery page and put it in my home page. I tried copying this code from slideshowpro.aspx page and pasting in my home page:

<CSGallery:GalleryPostSlideshowPro runat="server" />

...but what I get is just a black box, with no images nor controls. Of course I don´t undersand very well that control, because I don´t know how is it supposed to know which gallery or galleries to show.

Am I doing something wrong?

Thanks,

Julio

 

Top 10 Contributor
Posts 3,424
Points 65,580
CS Developers
Ben Tiedt replied on Tue, Apr 10 2007 8:47 AM

The slideshow control only works for a single gallery or a single album -- it cannot, as it is currently implemented, show all posts on the site.

If you'd like to show a specific gallery, I can provide sample code.

Ben Tiedt's Blog

  • | Post Points: 35
Top 500 Contributor
Posts 50
Points 910

Hi Ben,

Thanks for your response. Yes please it will be great if I can at least display photos from one specific gallery in my homepage. Please let me know how can I achieve that.

Thanks,

Julio

Top 25 Contributor
Posts 1,160
Points 70,020
CS Developers
DanBartels replied on Tue, Apr 10 2007 11:22 AM

Here is a thread in the gallery forms on this issue

http://communityserver.org/forums/p/485787/575852.aspx#575852

Basically the slideshow is a flash app, and you pass in an XML feed of the images you want it to show into the "FlashVars"

It looks like this functionality may have changed for CS 2007, but in CS 2.1 you if you called the main SlideshowFeed url SlideShowPictures.ashx at the \Photos level, you would indeed get a feed of all the photos on your site, that feed is "context sensative" so depending on the "path" you use to request the page, it will filter based on the gallery and album.

Dan

  • | Post Points: 5
Top 10 Contributor
Posts 3,424
Points 65,580
CS Developers

I misspoke... the GalleryPostSlideShowPro control *does* support showing posts for all galleries... but to be hosted on the homepage, you'll need to apply a SiteUrls_override.config file (attached).

Deploy the attached SiteUrls_override.config file (unzip the attached file) in your root web folder (where your SiteUrls.config file currently resides) and restart your installation of Community Server 2007.

You can then add the <CSGallery:GalleryPostSlideShowPro runat="server" /> control onto your home page (web/themes/[theme name]/common/home.aspx) and the slideshow will show pictures from *all* of your galleries.

 

Ben Tiedt's Blog

  • | Post Points: 50
Top 500 Contributor
Posts 93
Points 1,380

Ben,

This works great - thanks again for the terrific tips!

BTW - how would one find this stuff on his own (i.e., is it documented somewhere?)

Thanks,

Jeff 

Jeff Davis MBA Candidate, Class of 2008 The Fuqua School of Business, Duke University Profile: http://www.linkedin.com/in/jwdavis
  • | Post Points: 20
Top 10 Contributor
Posts 3,424
Points 65,580
CS Developers
Ben Tiedt replied on Wed, Apr 18 2007 10:43 AM

jdc:
BTW - how would one find this stuff on his own (i.e., is it documented somewhere?)

Hosting the Slideshow on the home page isn't technically supported by default (if it were, it would have been as simple as placing the GalleryPostSlideShowPro control on the home page) but, with this tweak, the support was added.  This tweak required some talk with the developers, but, in general, controls should work in a standard way.

We're currently populating the docs.communityserver.org site with additional documentation and I should be posting a CHM file (compiled help file) containing documentation for the controls available in CS2007 soon.

Ben Tiedt's Blog

  • | Post Points: 5
Top 500 Contributor
Posts 50
Points 910

Hey Ben, thanks a lot! I would never imagine I could do that. My slideshow looks great on my homepage now!

Julio.

Top 150 Contributor
Posts 153
Points 2,380

Hello Ben,

How do i display a recent upload photos according to your post?  It's work for individual gallery, but for multiple galleries

I have multipled photos category and multiple pictures.  Your SiteUrls_override.config only displayed  a picture from very beginning.  I would love to display a recent photos instead.  Have any ideas? 

Thanks

  • | Post Points: 35
Not Ranked
Posts 14
Points 220
tochacs replied on Fri, Apr 20 2007 8:06 PM

I'm having a problem like you.  The slideshow only display the very first photo on homepage..for some reason i don't know why...I don't know if we can do specific gallery instead of all categories... Does anyone run into this situation

  • | Post Points: 20
Top 500 Contributor
Posts 50
Points 910

I followed exactly Ben´s tip, and worked perfect for me. My slideshow in homepage shows all photos from all galleries.

Julio.

Top 150 Contributor
Posts 153
Points 2,380

jcasal:

I followed exactly Ben´s tip, and worked perfect for me. My slideshow in homepage shows all photos from all galleries.

Julio.

Is it showing from recent posts to previous post?

Ben's tip, it's work perfect, but only problem is the slideshow is showing old post first.  I have more a thousand pix on many galleries.  When i submit new pictures to gallery.  I then wait for it loops thru all posts, then to recent posts.  I can't get the slideshow display from recent posts first.

  • | Post Points: 20
Top 500 Contributor
Posts 50
Points 910

You are right dotnetlover. My pictures are also showing old post first. It would be very nice to see last pictures first. I hope someone can help us with this.

Regards,

Julio

Top 200 Contributor
Posts 118
Points 1,760

I could be wrong but it looks like the only things that can be set with the slideshow currently are Height, Width, and CategoryId from what I can see in the SDK (don't have Visual Studio in front of me so I'm using Wordpad to look at the SDK code).  It does look like the sort is by LastPost in ascending order not descending with no ability to override.

For a definitive answer though we'll have to wait until Ben can help out.  Maybe this could be a feature request to add a QueryString for the sort mechanism.

Top 150 Contributor
Posts 153
Points 2,380

I would love to display a specific gallery.  Does anyone know?

  • | Post Points: 5
Page 1 of 4 (52 items) 1 2 3 4 Next > | RSS
Powered by Community Server (Commercial Edition), by Telligent Systems

Copyright© 2008 Telligent Systems Inc. All rights reserved
CommunityServer.com  •  Telligent.com