Hot answers tagged

7

If you add list using ListInstance then you can add items using ListInstance file: <?xml version="1.0" encoding="utf-8"?> <Elements xmlns="http://schemas.microsoft.com/sharepoint/"> <ListInstance Title="LinkList" OnQuickLaunch="TRUE" TemplateType="170" FeatureId="Your feature id" Url="Lists/LinkList" Description="Your description"> ...


3

You can write a javascript function to solve this. <script type="text/javascript"> $(document).ready(function(){ if("your condition") { $('.s4-ba a').attr('target', '_blank'); } });</script>


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

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 { ...


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

The Summary links web part is a static web part, meaning that all links are manually entered and maintained. A much flexibile approach, which will allow you in the future to control the content outside of the web part would be to import the Excel file into a new Links list by example and use the Data View web part to create the Accordion. Please consult the ...


1

Installing the Chrome extension IE Tab Multi (Enhance) did the job for me. It has the ability to auto-detect URLs so whenever I browse to our SharePoint it emulates Internet Explorer. Finally I can open Office documents directly from Chrome. You can install IETab for FireFox too.


1

I'm not sure what your CEWP is doing but a content editor is typically just a blob of HTML and won't be globally updated. If you items are in a list, you can drop the list on other pages and when you update your core list, the results will distribute down to the list view web parts on the pages. Or if you want to manipulate the way your links appear, you ...


1

Here is another option that doesn't require any added code. If the Edit List Item Link button doesn't have to be above the list in a webpart, you could opt to add an Edit Item icon to a list view itself, and it will be inline on the row with the item. Modify the List View (or the if a webpart on a page, go to > Edit Web Part > Edit current view) In the ...


1

You could use the site setting 'Inherits top navigation from parent site' to keep the same top-nav in all your subsites. It's an option when you create a new site, you you should find it under Site Settings > Look and Feel > Navigation or similar (it varies a little in publishing sites)


1

Use relative URL's in the list. (i.e. use /Page.html instead of site.com/Page.html).


1

I found the source and solution of the problem. The source is a &nbsp; in line 563 of 14\TEMPLATE\FEATURES\LinksList\List\schema.xml: <td style="padding-bottom: 5px" class="ms-vb"><img src="/_layouts/images/square.gif" alt="" />&#160;</td> I'm not sure what that &nbsp: is doing there but adding nowrap="nowrap" to the first td ...


1

No, unfortunately, your best bet is to use xslt scripts which enable you to modify the search result display of your search query.


1

You can create item level permissions on the Links list urls. This will trim the results based on the logged in user when displayed in a web part by selecting Item Level Permissions from the ribbon or the drop down menu when you have an item selected. You could obscure the links by using audience targetting, users could wind up seeing them so don't confuse ...


1

Assuming you're using the Summary Link Web Part. Create three groups with the correct header names. Reorder the links to go under the correct headers. If you're using the "My Links" on MySite, it's almost the same approach. There's groups for the links there as well, which will show as headers in the web part


1

Add a column to the Links list. In this column enter the category for each link. Then create a list view that is grouped by the category. Edit after clarification: I see several possible approaches without involving code: use several list view web parts side by side, filtering only on the categories you want to display use a DVWP with a table structure ...


1

I think you need a bit more detail but it sounds like you just need a workflow on list a than runs every time an item is edited. The workflow will then create a new item in list b copying all the fields.


1

Similar questions is asked here: How can you have SharePoint Link Lists default to opening in a new window? You can edit the page in SharePoint designer, convert the List View web part to an XSLT Data View. (by right click + "Convert to XSLT Data View"). Then you can edit the XSLT - find the a tag and add an attribute target="_blank"


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, ...


1

You are able to access the files in a document library via C# SharePoint Library and read from an excel file. Read from excel file: http://social.msdn.microsoft.com/Forums/vstudio/en-US/b6e8a28c-6760-4e86-a1aa-e2ce9ec36380/reading-excel-from-c?forum=vsto Use C# to access sharepoint list: ...


1

You should not change any out-of-the-box SharePoint files, not only XMLs/XSLs or JS files, but images either. Your changes will / might be overridden by upcoming service packs / cumulative updates. Instead of this you can add a Script Editor web part to the page and update the src attribute of the bullet images via JQuery to refer to the right image file you ...


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

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

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


1

Your best bet, IMO, would be to inject a JavaScript code into the display page of the links list. That JavaScript code would grab the hyperlink value, and use it to redirect the browser. If this suits you, we can try to find the best way to 1. inject the JavaScript, 2. and implement that JS code. [EDIT] 1. Can be achieved by editing the dispform.aspx ...



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