Casual Coder

ASP.Net ○ SQL Server ○ Facebook ○ Mobile Development ○ Etc.

SharePoint 2010 Create Document Set from Folder Fix

SharePoint 2010 Document SetI just wanted to quickly share this SharePoint solution that I found that fixes the bug in SharePoint 2010 when changing the content type of a folder to a Document Set.

The task that I’m faced with is to bring over folders from an existing Document Library in MOSS 2007 and convert them into Document Sets. In an upcoming post I’ll explain the full process to easily automate converting the existing folder into Document Sets.

For some reason when you change the folder with a Document Library to a content type of a Document Set, it does not fully convert it. Below is a link to the solution located in CodePlex which fixes this bug and has worked wonderfully for me.

Project Description
Folder To Document Set Conversion Fix repairs the MS SharePoint 2010 bug where folders are not correctly converted into document sets during a content type property change.  This will fix existing problem doc sets on the next update to the doc set properties.  This includes a folder icon appearing instead of the doc set icon and the doc set home page unavailability.

http://foldertodocsetfix.codeplex.com/

 

 

 

 

 

Adobe Flex 4.5 Fundamentals

Adobe FlexAdobe Flex 4.5 Fundamentals: Training from the Source
is the best-selling and most trusted resource for learning about Adobe Flex. Written by a team of authors with practical experience as consultants, mentors and developers of courseware, this book/CD uses project-based tutorials, and is designed to teach beginning Flex developers the details of building and architecting real-world rich internet applications using Flash Builder incorporating MXML and ActionScript 3.0.The book includes a CD that contains all the files used in the lessons, plus completed projects for comparison. This latest edition includes complete coverage of new Flex 4.5 features, such as new enhancements to the Spark architecture and component set. It will also show you how to take advantage of the improvements to core Flex infrastructure for large application development.

How To Promote SharePoint Sub-Site to a Different Level

SharePoint SiteHere is the scenario. You create a sub-site and start building all of your lists, libraries, and other content, only to find that this site should be a top-level or at some other location other than where it’s currently at.

Using SharePoint Powershell and the ‘stsadm’ command to perform an Export and Import this can easily be accomplished. Below are the steps I used to successfully move a sub-site from one level to another.

To Export a Site, at the PowerShell prompt type:

stsadm -o export -url http://sharepointsite/sub_site_01/sub_site_12 -filename c:\backup\sharepointsite.bak -includeusersecurity -versions 4 –nofilecompression

 

To Import a Site, at the PowerShell prompt type:

stsadm –o import –url http://sharepointsite/sub_site_12/ -filename c:\backup\sharepointsite.bak –includeusersecurity

 

Here is some additional information regarding the various options for the Import and Export commands.

stsadm.exe -o export
    -url <URL to be exported>
    -filename <export file name>
         [-overwrite]
    [-includeusersecurity]
    [-haltonwarning]
    [-haltonfatalerror]
    [-nologfile]
    [-versions <1-4>
        1 - Last major version for files and list items (default)
        2 - The current version, either the last major or the last minor
        3 - Last major and last minor version for files and list items
        4 - All versions for files and list items]
    [-cabsize <integer from 1-1024 megabytes>]
    [-quiet]

 

stsadm.exe -o import
    -url <URL to import to>
    -filename <import file name>
    [-includeusersecurity]
    [-haltonwarning]
    [-haltonfatalerror]
    [-nologfile]
    [-updateversions <1-4>
        1 - Add new versions to the current file (default)
        2 - Overwrite the file and all its versions (delete then insert)
        3 - Ignore the file
        4 - Terminate with conflicts]
    [-quiet]

How To Remove the Date From WordPress Postings

TimeStampRemoving the date from your WordPress posts is actually quite simple. However, the location of the code to remove may vary upon the theme you’re using.

Locate the php tag shown below. Typically I think this would be in the index.php. However, with my theme it was in a file named content.php. Be sure to make a back up copy of the file you’re about to edit, just in case something goes foobar.

<?php the_time(‘F jS, Y’) ?>

Once you located the line above, simply delete it.

Your postings will now be date free, and will not show an age.

 

How To Archive List Items in SharePoint

SharePoint 2010When trying to accomplish particular tasks within SharePoint, there is a common sense way, and then there is the SharePoint way.

Say for instance you would like to have items within your list archived or retained when a certain date has been reached or an item has been marked as completed by a check box. To accomplish this by using the way SharePoint has laid out (http://technet.microsoft.com/en-us/library/cc262490.aspx), you’ll need to setup retention policies for either a content type or list/folder. Some of this setup has to be accomplished at the Site Collection level and/or at the List level. Long and be hold you then discover you do not have the appropriate permissions, or have to go through other individuals to get this setup. It becomes too much frustration for the task you’re trying to complete. I can understand the purpose behind the design, but sometimes you need something simple and straight forward.

Yes, you could setup a List View to hide the old or completed items, but they begin to take up space in your list and eventually impact it’s performance.

Lets Keep it Simple

I’m going to outline a simple way to archive using a designer workflow. Continue reading