Skip to main content

Posts

Showing posts from November, 2014

Sharepoint 2013: Get all active tasks using SPSiteDataQuery for the current user (My Tasks)

My project was an intranet, a sub site monster that needed a query to show all the tasks for the current user. There were two options - recursive code (no thank you) or  SPSiteDataQuery . The key to the code is to limit the list query to the appropriate list type (see  here  for a list from Microsoft). In my case, it was "<Lists ListTemplate='107' />". Then add some simple CAML (thank you  Camldesigner ) and you are there. My final query was as follows:             SPSiteDataQuery q = new SPSiteDataQuery();             q.Webs = "<Webs Scope='SiteCollection' />";             q.Lists = "<Lists ListTemplate='107' />";             q.Query = "<Where><And><Or><Membership Type='CurrentUserGroups'><FieldRef Name='AssignedTo'/></Membership><Eq><FieldRef Name='AssignedTo'></FieldRef><Value Type='Integer'><UserID/><

Using Export and Import, you can migrate list from SP 2010 to SP 2013

Using Export and Import, you can migrate list from SP 2010 to SP 2013 but you have to make some manual changes. Export the list from SharePoint 2010 using either the Central Administration or PowerShell (Export-SPWeb). In the Central Administration, go to Backup and Restore > Export a site or list. Choose your list, and click Start Export Export-SPWeb –Identity http://sltfiler01/rechumanos/ -Path C:\tmp\CV.cmp -Itemurl "CV" -Force -IncludeUserSecurity  -IncludeVersions ALL Copy the exported list (.cmp file) to your desktop and change the extension to .cab. You can then extract it using a software like WinRar. Open the SystemData.XML file with an editor like NotePad++ and change the version from 14.0.0.0 to 15.0.0.0 , and the build version from your 14.0.x.x to 15.0.x.x (depending on the build you have on both your farms). For view the version export a little library from SP2013 and copy the line of version CabPack -->  http://download.cnet.com/Cab

Create a SharePoint 2013 Theme using Color Palette Tool (Web2)

Summary :  Create Custom Theme in SharePoint 2013 (Step-by-Step Tutorial), Create Theme in SharePoint 2013, Create new Composed look, SPColor.xml, SPFont.xml in SharePoint,Create Custom Theme in SharePoint 2013 – Step-by-Step Tutorial In SharePoint 2013, the theming engine was highly improved. You can Create Custom Themes by Creating Color palettes and Font Schemes, and uploading them to the Themes Gallery. Themes in SharePoint 2013 are defined two XML files: SPColor.xml -  defines the color palette, in which slots now have semantic names so that it’s more clear what UI elements will be affected when you change a color value. Also, themes now support setting opacity. SPFont.xml -  defines the font scheme and supports multiple languages, web-safe fonts, and web fonts. Because We’re So Good, Our Content gets Copied very Often. If you are not reading this on  LearningSharePoint.com  please read the Original article  Here for details, comments and updates on this post. How

Create a SharePoint 2013 Theme using Color Palette Tool (Web1)

Since SharePoint 2007, we have been introduced to different “Theme” engines within SharePoint. The idea behind the theming engine is great but is often underused. In other words, whether you are using the out-of-the-box Master Pages or created your own, Power Users can apply “Themes” to the core HTML that is the Master Page and change the look of their sites. In SharePoint 2013, the Theming Engine has been reworked once again, but this time making it much more accessible to everyone. You may find the option under “Change the Look” from the Site Settings. Change the Look of your SharePoint Site By now, you may have already heard about the styles or looks available as a gallery for Power Users of a SharePoint site. These available looks come with SharePoint. They are defined by .spcolor files in your Site Gallery under Site Settings. They are also called Composed Looks.  To change the look of your SharePoint Site, you simply click on the “Change the Look” link in your Site