Tag Info

Hot answers tagged

3

Wouldn't you need to make this: ($link.url -like '.doc' -or $link.url -like '.docx' -or $link.url -like '.pdf') like this: ($link.url -like '*.doc' -or $link.url -like '*.docx' -or $link.url -like '*.pdf')


2

Disable Event Firing when you're making the update to the item. See here for an example. Make sure you don't leave the events disabled, though! Wrap the code in a try, catch, finally that ends with re-enabling the events. try { this.EventFiringEnabled = false; // Your updating code... } catch (Exception ex) { // Handle exception } finally { ...


2

From your code it seems you are using the same code for handling ItemAdded on both the lists. So what is happening is on inserting item in 1 list is inserting an item into the second list. And this invokes the event receiver in Second list. Two possibilities. You might have attached the same event receiver 5 times - You can review this using SharePoint ...


1

If you do not have Publishing features enabled there is no link to "Content and structure" in Site settings. You should be able to reach it through: http://YourSiteUrl/_layouts/15/sitemanager.aspx Not sure how you mean this is related to hiding the global navigation though.


1

If you go to Site Settings page you will see Content and structure under Site Administration Or directly browse the page /_layouts/15/sitemanager.aspx


1

As others have said, this could be because the event receiver is registered multiple times. But to me, it looks like this is happening because you have this ItemAdded event receiver registered for both the "Jawna" and the "Niejawna" lists and you're basically trying to create copies of items between the two lists. To get around this you should disable event ...


1

This is because SharePoint 2013 Workflows are hosted on Workflow Manager. So you need to add a new workflow subscription to Workflow Manager. I found the following articular useful to workout how to do this. Although this uses the CSOM rather than PowerShell. Working with the SharePoint 2013 Workflow Services Client Side Object Model Here is a ...


1

Picture Library Slideshow web part In SP2013, there is a check box Show Toolbar use that to hide next previous and pause control


1

You can create a custom permission level that does not allow deleting. You'd essentially copy contribute and deselect the delete option. This solves point 1. For point 2, there isn't really anything that handles this. Item level security settings on lists comes close, but it isn't fully what you need and isn't available in libraries. You'd probably need to ...


1

You can also do the same using $ext = [System.IO.Path]::GetExtension($link.url) if($ext -eq '.doc' or $ext -eq '.docx' or $ext -eq '.pdf') { #file found }


1

You're missing * in all the file extension tests



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