8 10 2011
Disclaimer: The examples shown in this post are extremely unrealistic in terms of real-life scenarios. The numbers and types of fields used in these experiments are designed purely to test the physical limitations of SharePoint. At no point is it suggested that a real-life use of such list architecture be used. If you do have lists […]
5 10 2011
Here’s a short presentation by myself in response to Mike Greene‘s post about CSS in SharePoint. It’s my first, it took all evening, so enjoy! SharePoint Branding with CSS Customisations from James Love on Vimeo.Talking through what to do and what not to do when customising SharePoint sites with CSS changes.
3 10 2011
This article is a cross-post of the originally published article from NothingButSharePoint.com, available here: https://www.nothingbutsharepoint.com/sites/devwiki/articles/Pages/Making-use-of-the-Property-Bag-in-the-ECMAScript-Client-Object-Model.aspx The “Property Bag” is a really quick and easy way to store key/value pairs that can be associated to a particular web site. You can use this to easily store settings for an application that you might want to scope to […]
27 09 2011
This is a cross-post from the original article from SharePoint365, available at: http://sp365.co.uk/2011/09/programmatically-add-ribbon-custom-action-to-an-existing-list/ There is plenty of documentation on the web for creating Ribbon Customisations using the standard SharePoint CAML XML mark-up. This is a great dialect for creating complex customisations to the ribbon, but they only get applied on Feature Activation. What if you have […]
9 09 2011
Jimmywim | Uncategorized |
Cross-Post. Originally posted on http://sp365.co.uk/2011/07/build-a-simple-web-part-for-office-365-that-gets-data-from-a-list/ In this article we will create a simple web part in C# code that will access a task list and show a list of pending items. You will then be able to upload this web part to your SharePoint environment on Office 365! This tutorial combines others on the internet that […]
22 08 2011
Thought I’d take some time here to plug my company’s newly launched training delivery branch out in Brisbane, Australia (and it’s been a wee while since my last post!). Intelligent Decisioning Pty in Australia are now a Critical Path Training partner, have opened up several training workshops in October, delivering training materials from Critical Path […]
8 07 2011
As part of my series of blog posts on item level permissions, I thought I’d post a quick note on “resetting” item-level permissions on a list. This can be done using the method SPListItem.ResetRoleInheritance() on the list item in question. This will reset any item level permissions on this item to inherit from the List […]
9 06 2011
As part of my series on performance, I thought I’d look at updating large (20,000 item) lists in bulk, and what are the fastest ways to do this. I’ve gone through a few different ways of doing this, finding out where the slowness is coming from, and I present the results of the analysis in […]
1 06 2011
After this question was asked on SharePoint Stack Exchange, I thought I’d share my method of re-ordering content types in a list. Note: this isn’t the only method of doing this, see the thread on SPSE to see more (particularly the UniqueContentTypeOrder property).
|
private void ReorderContentTypes(SPWeb web, string listName, string firstContentTypeName)<br>{<br> SPList list = web.Lists[listName];<br><br> SPContentType cType = web.AvailableContentTypes[firstContentTypeName];<br><br> List<SPContentType> oldCTypes = new List<SPContentType>();<br><br> for (int i = list.ContentTypes.Count -1; i >= 0; i--)<br> {<br> if (!list.ContentTypes[i].Id.IsChildOf(cType.Id))<br> {<br> oldCTypes.Add(list.ContentTypes[i]);<br><br> list.ContentTypes[i].Delete();<br> }<br> }<br><br> foreach (SPContentType c in oldCTypes)<br> {<br> list.ContentTypes.Add(c);<br> }<br><br> list.Update();<br>}<br> |
18 04 2011
So you’ve embarked on writing a bit of code that must enumerate a SharePoint List’s Items one by one and do some stuff with them. You’ve (at some point) came across the Best Practices page on MSDN on Handling Large Folders and Lists, and seen that using SPList.Items is bad. It’s bad because you could […]