Home > .net 1.1, Microsoft, SharePoint 2003 > SPS2003 – Cannot Add To Site Directory? It’s a feature!

SPS2003 – Cannot Add To Site Directory? It’s a feature!

July 20, 2007

When trying to add a site to Site Directory (either manually or part of the Create Site routine), you click OK and it just does nothing.  By looking at Fiddler, it’s not so much it stops sending data, locks up, or anything—it just never TRIES.  After some digging, it’s a known “bug” with Microsoft: article #934229.  It’s caused by installing Windows Server 2003 SP2 to the box.  I wish someone would tell me when these things are applied… or, *gasp* use change controls.

The fix appears to be to bypass the InputButton control on the new site page and use simple JavaScript to submit the form.  The fix has been cataloged here from the newsgroups.

The summary of the proposed fix is to:

1. Open C:\Program Files\Common Files\Microsoft Shared\web server extensions\60\TEMPLATE\[LCID]\SPSSITES\LISTS\SITESLST\NewForm.aspx.  LCID == your locale identifier, it’s 1033 for US English.

2. Modify the file’s code to use a JavaScript submission rather than the standard web controls provided by SPS2003.  What we’re changing is bolded.

Original Code:

<SPSWC:InputFormButtonSection runat=”server”>
<SPSWC:InputFormButtonAtBottom ID=”ButtonOk” runat=”server”
TextLocId=”Page_OkButton_Text”/>
<SPSWC:InputFormButtonAtBottom ID=”ButtonCancel” runat=”server”
TextLocId=”Page_CancelButton_Text” visible=”false” />
</SPSWC:InputFormButtonSection>

Updated Code:

<SPSWC:InputFormButtonSection runat=”server”>
<input type=”button” value = “      OK       “ 
onClick=”document.forms[0].submit();” />

<!— Commented Out for Workaround
<SPSWC:InputFormButtonAtBottom ID=”ButtonOk” runat=”server”
TextLocId=”Page_OkButton_Text”/>
—>

<SPSWC:InputFormButtonAtBottom ID=”ButtonCancel” runat=”server”
TextLocId=”Page_CancelButton_Text” visible=”false” />
</SPSWC:InputFormButtonSection>

Unfortunately, that doesn’t work.  Yes, the form submits, but custom fields, such as Category (we call it Building), does not submit—thus you have to go back into the directory, find your site, and manually edit it.  What a pain.

  1. Tom Mata
    August 30, 2007 at 6:21 am

    OK I have another work around, it is a bit cumbersome at first but it eliminates the need to modify the newform.aspx page. Here are the steps I did.

    First add the URL column to the manage sites view from the directory. To do this, from the manage sites view select edit in data sheet. After the “/Lists/Sites/ManageSites.Aspx?ShowInGrid=True&View=” in the URL select the view ID it will start with a % . Copy this and paste it into notepad.

    Next, from the actions menu select Customize List and from the URL select the list ID, it is located after “/_layouts/1033/listedit.aspx?List=” and copy this to notes pad. Make sure you make a note as to which is which.

    Finally, in the URL address put the following: From the after the Cx Area name put /_layouts/1033/ViewEdit.aspx?List=YOUR LIST ID GOES HERE View=YOUR VIEW ID GOES HERE

    Then hit enter this will take you to the edit mode of the view for managing lists. Add the URL column to the view and select OK.

    Create a site from the actions menu and enter the appropriate information, title URL information and email address. Select create. On the next page (the page that does nothing when OK is selected) copy the URL. Take that URL and paste it into the address bar and hit enter. This now takes you to the selection of the template. Complete the creation process.

    Return to the Site Directory and select Manage Sites. Now to add a listing by selecting edit in datasheet and add your entry.

    Note once you have added the URL column to the view for the area you will not have to repeat the first steps.

    Hope this helps.

  2. August 30, 2007 at 9:52 am

    Hey All ! ! !
    Want to spend your vacation to be remembered for long?
    Tourism
    help you carry out your wishes !

  3. Jabalili
    September 11, 2007 at 9:34 am

    Yes the first solution works fine for me.
    Thanks a lot!

  4. February 20, 2008 at 10:45 am

    Горнолыжный курорт Красная Поляна – бронирование гостиниц и отелей.
    Наши квалифицированные менеджеры подберут вам наиболее подходящий вариант.
    http://www.krasnaya-polyana-hotels.ru

  5. February 20, 2008 at 10:53 am

    NikolRU-

    No thank you, I would not like ski resorts or hotels from your managers… I don’t think you have any appropriate options for me–especially in Russia–it’s cold there, and I’m a warm weather vacationer. =P

    (not deleting it as spam JUST for fun).

  6. February 21, 2008 at 2:26 pm

    http://shop-dvd-films.info/ – интересная и полезная информация на самые популярные темы.

  7. bob
    March 30, 2008 at 12:22 pm

    great site glad i found this

  8. July 9, 2008 at 4:58 pm

    Rimonabant is a new weight loss drug that helps combat obesity and smoking at the same time. Rimonabant diet pill induces weight loss by reducing appetite.

  9. August 31, 2008 at 8:17 pm

    Good day!,

  10. November 17, 2008 at 6:41 pm

    It\’s a great and valuable site!o

  11. December 17, 2008 at 1:27 am

    Offers data recovery software to recover and restore deleted data from FAT/NTFS based partitioned hard disk drives.

  12. Alexwebmaster
    March 3, 2009 at 4:59 am

    Hello webmaster
    I would like to share with you a link to your site
    write me here preonrelt@mail.ru

  13. May 29, 2009 at 6:28 am

    Invisible key logger software displays last logging session or start time of the current session with total typed key on the Windows.

  1. July 30, 2007 at 4:13 am
  2. February 18, 2008 at 8:31 am
Comments are closed.
%d bloggers like this: