Hot answers tagged

4

You cannot change the parent content type of a content type: The Parent property is read-only. The content type ID is prefixed with the parent content type's ID. See explanation here which is for SP2010 but it works the same for SP2013. You have to basically re-create the content types using the correct parent from the start.


3

Make the list a template and don't include the data. You can make new lists from this template and even add additional columns to the new lists without affecting the original.


3

It is not SharePoint issue rather it is Office problem. You can disable this warning going by going to trust center settings of excel. Click the File tab. Click Options. Click Trust Center, and then click Trust Center Settings. In the Trust Center, click Macro Settings. Make the selections that you want. Click OK. Read more here: Change macro settings ...


3

Yes the site template Enterprise Search Center is available in the SharePoint Server 2013 standard edition. The features of search NOT available in standard version is: Content Search Web Part Custom entity extraction Extensible content processing Query rules—advanced actions Search vertical: “Video” Tunable Relevancy Reference: SharePoint 2013 feature ...


2

Try this #Variable for Web URL $WebURL ="Your URL " # Varibale to hold document count $count = 0 #get Web object $Web = Get-SPWeb $WebURL if ( ($web.HasUniqueRoleAssignments) -and ($web.IsRootWeb -eq $false ) ) { $web.ResetRoleInheritance() Write-host "Broken Inheritance Reset on web:" $web.URL } #Get Lists with Unique permissions - Exclude Hidden ...


2

You can simply highlight the folder, then open the Files tab in the ribbon and click on the "Shared With"-button in the Manage section. There will pop up a modal dialog in which you have to click on "Advanced". From there you can break the inheritance and remove/add permissions to your liking. In your case you have to change the permissions to "View Only" ...


1

Enable the Publishing feature on Site Collection feature and Manage Site feature. This will enable the functionality of a Publishing site.


1

By default SharePoint blocks certain file types like Exe, Dll etc. You can make this configuration from Central Admin web site.


1

Not so trivial after all. I played around a bit and here is what I came up with: Notes first: You will need jQuery (at least on the DispForm.aspx of the Training Calendar list and on the NewForm.aspx of the Registration list) You Registration list needs a lookup column to the Training Calendar list You will have to deactivate Minimal Download Stratgy on ...


1

It is not totally clear whether you want to write the value to the list or just display the value. So here is another solution which only displays the value without actually writing it to the list: ExecuteOrDelayUntilScriptLoaded(sum, "inplview.js"); function sum(){ ReRenderListView_old = ReRenderListView ReRenderListView = function(ctx){ ...


1

You can get total of the current view from ctx.ListData.Row. var total = 0; ctx.ListData.Row.forEach(function(item) { total += item["column1"]; }); Then update the column2 using REST API function updateItem(url, oldItem, newItem) { $.ajax({ url: _spPageContextInfo.webAbsoluteUrl + url, type: "PATCH", headers: { ...


1

The following CSS should work for you as it does work for me: .ms-tileview-tile-detailsListMedium { padding-right: 30px; } This is not a "tricking" solution, but a supported solution. You are allowed to change the CSS of SharePoint as you wish, especially when you have your own masterpage. By changing the CSS of SharePoint I mean create your own CSS ...


1

Considering Home is your folder name which you need to set in page viewer webpart try below url: https://learning.company.com/sites/dashboard/SiteAssets/Home This should work well with your Page Viewer Webpart. If you have another folder inside home, say folder named Test url should look like below https://learning.company.com/sites/dashboard/...


1

Sounds like Alerts are turned on for the list. You can check the subscriptions by going to the Manage Alerts page. You can navigate there by going to: Site Settings > Site Administration > User Alerts The address though is just YOURSITEURL/_layouts/15/sitesubs.aspx


1

Something like this. Get the value of query string using GetUrlKeyValue and then use javascript/jquery to set the selected dropdown value. $(document).ready(function () { var dropDownValue = GetUrlKeyValue('Team'); if (dropDownValue) { $("select[title='Team']").children("option").each(function () { if ($(this).text() == ...


1

Put this JavaScript code in your newForm.aspx page in SEWP: <script type="text/javascript"> function myFunction() { document.getElementById("your dropdown control's id").value = getParameterByName('Team'); } window.onload = myFunction; function getParameterByName(name) { var url = window.location.href; name = name....


1

Yes. It's completely fine. Either you can use like below code in using block: using(SPSite oSPsite = new SPSite("http://server")) { using(SPWeb oSPWeb = oSPSite.OpenWeb()) { str = oSPWeb.Title; str = oSPWeb.Url; } } You can get more information from here Reference: https://msdn.microsoft.com/en-us/library/bb687949.aspx https://...


1

If you are explicitly creating object for each of them, then you are supposed to dispose that object also. var site = new SPSite(url); var web = site.OpenWeb(); var list = web.Lists["ListName"]; Here you will need to dispose each object explicitly as a good coding practice like this: web.Dispose(); site.Dispose();


1

I finally found the answer! adding these two lines to the top of my script worked. $w = Get-SPWebApplication -Identity https://mysharepoint.org $w.GrantAccessToProcessIdentity("domain\my_username") Full script: $s = New-PSSession -ComputerName mysharepoint.org Invoke-Command -Session $s { Add-PSSnapin "Microsoft.SharePoint.PowerShell" $w = Get-...


1

Found part of the solution needed for your problem in a blog comment by some guy named Marcus (http://www.sharepointblogs.be/blogs/vandest/archive/2014/03/26/sharepoint-2013-search-open-in-client.aspx): private void EnsureOpenInClient() { UserPreference preference = UserPreference.GetUserPreference(); if (!preference.IsSettingEnabled(UserPreference....



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