Profile
Achievement
rumremix's Recent Snippets
- All /
Works in SP2013 (and I believe 2010). Provides site collection URL without trailing "/"
0
975
posted 11 years ago by rumremix
The following code fetches contents of each Title field from the list called "LandingMiddleLinks"
0
1445
posted 11 years ago by rumremix
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
0
1022
posted 11 years ago by rumremix
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 accompl...
0
1018
posted 11 years ago by rumremix
Useful trick from css tricks blog at http://css-tricks.com/snippets/jquery/fixing-ie-z-index/
0
980
posted 11 years ago by rumremix
Keep the namespace name, class name, guid that VS automatically generates. Make sure all of the "using" inclusions included.
0
993
posted 11 years ago by rumremix
With jQuery and SPServices, we have very powerful tools for accessing and manipulating Sharepoint data and precisiely contolling the presentation, entirely from the client side. But such solutions generally need to be either hard-coded into pages or...
0
1463
posted 12 years ago by rumremix
In the examples, below, Step1 is the id given to the element. If the element is set to runat="server", when it is rendered on the page, the id will change dynamically to something like ctl00$PlaceHolderMain$Step1. But the actual value may change. To...
0
1187
posted 12 years ago by rumremix
JavaScript
get hover effect of global nav parent link to roll off at same time dropdown goes away in out of the box sharepoint global nav
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. "portalnavwrapper" is just the class of a div I ha...
0
1065
posted 12 years ago by rumremix
Simple solution found via link. Just edit code from demo page(s). Also http://uniformjs.com/
0
966
posted 12 years ago by rumremix
Both ASP and Javascript versions provided below. Use either one or the other. Code should be placed in a SharePoint 2010 master page.
0
996
posted 12 years ago by rumremix
<strong>Setting up a sp .net soln</strong>
<p>File --> New --> Project</p>
<p>on lefthand side -> Sharepoint -> 2010</p>
<p>usually select an empty template</p>
<p>name the project</p>
<p></p>
<p>to add files, create a module...<...
0
1174
posted 12 years ago by rumremix
Comment out the SharePoint:SaveButton tag and replace with input tag
0
1391
posted 13 years ago by rumremix
We use lists for all sorts of things, especiall navigation elements for which bullets don't make sense. Often, it is most convenient to remove bullet/list styles from all list elements globally. In fact many css resets do just that. However, there ma...
0
910
posted 13 years ago by rumremix
Use whatever is needed to select the input box. $('#searchBoxOuter td.ms-sbcell input') reflects some custom master page html I have so I used that.
0
1318
posted 13 years ago by rumremix
This is the quickest way to style the search bar. It involves creating one single image that includes both the input area and search button.
0
990
posted 13 years ago by rumremix
simply add s4-notdlg to the class of the element that you don't want to appear in dialog boxes. See example.
0
952
posted 13 years ago by rumremix
The "inherit" aspect of this did not always work for me. For example, font-family may need to be explicitly specified in the generated css (in place of "inherit"). But this just takes a couple seconds. Simply search for "family" and replace "inherit"...
1
1045
posted 13 years ago by rumremix
Sometimes SPD gets confused as to which files are checked out or not and to whom. This fix generally works.
0
790
posted 13 years ago by rumremix
You need to register this at the top of the page (see code below). Remember you can do this on a layout page as well, instead of the master page.
Then place the PublishingWebControls:EditModePane tag inline (see below). The ID can be anything...
0
615
posted 13 years ago by rumremix
Most of spservices function can be ignored -- not specifically relevant to templating. Important code in that block is the array push.
0
697
posted 13 years ago by rumremix
Just syntax examples here. First block reads, second writes. Top function just a debugging helper.
Using jquery 1.5, $(xData.responseXML).find("nodeName=z:row]").each(function(i)... may need to be written as
$(xData.responseXML).find("nodeName='z...
0
1247
posted 13 years ago by rumremix
Further below in the code are the default style declarations that can be overridden in custom css. To create custom classes that will be available in the rich text editors, follow the example below:
.ms-rteElement-appleRed {
color:red;
-ms...
0
1180
posted 13 years ago by rumremix
This is simple but saves time to copy-paste. This example has three columns (.boxcol) within the box. But the columns can be removed for single-column box.
0
977
posted 13 years ago by rumremix