Tag Info

Hot answers tagged

3

This article describes an old trick for making certain links open in a new tab. Just append the url for any link you want to open in a new tab with #openinnewtab, and add the following javascript code (master page would be best): $(document).ready(function() { $('a[href$="#openinnewtab"]').attr('target', '_blank'); });


2

Write a script to with quoting classnames. get the classname where ever u want to apply this. Here is the example $(function () { $(".classname a").each(function (i) { $(this).attr('_target', "blank"); }); }); Load this script into master page.


2

I don't know about stripping off the spans, but you can override the default styles by using an Alternate CSS file. You create a CSS file that targets the elements you want to style, so for targeting navigation elements you might use selectors like #DeltaTopNavigation a.ms-navedit-linkNode { /* for links in the top nav bar */ } #sideNavBox .root li { ...


1

Try this: FieldUrlValue url = new FieldUrlValue(); url.Url = "Your Url here"; url.Description = "Your description here"; oListItem["URL"] = url;


1

You can set it like this: oListItem["URL"] = String.Format("{0}, {1}", mainurl, "Description"); It's a simple string and URL value is followed by a description which are separated by a comma. Or you can use a more object oriented approach: var value = new SPFieldUrlValue(mainurl); value.Description = "Description"; oListItem["URL"] = value; Whichever ...


1

Do the following: Site actions -> Site Settings -> Site Columns From there click "Create" You can now decide what type of column to create. In this case, click "Lookup (information already on this site". Further down, under the option "Get Information From" select the list you wish to pull the info. From there you can select the main piece of information ...


1

I followed Aanchal's example though I needed a few other things to get it to work right. I needed to add a reference to jQuery, than I needed to find the proper styles to apply my changes to. I was displaying a really old filtered list from a WSS3 site Upgraded to SP2013. So I needed top open in a new page and change the Font/size of the text. ms-vb2, ...



Only top voted, non community-wiki answers of a minimum length are eligible