Todd Bleeker's 12 Hive

All MindsharpBlogs

Are you pondering what I'm pondering?

My Links

Post Categories

Archives

Blog Stats

Thursday, June 14, 2007 #

"I'm just not sure how well this plan was thought through"

 

Hello, yeah, it's been a while
Not much, how 'bout you
I'm not sure why I [blogged]
I guess I really just wanted to talk to you

And I was thinking maybe later on
We could get together for a while
It's been such a long time
And I really do miss your smile...


The last few months have kind of been like a hangover from my book and courseware writing. I really didn't want to write anything that I didn't have to write. Metaphorically, I've had my coffee and I'm ready to warm up the keyboard again.

<Todd />

posted @ 6:19 AM | Feedback (58)

Tuesday, January 02, 2007 #

Keith Richie Joins Barracuda Tools!

I had planned to explain the JavaScript for the Crystallized Web Part in this post. But, this news just can't wait.

Keith Richie, of SPUserUtil fame, has joined us at Barracuda Tools! About this time last year I was welcoming Andrew Connell into the fold.

I am very excited to welcome Keith into our family. Keith and I have had the off chance to work together as I submitted WSS bugs that made it to CPR (I don't remember what it stands for but it's a Microsoft support group that is called in when the first and second line support can't diagnose a show-stopping problem). I can't wait to rub shoulders regularly with this highly competent, self-described SharePoint guy. Keith and I will be "collaborating" on our plans for DeliverPoint all next week.

posted @ 8:01 AM | Feedback (53)

Wednesday, December 20, 2006 #

Snow Web Part, Part Two - Crystallized

The Snow Web Part I created last year still works on any SharePoint site (v2 or v3):

You can download last year's snow.dwp Web Part here. Just import it onto a page.

I thought it would be fun to release another simple, holiday CEWP.

 
(50 plus images in the AJAX-style slide show)

The Mindsharp staff enjoyed the images I showed them at SnowCrystals.com; so I asked the image owners if I could wrap their awesome photos into a Web Part. They gave me permission to proceed. I also thought I could use the opportunity to show off how the CEWP can use the RPC URL Protocol to access a List/Library in either WSS v2, SPS, WSS v3, or MOSS. So, let it snow, let it snow, let it snow.

Use the following steps (generic steps given to prevent WSS version confusion) to create a standard Picture Library, add the images, and point the CEWP at the Library.

  1. Upload my snowcrystals.stp (WSS v2 version or WSS v3 version - both custom List Templates target the STS 1033 site definition; that is Team Sites, Blank Sites, and Document Workspaces using the US English language) into your list template gallery on the top-level site of any site collection.
  2. Create a new Picture Library using the uploaded list template.

OR, if you are using a site based a site definition other than STS or in a locale other than 1033, or you just want to create the Picture Library from scratch, use these alternate instructions:

  1. Download the snow crystal images (I made them all 200x200).
  2. Unzip the images to your local file system.
  3. Create a Picture Library named SnowCrystals.
  4. Upload the images into the new Picture Library.

After the Picture Library is created, the following steps are required:

  1. Ensure everyone that will see the Web Part has at least read access to the new Picture Library.
  2. Navigate to Picture Library Settings. In the URL, you will see the List as a parameter in the QueryString. It looks like the bolded section below (the v2 version will not have escape characters, either is OK):
    http://[site]/_layouts/listedit.aspx?List=%7B2F6C6FAC%2D7E9A%2D42C2%2DBA99%2DCC986C67D7AE%7D
  3. Copy this List ID.

On the page that you want to display the snow crystals:

  1. Put my snowcrystals.dwp CEWP onto any WSS page.
  2. Choose Modify Shared Web Part from the Web Part's smart menu.
  3. Click the Source Editor... button in the tool pane and at the top of the JavaScript modify the following constants:
    Paste the List ID you copied from the URL into the LIST_ID constant as follows:
    var LIST_ID = "%7B2F6C6FAC%2D7E9A%2D42C2%2DBA99%2DCC986C67D7AE%7D";

    Optionally, change the wait seconds to the number of seconds you want each image to show before displaying the next image in the library:
    var WAIT_SECS = 1;

    If the Picture Library IS on the same site as the Web Part (easiest) continue on to the next step. Otherwise, change the URL constant to the Web Application (same as v2 Virtual Server including both protocol and domain - do not end with a forward slash). Also, change the ROOT_URL to the fully qualified location to the site where the SnowCrystals Picture Library is located. If the library's URL is http://portal/sites/subsite/SnowCrystals/Form/AllItems.aspx, change these two lines as follows (they default to the values for the current site):
    var WEB_URL = LOC_HREF.substring(0, LOC_HREF.indexOf(document.domain))+ document.domain;
    var SITE_URL = LOC_HREF.substring(0,LOC_HREF.lastIndexOf('/'));

    to these:
    var WEB_URL = "http://portal";
    var SITE_URL = http://portal/sites/subsite;
  4. Click Save and then Exit Edit Mode.
  5. Be amused.

Much bigger and crisper images can be seen in the three galleries at http://snowcrystals.com. There are also lots of interesting articles about snow crystals including a scientific discussion about whether two snow flakes could ever be alike or not.

In my next post, I'll explain how the code inside the Web Part works and how it can be used in other scenarios.

<Todd />

posted @ 1:33 PM | Feedback (65)

Monday, December 18, 2006 #

Developer's Guide to Windows SharePoint Services 3.0

Want to get your hands on some early WSS v3 developer help? My book, the Developer's Guide to Windows SharePoint Services 3.0 should be on shelves the day after Christmas:

      



<Todd />

posted @ 2:32 PM | Feedback (39)