Thursday, February 28, 2013

Future Publishing Date

As I've been doing a lot of Sitecore work lately, I thought I'd begin recording my findings here.

My first Sitecore post is in regards to a question asked, "Is it possible to set a schedule a future publish in Sitecore?"

Here's the simple answer outlined in the article below:
http://blogs.perficient.com/portals/2012/03/09/scheduling-future-item-publishing-in-sitecore/

I thought the code snippet in there could prove to be useful.

*EDIT*
It turns out with Sitecore 6.5, automatic publishing can be set up with a config file.
http://reasoncodeexample.com/2012/03/12/sitecore-automatic-publishing/

Monday, February 11, 2013

Editing Javascript in Visual Studio

The other day I downloaded a javascript library to do some rss feeding. I quickly discovered that I need to add some additional functionality to said javascript, but when I opened the file I realized that like most javascript libraries, there are NO LINE BREAKS.  Of course, this is to minimize the size of the javascript file and supposedly it also provides a performance boost, but for my purposes it did nothing but keep me from being able to read the daggon' javascript.

Well, it turns out there's a quick way to automatically format the javascript in VS.  Just open up the file and go to Edit > Advanced > Format Document.  That's it!