Monday, July 18, 2011

No Left Navigation on New Web Part Pages

I found it a bit frustrating to manually add the left navigation to every new web parts page created in Sharepoint 2010. The manual process includes commenting out two chunks of code in each web parts page created which I figured out with the help of this site: http://blogs.technet.com/b/seanearp/archive/2011/03/09/how-to-create-a-sharepoint-2010-web-part-page-that-inherits-the-site-s-left-navigation.aspx. I knew there had to be a way to do it once for all new web parts pages.

Friday, July 8, 2011

Access Denied for All Users

I recently encountered a problem logging in. I could log in as the admin or any other user, but it would show the "Access Denied" message instead of the admin controls. The site worked fine for anonymous users, but no one could log in to make changes.

Wednesday, June 29, 2011

Extracting Month and Year from a Date and Time Field

I created a series of of document libraries in Sharepoint 2010 to archive minutes from meetings. I wanted to create a view that grouped the minutes by year and month, but I only wanted users to enter the date of the meeting. I figured out how to extract the month and year from the date column and display those as separate columns.

Friday, May 13, 2011

Redirection that works

Content administrators needed a way to control the URL to their external web application and be able to edit/show a maintenance message when the application was down for updates.

I created a new content type with a CCK link field for the URL and a single on/off check box for the administrator to turn the maintenance message on or off. The maintenance message lived in the default title and body.

Wednesday, May 11, 2011

MySQL crashed and nodes display "n/a"

MySQL crashed due to a lack of hard drive space. More hard drive space was allocated and MySQL was restarted. For a moment, the site appeared to be fine. A minute later, everywhere a node was suppose to display, "n/a" appeared instead.

Monday, May 9, 2011

Pathauto Bug: "Array" in the URL alias

I discovered a bug using Pathauto 6.x-1.5. When I would save a Page node with the URL path settings set to Automatic alias, the URL alias would insert "Array" instead of the token I assigned. When I reverted back to Pathauto 6.x - 1.4, the problem disappeared.

http://drupal.org/node/1141402

Friday, April 15, 2011

Turn a select into an autocomplete textfield in a Views exposed form

Within a Views exposed filter form, there was a select for a node reference field. The client wanted the select to be a textfield because it only required 3 characters and it would be faster for users to type them than find them in a select. I decided it would be even cooler to make it an autocomplete textfield.