Todd Bleeker's 12 Hive

All MindsharpBlogs

Are you pondering what I'm pondering?

My Links

Post Categories

Archives

Blog Stats

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 on Wednesday, December 20, 2006 1:33 PM

Feedback

# re: Snow Web Part Two 12/20/2006 2:34 PM rachel xu

big fan of the snow web part, installed last year. Unfortunately this year my users freaked out when see the snow, thought it was some kind of virus. So I have to take it off of the sites.

# re: Snow Web Part, Part Two - Crystallized 12/20/2006 9:56 PM Todd Bleeker

This Web Part shouldn't freak them out as much as last year.

<Todd />

# re: Snow Web Part, Part Two - Crystallized 12/21/2006 9:57 AM Doug

Never saw anything like this have to try it.

# Keith Richie Joins Barracuda Tools! 1/2/2007 9:01 AM Todd Bleeker's 12 Hive

# Keith Richie Joins Barracuda Tools! 1/2/2007 9:05 AM Todd Bleeker's 12 Hive

# re: Snow Web Part, Part Two - Crystallized 5/21/2008 6:32 PM ofertas

Great post.

# re: Snow Web Part, Part Two - Crystallized 5/23/2008 1:11 PM tatil koyleri

thanks...

# re: Snow Web Part, Part Two - Crystallized 5/23/2008 1:11 PM tatil koyleri

thanks...

# re: Snow Web Part, Part Two - Crystallized 5/23/2008 1:12 PM ameliyat oyunları

thanks...

# re: Snow Web Part, Part Two - Crystallized 5/23/2008 1:12 PM kiz oyunlari

thanks...

# re: Snow Web Part, Part Two - Crystallized 5/23/2008 1:12 PM oyun

thanks...

# re: Snow Web Part, Part Two - Crystallized 5/23/2008 1:13 PM oteller

thanks....

# re: Snow Web Part, Part Two - Crystallized 5/31/2008 9:35 AM Youtube

Let's suppose you want to display Word documents within a SharePoint web page. H

# re: Snow Web Part, Part Two - Crystallized 6/1/2008 3:10 AM Digital Frames

I have tried part I, it's great.Hope this would better. thx

# re: Snow Web Part, Part Two - Crystallized 6/2/2008 5:02 AM Araba Resmi

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

# re: Snow Web Part, Part Two - Crystallized 6/2/2008 5:03 AM Araba Oyunları

hi. Unfortunately this year my users freaked out when see the snow, thought it was some kind of virus. So I have to take it off of the sites.

# re: Snow Web Part, Part Two - Crystallized 6/5/2008 5:44 AM Youtube

That's really slick Todd, great tip!

# re: Snow Web Part, Part Two - Crystallized 6/10/2008 1:52 PM bedava oyun

looks like great

# re: Snow Web Part, Part Two - Crystallized 6/22/2008 4:53 AM ilahi

thanks so much

# re: Snow Web Part, Part Two - Crystallized 6/23/2008 7:05 PM Oyun

very thanx for you. nice good...

# re: Snow Web Part, Part Two - Crystallized 6/24/2008 5:07 AM Hoteles Baratos

Looks amazing!

# re: Snow Web Part, Part Two - Crystallized 6/25/2008 3:00 AM webkapital

Mango Jam is a collection of four ongoing series, Anime all featuring strong female leads. It's a prime candidate because all the stories are done manga-style, well-executed. It gives us four samples hentai in one go.

The first series is Leaves of Glaz, by Maisa Deluria and Cyan Abad-Jugo. It's a fantasy tale with a medieval setting, featuring kings, princes, princesses, and a touch of romance and magic. The artwork is recognizably manga, but with a touch of Disney. Art-wise, its main weaknesses are the sparse backgrounds and the computer-generated sound effects, which http://razdolie.info/index.php?sm=2
detract from its overall effect. That said, given its lighthearted tone, comedic moments, and quick pacing, I would say that the manga style fits the story quite well and is therefore essential.

# re: Snow Web Part, Part Two - Crystallized 6/30/2008 9:50 AM kaligrafi

Thanks for this good blog text.. kaligrafi

# re: Snow Web Part, Part Two - Crystallized 7/3/2008 7:00 PM izlesene

thanks.nice

# re: Snow Web Part, Part Two - Crystallized 7/3/2008 7:01 PM trabzonspor

great.thanks

# re: Snow Web Part, Part Two - Crystallized 7/14/2008 5:27 AM zeka oyunları

Thanka a kanka beeb!

# re: Forum 7/21/2008 5:30 PM Forum

Thanks

# re: Chat 7/21/2008 5:31 PM Chat

Thank you my friend..

# re: Snow Web Part, Part Two - Crystallized 7/22/2008 12:11 PM mircalem

thanks.

# re: Snow Web Part, Part Two - Crystallized 7/22/2008 12:12 PM çet

thanks.

Title  
Name  
Url
CAPTCHA
Protected by Clearscreen.SharpHIPEnter the code you see:
Comments