Tag Info

Hot answers tagged

7

That could be due to localization. In that case, you should also set TitleResource property: field.TitleResource.SetValueForUICulture(new CultureInfo(1033), "My title"); Actually, I've done renaming of Title plenty of times, and I can't see any difficulties there. Your SchemaXml approach probably didn't work for the same localization reason. By the way, ...


4

It is because SharePoint Multilingual User Interface (MUI) translates also column titles. What you did was that you overrode the default English MUI translation of the Title field to "title123". However, when you switch over to German MUI, it will use the German default translation of the Title field. You would need to change it also on the German MUI side. ...


2

You need PowerShell to rename the Content Type on the specific list. I have written down a snippet for you that works on a specific list and update the Content Type name. You can extend it to for the other lists etc. $siteUrl = "http://YourServerName/sites/testsite" [system.reflection.assembly]::LoadWithPartialName("Microsoft.Sharepoint") > $null #get ...


2

It seems to me that, while you can't delete the Name field, you could hide it in the edit form using jquery. There are a lot of articles on how to do this. Then you are right, you would need a way to populate it anyway, and I'm not sure an event receiver would work. Perhaps if it was on the "ItemAdding" event.


2

I only tried this in PowerShell, where I can confirm that SetValueForUICulture() doesn't persist the value (or rather it looks like it is set in the database, but GetValueForUICulture() retrieves the old value even though the internal property ResxBased is set to false). What worked for me was to not use SetValueForUICulture() but instead set the title ...


1

Try the actual STSADM Command renameWeb (for the actual sub-site - http://technet.microsoft.com/en-us/library/cc263508(v=office.12).aspx) or renameSite (for a site collection - http://technet.microsoft.com/en-us/library/cc263038(v=office.12).aspx).


1

I would suggest to rather execute your code in the ItemAdded. Do not try to re-create another item inside, you just need to execute the code at the appropiate moment. Make sure you read this article to understand when the AfterProperties has values populated as it is different from List to Library and for each Event ...



Only top voted, non community-wiki answers of a minimum length are eligible