<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr - rumremix</title>
<link>http://snipplr.com/users/rumremix/tags/sharepoint</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Thu, 20 Jun 2013 01:06:01 GMT</pubDate>
<item>
<title>(JavaScript) How to retrieve data from a list in Sharepoint 2013 using oData and JavaScript</title>
<link>http://snipplr.com/view/71175/how-to-retrieve-data-from-a-list-in-sharepoint-2013-using-odata-and-javascript/</link>
<description><![CDATA[ <p>The following code fetches contents of each Title field from the list called "LandingMiddleLinks"</p> ]]></description>
<pubDate>Wed, 15 May 2013 03:29:20 GMT</pubDate>
<guid>http://snipplr.com/view/71175/how-to-retrieve-data-from-a-list-in-sharepoint-2013-using-odata-and-javascript/</guid>
</item>
<item>
<title>(Other) what to do if sharepoint designer gets out of sync with server</title>
<link>http://snipplr.com/view/70376/what-to-do-if-sharepoint-designer-gets-out-of-sync-with-server/</link>
<description><![CDATA[ <p>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</p> ]]></description>
<pubDate>Wed, 13 Mar 2013 10:17:47 GMT</pubDate>
<guid>http://snipplr.com/view/70376/what-to-do-if-sharepoint-designer-gets-out-of-sync-with-server/</guid>
</item>
<item>
<title>(C#) sharepoint 2010 event receiver code that checks in files newly added to style library</title>
<link>http://snipplr.com/view/68942/sharepoint-2010-event-receiver-code-that-checks-in-files-newly-added-to-style-library/</link>
<description><![CDATA[ <p>Keep the namespace name, class name, guid that VS automatically generates. Make sure all of the "using" inclusions included.</p> ]]></description>
<pubDate>Tue, 04 Dec 2012 12:35:06 GMT</pubDate>
<guid>http://snipplr.com/view/68942/sharepoint-2010-event-receiver-code-that-checks-in-files-newly-added-to-style-library/</guid>
</item>
<item>
<title>(XSLT) How to create a sharepoint data form web part that uses only client side JavaScript</title>
<link>http://snipplr.com/view/67364/how-to-create-a-sharepoint-data-form-web-part-that-uses-only-client-side-javascript/</link>
<description><![CDATA[ <p>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 require cumbersome content editor pastes or includes. The advantage of packaging a solution as a web part is that it is a breeze to drop it anywhere on the site. Using the technique below you can package up a purely HTML/JavaScript solution as a web part, combining the benefits of both.

1. Create the HTML/JS content that you would like to turn into a web part in the manner you are most comfortable with
2. Create a dummy page in the site to initially hold our xslt
3. Open site in Sharepoint Designer
4. Find the page created in step 2, detach it from the page layout (by right clicking it), and open it for editing.
5. Place your cursor before the closing < /ContentTemplate > or closing < /asp:Content > tag
6. Paste the code in the source block below.
7. Find 
Title="DataView 1" 
in the code you pasted and replace it with
Title="MoreUsefulWebPartName" 
8. Replace the contents between the opening and closing ![CDATA tags with the HTML and/or JavaScript you created in step 1
9. Select all of the new code, starting with and including the opening WebPartPages:DataFormWebPart tag and ending with and including the closing /WebPartPages:DataFormWebPart tag
10. Switch from code view to designer view. You may ignore any warning you see about missing data sources.
11. Click the web part tab
12. In the "Save Web part" section, select the manner in which you would like to save the new web part.
13. Give the web part a useful name
14. Once you make the new web part available in the web part gallery, users may now add your javascript solution to any page as they would any other web part.</p> ]]></description>
<pubDate>Wed, 26 Sep 2012 05:06:47 GMT</pubDate>
<guid>http://snipplr.com/view/67364/how-to-create-a-sharepoint-data-form-web-part-that-uses-only-client-side-javascript/</guid>
</item>
<item>
<title>(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</title>
<link>http://snipplr.com/view/65637/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/</link>
<description><![CDATA[ <p>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 have that surrounds the global navigation piece. But this can be anything that encompasses the entire navigation region.</p> ]]></description>
<pubDate>Fri, 15 Jun 2012 08:35:48 GMT</pubDate>
<guid>http://snipplr.com/view/65637/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/</guid>
</item>
<item>
<title>(ASP) Breadcrumb in Sharepoint 2010</title>
<link>http://snipplr.com/view/63654/breadcrumb-in-sharepoint-2010/</link>
<description><![CDATA[ <p>Both ASP and Javascript versions provided below. Use either one or the other. Code should be placed in a SharePoint 2010 master page.</p> ]]></description>
<pubDate>Thu, 01 Mar 2012 10:57:15 GMT</pubDate>
<guid>http://snipplr.com/view/63654/breadcrumb-in-sharepoint-2010/</guid>
</item>
<item>
<title>(XML) Setting up Sharepoint files as a visual studio .Net solution</title>
<link>http://snipplr.com/view/63219/setting-up-sharepoint-files-as-a-visual-studio-net-solution/</link>
<description><![CDATA[ <p>Setting up a sp .net soln 

File --&amp;gt; New --&amp;gt; Project
on lefthand side -&amp;gt; Sharepoint -&amp;gt; 2010
usually select an empty template
name the project

to add files, create a module...
right-click project --&amp;gt; add --&amp;gt; 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 example edits to elements.xml in code block further down.) 


Edits to make to default xml:

in &amp;lt;Module&amp;gt; tag, put a url (such as  Url="_catalogs/masterpage" ) and put  RootWebOnly="TRUE"

The &amp;lt;file&amp;gt; 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 &amp;lt;module&amp;gt; url property and the &amp;lt;file&amp;gt; url property (that is, both of those properties are combined).

Add Type="GhostableInLibrary" IgnoreIfAlreadyExists="TRUE" to the &amp;lt;file&amp;gt; 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 &amp;lt;file&amp;gt; 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 &amp;lt;property&amp;gt; tags above). 

First, it is good practice to always add
&amp;lt;Property Name="FeatureId" Value="$SharePoint.Feature.Id$" Type="string"/&amp;gt;

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

&amp;lt;Property Name="UIVersion" Value="4" /&amp;gt;  
&amp;lt;Property Name="ContentTypeId" Value="0x010105" /&amp;gt;
&amp;lt;Property Name="ContentType" Value="$Resources:cmscore,contenttype_masterpage_name;" /&amp;gt;
&amp;lt;Property Name="MasterPageDescription" Value="Masterpage for SepulvedaPOC sites." /&amp;gt; 


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".

Next step: add event reciever feature activated code if necessary

* Make sure to add the proper modules to the feature
* Make sure that Scope is set to "Site" in the feature if the solution is a sandbox solution</p> ]]></description>
<pubDate>Fri, 10 Feb 2012 04:50:30 GMT</pubDate>
<guid>http://snipplr.com/view/63219/setting-up-sharepoint-files-as-a-visual-studio-net-solution/</guid>
</item>
<item>
<title>(XSLT) hijack submit or save button on sharepoint list form to redirect</title>
<link>http://snipplr.com/view/60467/hijack-submit-or-save-button-on-sharepoint-list-form-to-redirect/</link>
<description><![CDATA[ <p>Comment out the SharePoint:SaveButton tag and replace with input tag</p> ]]></description>
<pubDate>Wed, 02 Nov 2011 10:13:46 GMT</pubDate>
<guid>http://snipplr.com/view/60467/hijack-submit-or-save-button-on-sharepoint-list-form-to-redirect/</guid>
</item>
<item>
<title>(JavaScript) change the default search box text in SharePoint 2010 using JQuery</title>
<link>http://snipplr.com/view/54473/change-the-default-search-box-text-in-sharepoint-2010-using-jquery/</link>
<description><![CDATA[ <p>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.</p> ]]></description>
<pubDate>Fri, 27 May 2011 10:32:15 GMT</pubDate>
<guid>http://snipplr.com/view/54473/change-the-default-search-box-text-in-sharepoint-2010-using-jquery/</guid>
</item>
<item>
<title>(CSS) Fix SharePoint 2010 scrollbar issues</title>
<link>http://snipplr.com/view/52707/fix-sharepoint-2010-scrollbar-issues/</link>
<description><![CDATA[ <p>see link</p> ]]></description>
<pubDate>Thu, 28 Apr 2011 06:11:23 GMT</pubDate>
<guid>http://snipplr.com/view/52707/fix-sharepoint-2010-scrollbar-issues/</guid>
</item>
<item>
<title>(CSS) style the search bar in sharepoint 2010</title>
<link>http://snipplr.com/view/52508/style-the-search-bar-in-sharepoint-2010/</link>
<description><![CDATA[ <p>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.</p> ]]></description>
<pubDate>Sat, 23 Apr 2011 08:50:11 GMT</pubDate>
<guid>http://snipplr.com/view/52508/style-the-search-bar-in-sharepoint-2010/</guid>
</item>
<item>
<title>(ASP) removing I Like and Tags and Notes icons from Sharepoint 2010</title>
<link>http://snipplr.com/view/52397/removing-i-like-and-tags-and-notes-icons-from-sharepoint-2010/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 21 Apr 2011 03:38:24 GMT</pubDate>
<guid>http://snipplr.com/view/52397/removing-i-like-and-tags-and-notes-icons-from-sharepoint-2010/</guid>
</item>
<item>
<title>(HTML) how to remove unwanted elements from appearing in sharepoint dialog boxes</title>
<link>http://snipplr.com/view/52396/how-to-remove-unwanted-elements-from-appearing-in-sharepoint-dialog-boxes/</link>
<description><![CDATA[ <p>simply add s4-notdlg to the class of the element that you don't want to appear in dialog boxes. See example.</p> ]]></description>
<pubDate>Thu, 21 Apr 2011 03:31:30 GMT</pubDate>
<guid>http://snipplr.com/view/52396/how-to-remove-unwanted-elements-from-appearing-in-sharepoint-dialog-boxes/</guid>
</item>
<item>
<title>(CSS) sharepoint 2010 css reset</title>
<link>http://snipplr.com/view/52395/sharepoint-2010-css-reset/</link>
<description><![CDATA[ <p>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" with the correct font family -- only appears in two places so this is really easy. May need to do this for other inherit declarations also.</p> ]]></description>
<pubDate>Thu, 21 Apr 2011 03:24:57 GMT</pubDate>
<guid>http://snipplr.com/view/52395/sharepoint-2010-css-reset/</guid>
</item>
<item>
<title>(Other) how to fix sharepoint designer when it gets out of sync</title>
<link>http://snipplr.com/view/51810/how-to-fix-sharepoint-designer-when-it-gets-out-of-sync/</link>
<description><![CDATA[ <p>Sometimes SPD gets confused as to which files are checked out or not and to whom. This fix generally works.</p> ]]></description>
<pubDate>Sat, 09 Apr 2011 07:36:38 GMT</pubDate>
<guid>http://snipplr.com/view/51810/how-to-fix-sharepoint-designer-when-it-gets-out-of-sync/</guid>
</item>
<item>
<title>(JavaScript) Extending SharePoint modal window</title>
<link>http://snipplr.com/view/51375/extending-sharepoint-modal-window/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 31 Mar 2011 10:22:23 GMT</pubDate>
<guid>http://snipplr.com/view/51375/extending-sharepoint-modal-window/</guid>
</item>
<item>
<title>(C#) SharePoint Edit Mode Panel</title>
<link>http://snipplr.com/view/50729/sharepoint-edit-mode-panel/</link>
<description><![CDATA[ <p>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 you want, just make sure not to duplicate it on a layout and master page.</p> ]]></description>
<pubDate>Wed, 16 Mar 2011 10:53:11 GMT</pubDate>
<guid>http://snipplr.com/view/50729/sharepoint-edit-mode-panel/</guid>
</item>
<item>
<title>(jQuery) reading and writing list data in SharePoint 2010 using SPServices</title>
<link>http://snipplr.com/view/46534/reading-and-writing-list-data-in-sharepoint-2010-using-spservices/</link>
<description><![CDATA[ <p>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:row']").each(function(i)... with single quotes around 'z:row'.</p> ]]></description>
<pubDate>Wed, 05 Jan 2011 14:21:56 GMT</pubDate>
<guid>http://snipplr.com/view/46534/reading-and-writing-list-data-in-sharepoint-2010-using-spservices/</guid>
</item>
<item>
<title>(CSS) Sharepoint 2010 Custom Class For Content Editor Web Part Css Syntax</title>
<link>http://snipplr.com/view/46067/sharepoint-2010-custom-class-for-content-editor-web-part-css-syntax/</link>
<description><![CDATA[ <p>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-name:"appleRed";
}

Note: for the above custom-named style to appear in the rich text editor, it must live in a css file linked directly from the master page. That is, it will not work if it lives in a css file that is linked via an @import in  another css file.</p> ]]></description>
<pubDate>Thu, 23 Dec 2010 09:40:50 GMT</pubDate>
<guid>http://snipplr.com/view/46067/sharepoint-2010-custom-class-for-content-editor-web-part-css-syntax/</guid>
</item>
<item>
<title>(JavaScript) Sharepoint: limit the results in caml query</title>
<link>http://snipplr.com/view/44496/sharepoint-limit-the-results-in-caml-query/</link>
<description><![CDATA[ <p>First option uses a parameter in spservices method to limit the results to four.  Second option limits the results returned to six in the caml query iteslf using the &amp;lt;RowLimit&amp;gt; property.</p> ]]></description>
<pubDate>Sat, 20 Nov 2010 11:43:12 GMT</pubDate>
<guid>http://snipplr.com/view/44496/sharepoint-limit-the-results-in-caml-query/</guid>
</item>
</channel>
</rss>