Here’s a reference page on how to add items to your hosts file. Adding items to your hosts file allows you to set up a sort of “local DNS” to access sites even when your DNS server doesn’t know how to get to them, this is often used in development. Note that you need administrator […]
Styling and Scripting SharePoint based on Web Template
Often times when styling SharePoint you’ll come across some odd exception where the styling that works everywhere else has some weird side effect on a particular type of site, or you’ll want to limit some jQuery functionality to a specific site template. Here’s a neat little trick I came up with for splitting the styling […]
JavaScript Event That Fires When SharePoint Page Has Finished Loading
If you’ve ever had an issue with JavaScript running before the element you’re trying to manipulate on a SharePoint page has loaded, this post is for you. Rather than momentarily considering using something terrible like a setTimeout to delay execution, we can instead use an event that will let us know when the “body” of […]
Building a Custom Filter Web Part for a List View Web Part, the Easy Way
This might not meet everyone’s needs, if you have a truly difficult filter (or even multiple Lists on the same page that you don’t want to filter together), this might not work, but the most common configuration I’ve run into is a standalone page with a List View for a specific list. This is usually […]
Generating an iCal (.ics) file from a SharePoint Calendar List Item
Here’s the quick tip around generating an iCal file for an item in a SharePoint Calender List. You can generate it using the owssvr.dll with a link structured in the following fashion: http://<SITE_URL>/_vti_bin/owssvr.dll?CS=109&Cmd=Display&List={<LIST_GUID>}&CacheControl=1&ID=<ITEM_ID>&Using=event.ics <SITE_URL> = The URL of the site that hosts the Calendar List you’re referencing <LIST_GUID> = The GUID of the Calendar List […]
Changing Template of a SiteCore Item causes the Item to go out of Edit mode
Just a quick note about an odd quirk I found today. While modifying an Item, you have to put it into Edit mode (usingĀ item.Editing.BeginEdit() ), however, if you change the Template of the Item (using item.ChangeTemplate(<newTemplate>) ), the next change you try to make will fail, because changing the Template pulls the Item out of […]
Sitecore query items returning out of order
I’ve received questions about this a few times, so I decided to write a post on the issue. The problem people complain about is that they aren’t getting back Sitecore items in the same order they appear in the content tree. Sometimes they were previously getting them back in the right order, but now they’re […]
Adding an E-mail button to a Custom List Item
Problem: The client wants a way to send a link to a specific item in a list. For this example, say we have a Custom List for storing book information: At the List level, we have a method for sending a link via e-mail: However, as stated in the tooltip, this simply provides a link […]