Tag Info

Hot answers tagged

3

Use: $("a:contains('Like')").click(function(){CallMe()}); Jquery will stack the calls so the original click function is also called. .click


3

Copying and then deleting a document is certainly not the same as moving it. Among other things, it will not preserve the document history, if it has a document ID it will not be preserved etc. In your workflow, you just need to “Update List Item” and update the “Path and Name” field with the folder name where the document should be moved in. If the ...


3

No, but you can use the "Copy" function and then the "Delete" function. So you have the same "Move" functionality.


2

expanding on Annchal method you could use explorer view to do this. Time is money, your going to manually create the document library and then write and test the code which could take some time to get it correct as its over three libs on sharepoint. opening the document library in explorer view will make it easy for you to move the whole folder or copy ...


2

Sean It is possible to do this however you will need a workflow to run behind the scenes to create a sneaky URL with some specific elements in it to show the latest Published version of any document - i.e. the Major release. Basically the way SharePoint manages previous version of documents is in using a set of hidden folders of all the previous ...


1

If you are using SP2013/2010, there is a feature for what exactly you are looking for. 1) Go to the document library. 2) Select a document(by clicking the check-box). 3) Open the Library tab from the ribbon on the top. 4) Click on the "Tags and Notes" link on the ribbon. 5) Click on the "Note Board" tab on the Popup. 6) Write your comment and ...


1

MetadataNavigationSettings contains FolderHierarchy hierarchy for that purpose, the attribute HideFoldersNode defines whether to remove or add Folder hierarchy field: <FolderHierarchy HideFoldersNode=\"True\" /> But for some reason(!) MetadataNavigationSettings class does not expose that property, in fact it is declared as an internal property. ...


1

Use ListItem.DeleteObject Method to delete the document item from a Library, for example: var list = ctx.Web.Lists.GetByTitle(listTitle); var listItem = list.GetItemById(listItemId); listItem.DeleteObject(); ctx.ExecuteQuery();


1

You can't easily. You can try: Page Viewer Web Part, and just consume the library from Subsite A. When setting up the URL to the page, include IsDlg=1 at the end, that'll hide the ribbon and stuff: http://davidlozzi.com/2014/03/25/we-all-know-what-sharepoint-isdlg-does-wait-what-the/ Custom web part which pulls and reads the library, but you would have to ...


1

When you add a page content field it will created as sealed column and by default sharepoint doesn't allow to delete sealed columns. So to delete it via pwoershell. $web = Get-SPWeb “https://sharepoint.comm/” //this will get site collection reference $list = $web.Lists["List Name "] //get the list / library where Column is added $field = ...


1

You could utilize the following pattern to inventory SharePoint objects (converted example): Get-SPSite $siteURL | Select -ExpandProperty AllWebs | Select -ExpandProperty Lists | Where { $_.BaseType -eq "DocumentLibrary" } | Select Title, Created, ContentTypes


1

Try below piece in your code. if($list.BaseType -eq "DocumentLibrary") { foreach ($ctype in $list.ContentTypes) { write-host "List name:" $list.Title write-host "List created:" $list.Created write-host "List content type:" $ctype.Name } } http://gallery.technet.microsoft.com/office/Find-Lists-or-Libraries-fd247709


1

You have multiple ways of uploading a document, depending on where you code is running. Server object model: var context = SPContext.Current; // Get the web reference var web = context.Web; // Get the library reference var docLib = web.Lists.TryGetList("NAME OF THE LIBRARY HERE"); if (docLib == null) { return; } // Add the document. Y asume ...


1

As you said now server side installation / powershell then your option is very much limited. Save the list / library as template on source side and then move it to destination site collection, after that create new library using that template. This will move all documents to new site collections. But if you want just few documents then i would create temp ...


1

How to create Wiki page using SharePoint CSOM The example below demonstrates how to create wiki page via CSOM (VB.NET version): Sub CreateWikiPage(context As ClientContext, pageName As String, pageContent As String) Const templateRedirectionPageMarkup As String = "<%@ Page ...


1

Take a look at this article: Creating a Page layouts content types. It describes everything you need to know. Just make sure you select parent content type from as Publishing Content Types and Parent Content Type as Page. After that you just need to add this content type to the library where you want to add it. Page layout html can be anything you want to ...


1

Navigate to the below path and disable the option: Adobe Reader -> Edit -> Internet -> Open in browser (Uncheck the option)


1

I've just had a similar issue: Exception occurred. (Exception from HRESULT: 0x80020009 (DISP_E_EXCEPTION)) at Microsoft.SharePoint.SPGlobal.HandleComException(COMException comEx) The symptoms were similar to above with the issue only happening in test and prod with front and back end servers. The entire page that my web part was on would not display. ...



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