How To: Display “Vector and Genre” menu items in ASPDotNetStorefront

Applies to: ASPDotNetStorefront version 9.0.0.0 and above

Procedure: There are two unsupported yet very useful items within ASPDotNetStorefront.  You can get to them one of two ways:

    1. Log into your admin panel, if you click on the menu link for “Organization” or “Organization > Manage Categories” you will be taken to the URL: YOURURL/YOURADMIN/newentities.aspx?entityname=category

       a. you can change the last word (the querystring parameter) as follows:
           YOURURL/YOURADMIN/newentities.aspx?entityname=genre -or-
           YOURURL/YOURADMIN/newentities.aspx?entityname=vector
       
    2. You can also modify the code page to display these pages as menu items under “Organization”
       
        a. In your favorite IDE (if you are not sure what an IDE is, please talk to a programmer) open the page
\SITE ROOT\Web\Admin\Controls\AdminMenu.ascx.cs
       
        b. Find the following lines (about line 185 in a stock installation) and un-comment the following two lines:

1./* UNSUPPORTED ENTITES - GENRES AND VECTORS - UNCOMMENT TO ADD TO MENU
2. 
3.parent.ChildItems.Add(GetMenuItem("admin.menu.Genres", "organizationGenres", "newentities.aspx?entityname=genre"));
4. 
5.parent.ChildItems.Add(GetMenuItem("admin.menu.Vectors", "organizationVectors", "newentities.aspx?entityname=vector"));


NOTE: If you are using the VB version, these two lines will have not been converted from C# so make sure you remove the semi colons from the end of the lines.  Otherwise the menu will completely disappear and you won’t get any error message.

Article ID: 12, Created On: 4/16/2012, Modified: 4/17/2012