Sharepoint Content Editor Webpart changing content -


in document library have number of html files calender month on them (e.g. july 2011.htm, august 2011.htm through december 2012). have content editor webpart displays html file current month. @ moment manually changing content link of webpart every month display new content - there way of doing automatically using script. not have sharepoint designer, , on sharepoint 2007

use getmonth() method of javascript current month.

http://www.w3schools.com/jsref/jsref_getmonth.asp

once have month, can append location of html file , output link. note can put javascript in cewp web part:

http://sharepointsolutions.blogspot.com/2007/07/adding-javascript-to-content-editor-web.html


Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -