If you are interested in how to link your custom fields and content types that are generated through a custom list definition (schema.xml), please contact me and I will send you the program, I will update this post with the actual details as soon as I fully test my little tool.
February 14, 2013
August 16, 2012
This script will Dismount –> Rename the SQL Database –> Mount again, all in one step while preserving the following information:
- Web Application
- Database Server alias being used (if any different)
- Max sites count
- Warning sites count
Let me know if you have any comments or like it to preserve any other information, I can always tweak it
August 6, 2012
Say you need to set the default Ribbon tab when page is loaded, and you want to do it in code-behind, this is how it is accomplished, in your Page_Load method for SharePoint page being rendered:
This will make sure the browse tab is selected by default on page load. Nice and quick! If you know of a better way to do it from code, please let me know, as I have tried the InitialTabId stuff from MSDN and it didn’t work for me.
July 17, 2012
I have a SharePoint 2010 site with a custom list (build in Visual Studio with a custom content type). This site has been migrated from SharePoint 2007.
After the migration, I noticed that the list has duplicate fields:
Looking at the content type, I can see that there are duplicate fields in there:
The weird thing is that the content type has Field links with the same ID and internal name, how is that even possible?!!
Trying to hide one of the fields hides both, what the heck!
After a few failed tries, I decided to delete the FieldLink in the content type and readding them, so I used PowerShell:
After running the above code in PowerShell, I checked the FieldLinks and found out it only deleted the duplicates and kept one instance in the FieldLinks, Awesome!
That being said; no need to add the links again