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

Notification

Icon
Error

Adding menu item to mediaobjectviewer.ascx
jlederer
#1 Posted : Sunday, 25 April 2010 3:09:54 AM(UTC)
Rank: Newbie

Joined: 23/04/2010(UTC)
Posts: 1
Man
Location: Pittsburgh, PA

I am trying to add a new menu item to the toolbar used in individual mediaobjects. It is easy enough to add a new item to the toolbar, add a tooltip and text to the item (via resource file), add the Util.Redirect redirect for the item, add an image file for the toolbar button image, and build a user control to perform the action.

I can see the a query string is generated when item is selected from the toolbar. What I cannot determine is where in the code you look at the query string and select the user control for that action.

I am trying to build a metadata editor for images so I can add keywords, etc. I am a very experienced .net developer (I have been professionally building and designing sites since 2002 in asp.net for large organizations.)

I want to use the software to build a licensing gallery for my wife who is a professional illustrator.

I figured it out by looking at the \website\codefiles\gallery.cs.
Roger Martin
#2 Posted : Tuesday, 4 May 2010 1:46:19 AM(UTC)
Roger Martin

Rank: Administration

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

Glad you got it. One of my priorities in the coming months is to add tagging support and the ability to edit metadata through GSP, but I haven't yet started the code or designed the workflow. I am strongly considering Silverlight for the best possible user experience.

If you think any of your code could be useful to GSP, I hope you will consider sharing it. If I end up using it I will share some of the donations with you as a token of appreciation.

By the way, just as an FYI, there is already support for persisting changes in the metadata collection to the data store in the business layer. That is, calling GalleryObject.Save() will persist the contents of the MetadataItems property, so all you really need to do is wire up the UI.
Roger Martin
Creator and Lead Developer of Gallery Server Pro
chrisrogeski
#3 Posted : Monday, 3 January 2011 10:22:12 PM(UTC)
Rank: Member

Joined: 15/12/2010(UTC)
Posts: 28
Location: USA

I am also trying to modify the Media Object View, I primarily develop in VS .NET 2005 and VB.NET (rather than C#), so I think I'm missing something simple.

If you look at the attached screen shots, you will see that when I open the website (x86), or the entire source code in VS 2010, there are additional files (.CS and .Designer.CS) that do not appear to exist in the final source code of the website. These files appear to be the code behind logic for dynamically building the menus, etc.

The Mediaobjectview.ascx in the compiled source code looks very different and does not have much code behind.

Should I be modifying the Media Object View in the full original source code, then re-build the website solution and copy just the new (single) Mediaobjectview.ascx to my published website?


Thanks,
Chris


File Attachment(s):
GalleryServer_MediaObjectView_MoreFiles.png (383kb) downloaded 8 time(s).
GalleryServer_MediaObjectView_MoreFiles.png (383kb) downloaded 6 time(s).
chrisrogeski attached the following image(s):
chrisrogeski attached the following image(s): GalleryServer_MediaObjectView_LessFiles.png
chrisrogeski attached the following image(s): GalleryServer_MediaObjectView_LessFiles.png
Roger Martin
#4 Posted : Tuesday, 4 January 2011 7:26:00 AM(UTC)
Roger Martin

Rank: Administration

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

You should be opening the solution file TIS.GSP.sln in Visual Studio. Read this thread for details.

If you are only changing the .ascx file, you don't need to compile - you can just deploy the .ascx file. But if you change any C# code, you will have to compile and deploy the DLL in addition to any changed .ascx files.
Roger Martin
Creator and Lead Developer of Gallery Server Pro
chrisrogeski
#5 Posted : Sunday, 9 January 2011 8:59:15 PM(UTC)
Rank: Member

Joined: 15/12/2010(UTC)
Posts: 28
Location: USA

Thanks! That was easier than I thought it would be... I've created a simple new link that sends the visitor to a Zazzle.com Template buffet where they can purchase products featuring the high res version of the image.

Adding the link was just a proof of concept, but it works great! I would like to also add some new settings to customize the way the link works for each gallery/ user

Screen Shots Attached =:).




File Attachment(s):
Zazzle_Template_Buffet.png (261kb) downloaded 17 time(s).
New Link to Zazzle Template Buffet.jpg.png (1,041kb) downloaded 14 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.