Ask a questionAsk a question
 

AnswerFix "Title" Content Type

  • Friday, October 02, 2009 5:06 PMAyaBabe Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hello,

    A while ago I accidentally altered the "Title" content type in MOSS.  It is now listed across the whole site collection in various web parts as "_Title" instead of "Title." 

    Does anyone know how to fix it?  In Item (content type) it says that the column name is reserved or already in use.

    Thanks!
    I hear and I forget. I see and I remember. I do and I understand.

Answers

  • Thursday, October 08, 2009 4:39 PMAyaBabe Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer

    I found this blog that explains how to change it (also using PowerShell) - I'm going to give it a try.

    http://blogs.inetium.com/blogs/bcaauwe/archive/2008/07/25/omg-where-did-my-quot-title-quot-go.aspx


    Just wanted to add that the script in the blog solved my problem with this line: 

    In order to change it back to, simply modify $field.Title = "Title" and process a $field.Update().  Below is a sample set of calls to reset the field back to "Title".

    **I did have to manually change all of the MOSS columns in each list to "Title," but it no longer gave that dreaded message ("The column name that you entered is already in use or reserved.  Choose another name.") anymore!
    I hear and I forget. I see and I remember. I do and I understand.
    • Marked As Answer byAyaBabe Thursday, October 08, 2009 4:40 PM
    •  

All Replies

  • Friday, October 02, 2009 6:26 PMAndre Galitsky Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Can you clarify how you altered the Title content type?  If you specify the exact steps you took, we may be able to come up with a solution for you.

    Andre Galitsky, MCTS, Lexington, KY -- My SharePoint Blog: http://www.sharepointnomad.com
  • Friday, October 02, 2009 6:35 PMAyaBabe Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    I can't remember where exactly I made the change - it was a long time ago (sorry).

    I do know that I typed in an underscore _ when changing the name of a column.  At the time I didn't know that it would change the column names for EVERYthing though! 

    I do know that it wasn't in the "Item" content type, because it won't allow me to change it there - is there a way to find which content type is reserving/using it ("Title")?  I've already clicked everything possible...

    Thanks again! 


    I hear and I forget. I see and I remember. I do and I understand.
  • Sunday, October 04, 2009 7:39 PMvanglabbeek, Eric -MCT Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    It seems that you altered the base element of most of the lists.
    This , on it's own. is not so bad.

    However, somewhere in your portal, some used the name "Title" for a different column.
    And that's where that problem arrizes.

    Find the list(s) that have a Title column, rename that column and then you can change _Title back to Title.

    For future reference: it's better to change it at list level.
    Then the title is changed insted of the whole item

    Kind regards,
    eric
    Willing to learn everything about Sharepoint there is to learn. My blog : sharepoint.vanglabbeek.nl
  • Monday, October 05, 2009 1:21 PMAndre Galitsky Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Has Code

    I agree with Eric - you are likely using "Title" column name somewhere else, and that's why you can't change it back at the item level.

    The following PowerShell script can be employed to find out which lists are using the "Title" column.  Remember that the comparison is case-sensitive.  You can easily tweak the script to search for other column names.

    [System.Reflection.Assembly]::Load("Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c") | out-null 
    
    [void][System.reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint") 
    
    # set-up working variables...
    
    # Enter your SharePoint site collection URL here...
    
    $TargetSiteUrl = "http://sharepoint_site_collection_URL" 
    
    
    # Enter the list column name you want to find here...
    
    $FieldToFind = "Title"
    
    # Starting search
    
    write-host "FieldName, ListName, ListURL"
    
    $spSite = new-object Microsoft.SharePoint.SPSite($TargetSiteUrl) 
    
    $colWebsites = $spSite.AllWebs
    
    foreach ($web in $colWebsites)
    {
    
    $colLists = $web.Lists
     
    foreach ($list in $colLists)
    {
    
    $fields = $list.Fields
    
    foreach ($item in $fields)
    {
    
    If ($item.Title.Contains($FieldToFind)) 
    {
    write-host  $item.Title, ";", $list.Title, ";", $list.DefaultViewUrl
    }
    
    }
    
    }
    
    }
    
    write-host "Finished."
    
    
     
    
    

     






    Andre Galitsky, MCTS, Lexington, KY -- My SharePoint Blog: http://www.sharepointnomad.com
  • Thursday, October 08, 2009 4:08 PMAyaBabe Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    Andre - your post helps to find the "Title" columns, but not how to change it.

    I found this blog that explains how to change it (also using PowerShell) - I'm going to give it a try.

    http://blogs.inetium.com/blogs/bcaauwe/archive/2008/07/25/omg-where-did-my-quot-title-quot-go.aspx

    Thanks, guys!


    I hear and I forget. I see and I remember. I do and I understand.
  • Thursday, October 08, 2009 4:39 PMAyaBabe Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer

    I found this blog that explains how to change it (also using PowerShell) - I'm going to give it a try.

    http://blogs.inetium.com/blogs/bcaauwe/archive/2008/07/25/omg-where-did-my-quot-title-quot-go.aspx


    Just wanted to add that the script in the blog solved my problem with this line: 

    In order to change it back to, simply modify $field.Title = "Title" and process a $field.Update().  Below is a sample set of calls to reset the field back to "Title".

    **I did have to manually change all of the MOSS columns in each list to "Title," but it no longer gave that dreaded message ("The column name that you entered is already in use or reserved.  Choose another name.") anymore!
    I hear and I forget. I see and I remember. I do and I understand.
    • Marked As Answer byAyaBabe Thursday, October 08, 2009 4:40 PM
    •