none
How to add meta data when creating a sub site? RRS feed

  • Question

  • Hello everybody

     

    We want to create a subsite (e.g. http://dev:101/team1/Project1) (MOSS 2007, based on a custom template) that represents a certain Project. These Projects have extra meta data e.g. start date.

     

    On a different page (http://dev:101/team1) we want to show all subsites in a list, including the extra meta data:

    Name        Url                                            Start Date     End Date
    Project1    http://dev:101/team1/Project1    2007/10/01    2008/10/25
    Project2    http://dev:101/team1/Project2    2007/11/01    2007/11/30


    Is it possible to setup somewhere in sharepoint extra meta data fields for subsites so that you can fill them in when you create a new subsite? ( ... > Create > New SharePoint Site)?

    Is it possible to setup such a list that displays all the subsites including this meta data?


    Kind regards and thx in advance !

    Thursday, November 29, 2007 10:12 AM

Answers

  • As far as I know the only way to do this is to use the site directory.  You can setup new columns for the start and end date and then add those columns to the site creation categories view and then configure the site directory to require the information.  With that you should be able to view the information.

    Friday, November 30, 2007 1:12 AM
  • I think I am going to implement the following:

     

    Add Site Actions menu "Site Directory Details" which will point to a custom ASPX page.

     

    Page will use the SPContext to determine the current site and find if it already has an entry in the Site Directory.

    If it doesn't, present them with a "New Item" dialog for the Sites list.

    If it does, present them with an "Edit" dialog for the entry representing that site.

     

    the only question is how to security trim the menu.

    Tuesday, December 4, 2007 1:03 PM

All replies

  • As far as I know the only way to do this is to use the site directory.  You can setup new columns for the start and end date and then add those columns to the site creation categories view and then configure the site directory to require the information.  With that you should be able to view the information.

    Friday, November 30, 2007 1:12 AM
  • Thx for your help.

     

    It is working now, but the date columns and columns of type "Person or group" are shown as text fields when you are on the "Create new Site" page.

    If you don't put the values in the correct format, the newly created site isn't shown in the Site Directory.

     

    Am I doing something wrong? Or is this fixable?

     

    Kind regards

     

    Tuesday, December 4, 2007 11:42 AM
  • I have noticed the same thing.

    I am wondering if it is a bug in the rendering of the Site Directory controls.

    Tuesday, December 4, 2007 12:51 PM
  • I think I am going to implement the following:

     

    Add Site Actions menu "Site Directory Details" which will point to a custom ASPX page.

     

    Page will use the SPContext to determine the current site and find if it already has an entry in the Site Directory.

    If it doesn't, present them with a "New Item" dialog for the Sites list.

    If it does, present them with an "Edit" dialog for the entry representing that site.

     

    the only question is how to security trim the menu.

    Tuesday, December 4, 2007 1:03 PM