How to create Media Galleries in Gallery Server Pro and using Sueetie Administration to integrate their content into the community and add custom Sueetie features.
Multiple Galleries were made possible with the release of Gallery Server Pro v2.4.4 and its inclusion in Sueetie v2.2. Galleries are first created in Gallery Server Pro, then given properties in Sueetie Administration so that Sueetie can use the gallery-specific information to properly record and display the gallery outside of the Gallery Server Pro application.
The process includes 1) Creating the Gallery in Gallery Server Pro, 2) Adding Sueetie properties to the gallery in Sueetie Administration, and 3) using gallery-specific urls to access the library.
Create the Gallery in Gallery Server Pro
The Gallery Server Pro Gallery Manager lists the Sueetie.com galleries on the initial release of Sueetie v2.2. The two galleries are "Sueetie Screenshots" and "Document Library." Each gallery has a unique ID (in blue.) It's important to use this ID in the gallery's media storage location as you can see at right in orange. /media/gs/mediaobjects/[GalleryID/
The Gallery's Media Storage location is set on the gallery's Media Objects - General panel.
Add Sueetie Properties to the Gallery in Sueetie Administration
To integrate the gallery into the Sueetie framework for activity reporting and other custom features, we need to assign Sueetie-specific properties to the gallery. Below is the Sueetie Gallery Administration page, added in Sueetie v2.2.
Each gallery has a unique Sueetie Gallery Key. The gallery key is also the name of the .ASPX page used to display that particular gallery in Gallery Server Pro. For instance, the gallery key for the Document Library is "library," so the page used to access the Document Library is /media/library.aspx. This url is used so that Sueetie knows which library it is displaying for adding custom features like Sueetie Document View.
As we mentioned earlier, each gallery's unique gallery key identifies its working url. For instance, the "library" gallery key uses a working url of /media/library
.aspx. This serves several purposes, one of which is so that Sueetie knows which gallery is being displayed for adding Sueetie enhancements. It also tells Gallery Server Pro which gallery to retrieve (when no "aid" query string is present, but that's a technical side point.)
In other words, whenever you create a new media gallery you will create a new .ASPX file (copy /media/default.aspx and change the GalleryId property.) Here is the library.aspx file for the Document Library gallery using the library's GalleryID of "5."
<asp:Content ID="Content1" ContentPlaceHolderID="cphBody" runat="Server">
<asp:ScriptManager ID="sm" runat="server" EnableScriptGlobalization="true" />
<gsp:Gallery ID="g" runat="server" GalleryId="5" />