Display Templates wrong date

There is this issue, the date in display template is not showing the correct date as per actual value stored in the SharePoint list. My guess is correct, it because of the Daylight Saving time. Changing the property from value to inputValue solve the issue.

var parsedDate = new Date($getItemValue(ctx, "TrainingDateOWSDATE").inputValue);

Solution found from: http://www.sharepointappie.nl/display-templates-wrong-date-formatting/

Open list attachment by clicking paperclip

By default, the attachment icon (paper clip) is not clickable. User has to view the item first then only able to open the attachment. Found this script that allow user click on the paper clip icon and pop out the option to open the attachment immediately from the default list view.

Credit to this site: http://spoodoo.com/open-list-item-attachments-by-clicking-the-paperclip-version-2/


Picture Library SlideShow web part Web Part not displaying image in original size

Create a CEWP and add this script:

<script type="text/javascript">

function SlideshowObjectInitializer() {

  ShowPic = (function(ShowPicOrig) {
      return function() {

           var ssObj = arguments[0];  //SlideShow object
           var curPicIdx=ssObj.index; //current picture index

           ShowPicOrig.apply(this, arguments); //call original ShowPic

           //apply some changes to display original picture in SlideShow control
           ssObj.image.src = ssObj.linkArray[curPicIdx]; //display original image instead of web image
           //change picture & container size to auto instead of fixed (by default web image size is used)
             var cell = ssObj.cell; 
             cell.style.width = 'auto';
             cell.style.height = 'auto';
             cell.style.display = '';
             var pcell = ssObj.cell.parentNode; 
           pcell.style.width = 'auto';
             pcell.style.height = 'auto';
ExecuteOrDelayUntilScriptLoaded(SlideshowObjectInitializer, 'imglib.js');

SharePoint 2013 Ignite Training materials

I attended this SharePoint 2013 IT Pro Ignite Training at Microsoft Malaysia last year. Below are the links to the presenter site along with useful  download on the video and presentation slides.