Here is some CSS for making Rounded Corners on a SharePoint 2010 Webpart Title

[code]
/* repeating background for header */
.ms-WPHeader .ms-WPHeaderTd, .ms-WPHeaderTdMenu, .ms-WPHeaderTdMenu:hover,
.ms-WPHeader TD.ms-WPHeaderTdSelection
{
   background: url(‘wpart_back.jpg’) repeat-x center left;
   margin: 0;
   height: 33px;
   border-color:transparent ;
   background-color:transparent;
}

/* removes the background from the drop down arrow and the checkbox on right side of header and from the spacer cells before and after the header */
.ms-WPHeader .ms-WPHeaderTdMenu,
.ms-WPHeaderTdSelSpan
{
   background-color:transparent;
}

/* right rounded corner */
.ms-WPHeader .ms-wpTdSpace
{
 background-image:url(‘wpart_right.jpg’);
 background-position: right  center;
 background-repeat: no-repeat;
 padding-left:5px;
}

/* left rounded corner */
.ms-WPHeader .ms-wpTdSpace:first-child
{
   background: url(‘wpart_left.jpg’) no-repeat;
   background-position: left center;
   padding-top: 0px;
   padding-left: 0px;
}

/* removes the underline from under the header */
.ms-WPHeader TD
{
    border-bottom: transparent 0px none !important;
    border-right: transparent 0px none !important;
    border-top: transparent 0px none !important;
    border-left: transparent 0px none !important;
}

/*wpart title padding left*/
.ms-WPHeader TD.ms-WPHeaderTd
{
 padding-left:10px;
}

/* wpart title */
.ms-standardheader.ms-WPTitle a
{
  font-weight:normal;
  color:white;
  font-weight:bold;
}
[/code]

not sure where I found this at but have been using for a year or two.

If its yours let me know so I can give credit where credit is due.

Be the first to comment
    

How To: Using SharePoint Calculated Columns to Display Current Month List Items

1. create two computed columns (both calculated columns return Date Only values):

      a. Created First Day Of Month

            i. =DATE(YEAR([Created]),MONTH([Created]),1)

      b. Created Last Day Of Month

            i. =DATE(YEAR([Created]),MONTH([Created])+1,1)-1

I then added the below filters to view:

Be the first to comment
    

Real quick before I forget:

Got the following error day on our Development Sharepoint 2010 server when I attempted to delete a Web Application.

“The located assembly’s manifest definition does not match the assembly reference. (Exception from HRESULT:0x80131040)”

Did an IISRESET on the application server and was able to delete

I believe this was because I was making changes to the web application and maybe it wasnt in sync with the DB?

 

 

Be the first to comment
    

Today I needed to find what templates were being used by each sharepoint site. The problem was related to exporting and importing sites between servers where we had some old sites that were using old templates (Fab 40 templates) that I didn’t want to install on the new server.

So I found the site using this command:

[code]stsadm -o enumallwebs [/code]

which told me which site was using the PROJSING template. I then was able to delete this site, export and import to the new server.

 

 

Be the first to comment
    

Running Powershell Scripts

Posted May 31, 2012 By Kevin Bennett

Simple but I almost always have to go back and “remember” after a month or two of not working with Powershell.

To run a Powershell script don’t forget to put .\ in front of your script name if you are running it from the directory it is located at. For example:

[code] .\CopyContent.ps1[/code]

 

Be the first to comment
    
%d bloggers like this: