DotNet Development, SharePoint Customizing, Silverlight, MS Infrastructure and other tips and tricks

Posts Tagged ‘SP Designer’

Deployment for a Custom SP PageLayout

Posted by PANVEGA on June 25, 2009

In this post I gonna explain in a few steps how to build a SharePoint Feature for a PageLayout. To do this, I needed to create a new page layout based on an existing layout, make this part of a feature and pull in all the bits and pieces necessary to deploy this as a feature.

First I copied a default PageLayout (Welcome Page) with a Fields from this Content Type.The Content Type Group is the default Page Layout. To do This opnen the _catalogs with the SP Designer. Now you have the basic aspx files you will modify and put back into SharePoint as a feature. Open the aspx page in an appropriate editor. Make the appropriate modifications and save the file.

Read the rest of this entry »


Posted in Deployment, MasterPage, MOSS, PageLayout, SPDesigner | Tagged: , , , , | 1 Comment »

How to add a HIT COUNTER to a page

Posted by PANVEGA on June 22, 2009

In this post I wanna describe how to add a Hit Counter Component by using Microsoft Office SharePoint Designer.

Attention: this description below is just useful when you creat a new aspx page or prepare your MasterPage for example. If you try adding the Component to a Page Template, the Page instances refernce to the same central component. That mean the counter does not start from zero when you create a new page from a template. It goes on incrementing the counter from the first page you created. That means every page instance shows the same page or hit counter.

In my next post I gonna explain how to solve this problem. Read the rest of this entry »

Posted in MOSS, SPDesigner | Tagged: , | 2 Comments »

Custom CSS Styles in the SP RichText Editor DropDown

Posted by PANVEGA on May 26, 2009

When creating content on a publishing site through a Page Content HTML editor there are some basic styles that come OOTB: The styles are actually conditional and different styles appear based on the type of content selected. Create your own set of standard header and section styles that are easily available to your content authors directly within the content editor.  These styles appear in the seldom-used “Styles” menu within the content editor toolbar.  By default, you’ll notice this menu is populated with three header styles that are just about everything but useful. Read the rest of this entry »

Posted in CSS, MasterPage, MOSS, SPDesigner, WebParts | Tagged: , , , | 1 Comment »

Modify the SP Print Preview with CSS Media Types

Posted by PANVEGA on March 30, 2009

When working with the MS Sample MasterPages for instance I could not print the whole page when using a browsers print preview. No more these tons of tables anymore Yessss! However the MasterPage classes are applied to the default Media Type in the core.css, which does not of course affect the standard SP MasterPages when printing.


  • Media Types allow you to specify how documents will be presented in different media. The @media rule allows different style rules for different media in the same style sheet. The document can be displayed differently on the screen, on the paper, with an aural browser, etc.
  • The master page almost always defaults to DEFAULT.MASTER . DEFAULT.MASTER refers to a file called CORE.CSS. Thus, any web pages that use this template will always use CORE.CSS when processing styles.
  • Microsoft has made available four sample master page sets compatible with the Application Templates for Microsoft Windows SharePoint Services 3.0 to showcase some of the customization options master pages provide. The download includes four master page sets; each set has a distinctive look and feel and comes in five color variations: blue, orange, red, purple, and green.

The main content wasn´t visible in the print preview.  After a little quick digging I quickly discovered this code in the All the important classes are set to display:none.

@media print{
} Read the rest of this entry »

Posted in CSS, MasterPage, MOSS, SPDesigner | Tagged: , , , | 2 Comments »

Customizing Styles of Table of Contents WebPart (TOC)

Posted by PANVEGA on February 11, 2009

I this post I gonna show you how easy it is to customize the default Tabel of Contents Webpart. This webpart can list pages, lists and subsites of a specific site, and this in a custom organization and presentation. When using it on the default master page, it shows the content in different levels with some nice indentation applied to it. The main modification is to the XSLT that the web part uses when rendering the contents.

the TOC Web Part consists of the following files to amend:

  • Header.xsl
  • LevelStyle.xsl
  • TableOfContentsMain.xsl

The solution  is adding custom CSS styles unit to the xsl templates. Luckily, the table of contents is one of those webparts which uses XSL style sheets to format its data and makes those available in the Style Library within your SharePoint site collection. Once inside this style sheet (LevelStyle.xsl), one can easily be edited to the different styles. Read the rest of this entry »

Posted in CSS, MOSS, SPDesigner, WebParts, XSLT | Tagged: , , , , | 9 Comments »

Approaches when customizing a DataView WebPart (DVWP)

Posted by PANVEGA on February 7, 2009

In this post I wanna show some tricky approaches when customizing  DataView Webparts (DVWP) in the SP Designer. Maybe the approaches can save you a lot of time. Actually you can customize the weparts view how ever you wish. Customize the Filtering, Grouping and Sorting values in the dvt_1.toolbar template. Present the information with your own CSS classes. Replace the default .ms-toolbar class in the core.css.

Creating the initial dataview can be done on a virtual machine, so there is no risk of breaking anything (and development is easier when you don’t have to deal with the VPN). In SharePoint Designer, create a dataview on any list and convert it to xsl. Don’t make any changes before the conversion, as the conversion doesn’t always work that well.


Microsoft Windows SharePoint Services provides the powerful Data View Web Part that can perform an Extensible Stylesheet Language Transformation (XSLT) on XML data retrieved from a data source. When you are working with a Web site based on Windows SharePoint Services from within Microsoft Office FrontPage 2003, you can use the Data View Web Part to do the following:

  • Define a query and data source from which to retrieve the XML data. Data sources can be SharePoint lists or external databases such as Microsoft SQL Server.
  • Define the XSLT transformation that converts XML retrieved from the data source into HTML. FrontPage offers a WYSIWYG experience for editing these XSLT views, including live data preview. Read the rest of this entry »

Posted in MOSS, SPDesigner, WebParts, XML, XSLT | Tagged: , , , , | 7 Comments »

Introduction in Custom WF Activities

Posted by PANVEGA on January 20, 2009

Microsoft Office SharePoint Designer 2007 allows non-developers to create custom workflows in a straightforward way by using the workflow designer it provides. During the process, the user “glues” together different activities that represent the steps for the workflow. There are numerous activities one can use and the list is extensible. Developers can use Microsoft Visual Studio 2005 to build additional activities and deploy them, so that they are available in Office SharePoint Designer 2007.

My example in the post extendes the default out of the box Activity in the SP Designer (Copy List item). In the default activity you can only copy an item in the same site. I added a new attribute DestinationListUrl which copies the select item from the root list by using the SP Object Model to the destination list in an other site collection.


On Codeplex you find some useful custom SP Activities Read the rest of this entry »

Posted in Administration, C#, Deployment, DotNet, MOSS, Object Model, SPDesigner, Workflows, XML | Tagged: , , , , , , , , | Leave a Comment »

Create a rotation banner in a CQWP

Posted by PANVEGA on January 13, 2009

In this post I am gonna explain how easy it is to create a custom banner function in a CQWP by adding some JavaScript code. The goal is to show a Title with a hyperlink and a short description in a rotation banner function. The Content will be referenced from a Custom SP List with these fileds. Read the rest of this entry »

Posted in Delegate Controls, JavaScript, MOSS, SPDesigner, WebParts | Tagged: , , , , , | Leave a Comment »

Adding more funtionaltity to SharePoint with JS funtions

Posted by PANVEGA on October 14, 2008

Do you sometimes wish to make some special form validation or other javascript actions on SharePoint form fields (like for example onchange, onfocus, onblur, etc?). You can add special functions on events to the SharePoint form fields using JavaScript.

This example demonstrates how to synchronise different fields from another SharePoint lits and apply the SP Designer custom workflows.

Referencing SharePoint fileds with JavaScript:

Read the rest of this entry »

Posted in JavaScript, MOSS, Workflows | Tagged: , , , | 3 Comments »

Open SharePoint Link in a new Window

Posted by PANVEGA on October 12, 2008

In SharePoint when clicking on a link the windows opens in the same window as your application. However usually you still wanna have the link to your SharePoint Site. It’s definitely not the best user experience

Add the following JavaScript Code for example to your custom UserControl .ascx and add it to your Delegate Control in your master page:

Read more about Delegate Controls in my previous post

Read the rest of this entry »

Posted in Delegate Controls, JavaScript, MOSS, SPDesigner, UserControls | Tagged: , , , , | 4 Comments »

How to make a join between SP Lists

Posted by PANVEGA on March 22, 2008

Without writing some code, and that’s to build a “linked list” with two SharePoint List.  Sometimes you get a requirement to join two pieces of data within a SharePoint Site/Team Page, and in the past I’ve built connected Web Parts to do this, or created a single Web Part that pulled from both data-sources to make the data look as if it were one table/listing. Read the rest of this entry »

Posted in MOSS, SPDesigner | Tagged: , | Leave a Comment »