XSL Help

Posted April 18, 2012 By Kevin Bennett

Found this the other day when trying to create some XSL Templates. Thought I might need it in the future so I am posting it here.

To see what values are being passed to the Webpart in an XSL template

[code]

<xsl:for-each select=”@*”>
     P:<xsl:value-of select=”name()” />
xsl:for-each>

[/code]

Be the first to comment
    

Access Denied Deploying solution

Posted March 3, 2012 By Kevin Bennett

Had a solution we were deploying and kept getting an error. Being that I was doing 5 other things at the same time I didn’t think much of it an chalked it up to some security setting being wrong and moved over to my “To Do Later List”. Today I revisited this and attempted to run again and got the same error:

“Access denied! Could not add solution to the SharePoint farm. Make sure you are logged in as SharePoint Administrator or Domain Administrator on the server. Also, make sure to turn off Windows User Account Control. “

  1. Thinking that it was the user account I logged in as a different user … same error.
  2. I tried adding the user to domain admins (just for testing) and same error.

Then silly me actually read the ENTIRE error message and zeroed in on the last part: “Also, make sure to turn off Windows User Account Control. “

 Well Crap….

  1. right-click the setup file and choose the option to ‘Run as Administrator’.
  2. Run setup again
  3. success

 

Lesson learned .. read ALL of the error messages first!!

Be the first to comment
    

Site

Posted March 1, 2012 By Kevin Bennett

Is it bad that I host this on WordPress and not SharePoint?

 

 

 

Be the first to comment
    

Creating Page Layout Preview Images

Posted February 21, 2012 By Kevin Bennett

Images are located in en-us/PreviewImages from the Master Page Library. Edit a current PNG image in the en-us/en-us/Preview Images Directory (I edited BlankWebPartPage to get a starting one). Upload to this directory, check-in and approve

On your parent site go to Site Actions –> Site Settings –> Master Pages and page Layouts under Galleries

You can associate a custom Template with an image by adding the address of the png image to the Preview Image Fields in the Edit Page Properties.
http:///_catalogs/masterpage/en-US/Preview%20Images/.png

/_catalogs/masterpage/en-US/Preview Images/.png

Make sure you change the http to https if you are on a secure site (or you will get the unsecure pop-up which is very annoying)

 

Be the first to comment
    

Hiding Title in an Announcement Webpart

Posted February 8, 2012 By Kevin Bennett

A bit of a cleanup on the page, but did have a request to remove the Title at the top of the Announcement Webpart. This is how I did that.

Created the Script in my Site Assets –> Scripts, Called HideTitle.js

Entered following text in it

[code]

<script type=”text/javascript”>

document.write(‘<style>TR.ms-viewheadertr { DISPLAY: none }</style>’);

</script>

[/code]

 

Added a content Editor Webpart which called above script by name

Be the first to comment
    
%d bloggers like this: