User : rumremix
Works in SP2013 (and I believe 2010). Provides site collection URL without trailing "/"
The following code fetches contents of each Title field from the list called "LandingMiddleLinks"
|what to do if sharepoint designer gets out of sync with server||rumremix||Other||check||
check the file out in the browser in spd, right click the file and choose "undo checkout" repeat the last two steps until the checkmark goes away in spd check the file out in spd. it should now get the latest version to edit
Often on a page footer, we want a copyright date range starting with the year the website was launched and ending the current year. Doing this dynamically means no need to update on 1/1 every year. The js snippet below uses the server date to accomplish this.
|December 28, 2012|
Useful trick from css tricks blog at http://css-tricks.com/snippets/jquery/fixing-ie-z-index/
|December 6, 2012|
|sharepoint 2010 event receiver code that checks in files newly added to style library||rumremix||C#||event||
Keep the namespace name, class name, guid that VS automatically generates. Make sure all of the "using" inclusions included.
|December 4, 2012|
||September 26, 2012|
|how to use dynamically generated .Net element IDs on page in jquery or css||rumremix||ASP||dynamic||
|September 13, 2012|
|July 3, 2012|
The class, "activeDDParent", needs css that will cause the parent to have the same hover effect it has when the mouse hovers over it. This class allows for the out-of-the-box sharepoint rollof delay.
|June 15, 2012|
|custom jquery selectbox dropdown||rumremix||jQuery||select||
Simple solution found via link. Just edit code from demo page(s). Also http://uniformjs.com/
|April 12, 2012|
|Breadcrumb in Sharepoint 2010||rumremix||ASP||breadcrumb||
|March 1, 2012|
|Setting up Sharepoint files as a visual studio .Net solution||rumremix||XML||project||
Setting up a sp .net soln
to add files, create a module... right-click project --> add --> new item select "module" give the module a name (such as masterpagecatalog) this will create the module, containing an elements.xml file and open the elements.xml file in code editor. Sample.txt will also be created but may be deleted.
Drag any previously created files that will live in the new module into the module icon in solution explorer
Edit elements.xml. (See source area below for example edits to make to elements.xml)
Edits to make to default xml:
in tag, put a url (such as Url="_catalogs/masterpage" ) and put RootWebOnly="TRUE"
The tag will also be created with a default url property. Make sure to edit this so that it is correct. By default, it will create a path starting with the name of the module. And if there is no such folder already with that name beneath the Module path, the feature will create one. The actual path is designated by both the url property and the url property (that is, both of those properties are combined).
Add Type="GhostableInLibrary" IgnoreIfAlreadyExists="TRUE" to the elements. IgnoreIfAlreadyExists="TRUE" means "overwrite existing file". Type="GhostableInLibrary" setting is used when a file is placed into a library. If a file is placed outside of a library, Type="Ghostable" would be used.
Change the tags so that it is not self-closing.
Add some Property tags.Columns in the master page correspond to file object properties indicated in the module xml. Other file properties in the xml will also be added to the "property bag" that do not correspond to master page columns (see tags above).
First, it is good practice to always add
On compliation, Value="$SharePoint.Feature.Id$" will be replaced with guid of feature.
For a master page, the following metadata will be added via the property tags
Make sure to edit the description as appropriate.
When the module was created, VS automatically created a feature called "Feature 1". Note that features may also be created by right-clicking "Features" in soln explorer and selecting "Add Feature".
|February 10, 2012|
|good hr styles||rumremix||CSS||css||
see other good styles at the url provided
|December 3, 2011|
|hijack submit or save button on sharepoint list form to redirect||rumremix||XSLT||form||
Comment out the SharePoint:SaveButton tag and replace with input tag
|November 2, 2011|