Import Site Columns
In my last post I wrote about a command that I created to export site columns to an xml file because I needed the data for a Feature I was working on.
Continue ReadingView my most recent blog posts
In my last post I wrote about a command that I created to export site columns to an xml file because I needed the data for a Feature I was working on.
Continue ReadingAs I mentioned in my previous post about the gl-exportcontenttypes command I need to be able to quickly and easily get the CAML necessary to recreate site columns in a Feature.
Continue ReadingI was recently working on a client project where there was an environment already setup with several custom content types and custom site columns that had been created. We wanted to reverse engineer those content types and columns so that we could create a Feature that could be used to deploy them into the various environments.
Continue ReadingSo you’ve got a content database (perhaps you used the gl-createcontentdb command) and now you want to create a site collection in that database. Problem is that you can’t do this easily via the browser and you definitely can’t do it via stsadm.
Continue ReadingIt’s pretty easy to create a content database via the browser and you can create a new content database easily enough when creating a new site collection via stsadm, createsiteinnewdb, or directly using addcontentdb.
Continue ReadingWhen I did the gradual upgrade I found that several sites had the welcome page set to UpgLandingPgRedir.aspx when it should have been set to default.aspx. I didn’t have time to figure out why it was doing this but the fix was easy enough – I just had to change the welcome page back.
Continue ReadingWhen we did our test upgrade I found that “almost” every single page that had a Grouped Listings Web Part (which is basically just a content query web part) had its source changed from showing items from the “Listings” list to instead show all items from the site.
Continue ReadingAfter I had created the gl-sitewelcomepage command I needed a quick way to find all the pages that were pointing to the wrong place. To do this I hacked out this command which essentially just loops through a farm, web application, site collection or web and displays what the current welcome page is set to for each web.
Continue ReadingThis command came about as a result of wanting to be able to reset the theme of a web site when it was upgraded. I had created this code as part of the upgrade2 command and figured that I might as well pull it out into its own command so that it could be used independently of the upgrade command.
Continue ReadingAs part of the upgrade I was working on we wanted to move site collections from the upgraded location to a new location on a different web application. This can be done really easily using the backup and restore built-in commands in conjunction with the deletesite command.
Continue Reading