Skip to main content

MOSS KB

Go Search
Lee Allen
Blog
Photo Albums
Stacks
MOSS KB
Demo
Search
Career
CIVoNY
eVony
SandBox
Your Ultimate Basement
  
Lee Allen > MOSS KB > Kode  

Kode

Modify settings and columns
Kewl Kode for Pages
  
View: 
Sort by AttachmentsUse SHIFT+ENTER to open the menu (new window).
DescriptionFilter
Title Hide the QuickLaunch menu
Description
This style sheet code will hide the QuickLaunch on a SharePoint Page.
 
Title Print Page Link
Description
Simple HTML code to print the current page

Title Scrolling Menu
Description
Creates a scrolling page title for your page.
 
Title Snow
Description
A blizard for your screen :-)

Title Clock
Description
Puts a clock on the page
 
Title Falling Leaves
Description
Leaves fall on screen - modify with your grapgics

Title Embeding WMV files on a page
Description
This is the generic code to embed a video.  Note the "src= "  needs to point to the file
 
Title Display a page without the header info
Description
There are 2 ways to do this:
 
To do this, simply append #mainContent to the URL of your SharePoint page.  or use this code on page

Title Splitting the top navigation in two
Description
The idea is to break the top navigation bar in two when you have too many menu items.
 
Title Display the Quick Launch on a Web Part Page
Description
Most pages on your SharePoint site display a left navigation, also known as “Quick Launch”. However, new Web Part pages that you add through the Create menu do not have it.

So how can we add the Quick Launch to these pages, using only the SharePoint UI? Here again, the iframe can help.


Title Rotating or Random Pictures
Description
 Web Part with pictures that keep changing while the page is displayed.
 

Steps:

  • Create your picture library and upload your pictures
  • If you would like to filter the list of pictures to be displayed, customize the library to add additional columns to how the filter data. (Event name, department, product, etc)
  • Go to your web part page and add the web part for the new library
  • Important steps:
    • Click Edit, Modify Shared Web Part
    • Optional: In the appearance section give the web part a meaningful name
    • Click Edit the Current View
    • Un-checkmark all of the columns except for “Name (linked to document)”
    • Optional: Set the sort order
    • Optional: Set filter options to select only the pictures you want displayed
    • Make sure the the list web part view is not using a "Item Limit" less then the number of pictures in the list. (You could just set this to be BIG number).
    • Click OK to save the view changes
    • Click OK to save the web part changes
  • Add a Content Editor Web Part (CEWP) below the picture library web part
  • Click Edit, Modify Shared Web Part
  • Click Source Editor
  • Copy and paste the code from below
  • Click OK for the Source Editor
  • Click OK to save the web part changes
  • Click Exit Edit Mode and see if it works!
 
Title Creating a redirect page with HTML
Description
Every so often, you run across the need to redirect a page somewhere else, like after a server migration when DNS isn’t used.  By simply adding a HTTP-EQUIV meta tag to the <HEAD> of your page, you can redirect elsewhere in a jiffy.  Syntax isn’t complex, but must be correct to function properly.