Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

GSP in Umbraco
jhkings
#1 Posted : Wednesday, 11 November 2009 5:52:19 AM(UTC)
Rank: Member

Joined: 11/11/2009(UTC)
Posts: 7

Hi,

I am trying to get GSP embed in Umbraco. I got to the point where the gallery page is loading up, but it's complaining about Page.Header. It's null.
Has anyone able to get GSP up and running in Umbraco?
Thanks!
Roger Martin
#2 Posted : Wednesday, 11 November 2009 2:13:43 PM(UTC)
Roger Martin

Rank: Administration

Joined: 3/08/2007(UTC)
Posts: 3,298
Location: Fort Atkinson, WI

Not sure if it will work, but try adding runat="server" to the head tag in your .aspx page:

Code:
<head runat='server'>
...
</head>

Roger Martin
Creator and Lead Developer of Gallery Server Pro
jhkings
#3 Posted : Wednesday, 11 November 2009 5:13:40 PM(UTC)
Rank: Member

Joined: 11/11/2009(UTC)
Posts: 7

I have that tag, but it's got to

/// <summary>
/// Handles the PreRender event of the GalleryPage control.
/// </summary>
/// <param name="sender">The source of the event.</param>
/// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
protected void GalleryPage_PreRender(object sender, EventArgs e)
{
HtmlHead header = this.Page.Header;
if (header == null)
throw new WebException(Resources.GalleryServerPro.Error_Head_Tag_Missing_Server_Attribute_Ex_Msg);

SetupHeadControl(header);
}

and the Header is always null.
I have the providers working. Feels like I'm so close!
jhkings
#4 Posted : Friday, 20 November 2009 7:30:01 PM(UTC)
Rank: Member

Joined: 11/11/2009(UTC)
Posts: 7

I have GSP working inside Umbraco. I can login with Umbraco Membership provider. I'm using GSP RoleManager provider at the moment. I'm trying to get the profile provider to work.
At this moment, I can login and create album and everything else. The one thing that is not working is the Actions menu. It's always gray, even though I can click on the menu items and they all work fine. I can go to site admin and manage user roles and profiles.
Anyone have any idea how to resolve this gray menu issue? I believe it's something to do with the ComponentArt, because the menu control is a ComponentArt control.
Thanks!
Roger Martin
#5 Posted : Saturday, 21 November 2009 1:38:24 AM(UTC)
Roger Martin

Rank: Administration

Joined: 3/08/2007(UTC)
Posts: 3,298
Location: Fort Atkinson, WI

Could the disabled look of the Actions menu be caused by CSS that is being inherited from Umbraco? Use a tool like Firebug to inspect the CSS that is being applied to the Actions button.
Roger Martin
Creator and Lead Developer of Gallery Server Pro
jhkings
#6 Posted : Saturday, 21 November 2009 3:35:58 AM(UTC)
Rank: Member

Joined: 11/11/2009(UTC)
Posts: 7

Thanks Roger!
Very good catch! It was inheriting a body color from the Umbraco container.
Thanks so much for your help.
Now I need to polish this up and create an Umbraco package to share with other.

cheer!
jhkings
#7 Posted : Tuesday, 1 December 2009 6:05:41 PM(UTC)
Rank: Member

Joined: 11/11/2009(UTC)
Posts: 7

Hi Roger,

I've got GSP integrated into my Umbraco site. I was wondering if I can have your permission to make it into an Umbraco package for other to use. I'm not sure if your licensing allows me to do that. Hopefully it will bring more traffic to your site and more donations, so you can continue to keep up the good work.
Thanks!
Roger Martin
#8 Posted : Tuesday, 1 December 2009 11:40:46 PM(UTC)
Roger Martin

Rank: Administration

Joined: 3/08/2007(UTC)
Posts: 3,298
Location: Fort Atkinson, WI

I believe that would be OK. If you changed the source code, you'll need to make it available to those who want it. Otherwise, you can just provide a link to the source code on this site.

Ultimately, anything you do must be compatible with the GPL.
Roger Martin
Creator and Lead Developer of Gallery Server Pro
sperr0w
#9 Posted : Wednesday, 16 December 2009 5:04:04 PM(UTC)
Rank: Newbie

Joined: 16/12/2009(UTC)
Posts: 2
Location: Ufa

I going to use it in my umbraco site too. Can u give?
jhkings
#10 Posted : Monday, 6 December 2010 6:45:00 PM(UTC)
Rank: Member

Joined: 11/11/2009(UTC)
Posts: 7

Sorry for the extremely long delay. My son came into the world and everything else stopped. I just got back to this and got it working with Umbraco version 4.5.2 with GSP version 2.4.3.

Here are the steps
1. Install GalleryServerPro, so the database will be created for you.
2. Install Umbraco with Creative Website Starter Kit, make sure you have everything configured properly and working!
3. Copy all the DLL from GalleryServerPro\bin to Umbraco\bin.
4. Copy App_GlobalResources folder from GSP to Umbraco root. And copy the gs folder from GSP to Umbraco\usercontrols\GalleryServerPro.
5. Merge the GSP\web.config with Umbraco\web.config. I used the 4.0 version on both. See attached file for example.
6. Create a macro in Umbraco, call it GalleryServerPro. Set the (Assembly) name to GalleryServerPro.Web and the (Type) name to GalleryServerPro.Web.Gallery.
7. Modify the Master template, adding runat="server" to the <head> tag.
8. Modify the Galleries template, replacing CWS_ListGalleries with GalleryServerPro. This is the macro you created in step 6.
9. In Umbraco Members module, add a Member Type called System Administrator.
10. Then add a new member, adding System Administrator to the Member Group. This is the account you will log into GSP with, not the Umbraco User account.
11. Set the MembershipProviderName in gs_AppSetting of the GSP database to UmbracoMembershipProvider.
12. Set the RoleProviderName in gs_AppSetting of the GSP database to UmbracoRoleProvider.
13. Set the ProductKey in gs_AppSetting of the GSP database to what ever your key.
14. Set the MediaObjectPath in gs_GallerySetting of the GSP database to where your gs folder is, i.e., \usercontrols\GalleryServerPro\gs\mediaobjects. Remember there are two of these, one is the template and one is the actual value!

You should be able to go to your Gallery on Umbraco and see the sample album. You can login with the member account created in step 10 and manage your albums.

Please, remember to donate to these projects. They put their heart and soul into these projects and made it possible for you and I.
File Attachment(s):
web.config.txt (16kb) downloaded 9 time(s).
Rss Feed  Atom Feed
Users browsing this topic
Guest
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.