Wednesday, November 27, 2013

SharePoint 2010: Display scrolling list items using jQuery and SPServices

This is a pretty common requirement for intranet administrators, so today I thought I'd share how to display the contents of a SharePoint list using jQuery. The good part about this is you need to have some knowledge on the CAML query and that's it.

First download these 3 components and store it somewhere accessible on SharePoint. Thanks to the wonderful folks who did the hard work and came up with those great components!
jQuery - http://jquery.com/
jQuery.SPServices - http://spservices.codeplex.com (read documentation thoroughly for compatibility)
jQuery.Marquee from givainc - http://www.givainc.com/labs/marquee_jquery_plugin.cfm
(in the case of jQuery Marquee, make sure you also include the css file for default styling)

Create a simple text file and include references to those components. I am using a plain text file so that I could include it later in a Content Editor Webpart.
 <link rel="stylesheet" href="/sites/SiteCollectionDocuments/jquery.marquee.min.css" />   
 <script src="/sites/SiteCollectionDocuments/jquery-1.8.3.js"></script>  
 <script src="/sites/SiteCollectionDocuments/jquery.marquee.min.js"></script>  
 <script src="/sites/SiteCollectionDocuments/jquery.SPServices-2013.01.min.js"></script>  

Monday, November 25, 2013

SharePoint 2010: How to find broken links using SharePoint Designer

There used to be a feature to show all broken links in SharePoint Designer 2007, unfortunately this is no longer available in SPD2010.

However, you could still find it using a more roundabout way.

Launch SharePoint Designer 2010 and open your site.
Open up ANY page in Edit mode.

Click to the View tab. Expand the task Pane and click on Hyperlinks.


Friday, November 22, 2013

Christmas Decorations at Straits Quay Penang, 2013

It's that special time of the year again... Christmas is just around the corner!

Here are some pics, to share the Christmas cheer...


A Christmas tree made from stacks and stacks of books.


Close-up.

Thursday, November 21, 2013

SharePoint PowerShell: A roundabout approach to mysites cleanup Part I

I had a situation where the company mysites cleanup job was turned off, and we needed a manual process to:
1. Detect mysites whose users who are no longer active in AD (Active Directory)
2. Update the site owner to someone else
3. Delete the user profile (to clean up organizational chart)
4. Remove/archive the mysite after x days.

Practically all articles on the WWW on this topic was to adopt an approach using the UserProfileManager to detect users removed from AD. However, this approach did NOT address my particular need.

This approach assumes that:
1. ALL of your mysites follows the same naming convention e.g. http://mysites/personal/username
2. The inactive users were either (1) totally removed; or (2)still in AD, but was moved to a separate OU (Organizational Unit)

For now, let's focus on detecting mysites where users are no longer active.

Creating tabbed menus with jQuery and CSS

While searching for free code downloads that allow me to create tabbed browsing effects with minimal fuss and zero dependency, I stumbled across this gem: jQueryUI

This is really cool as it makes use of the latest version of jQuery to display nice effects and best of all, it is extremely easy to plug this piece of code onto any environment (SharePoint included) :P

There are a lot more useful utilities out there. I just did not have the luxury of trying them all.

Related Posts Plugin for WordPress, Blogger...