Tag Info

New answers tagged


The SPFile object has a ForwardLinks and Backwards link property that contain SPLinkCollection that you may be able to query. Add-PSSnapin Microsoft.SharePoint.Powershell -ea 0; $web = get-spweb '<url>' $list = $web.lists['Pages']; foreach($file in $list.items){ $links = $file.ForwardLinks; foreach($link in $links){ if($link.url ...


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'); });


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.

Top 50 recent answers are included