24

How to activate feature via Managed Client Object Model: public void ActivateFeature(string webFullUrl,Guid featureId,bool force,FeatureDefinitionScope featdefScope) { using (var ctx = new ClientContext(webFullUrl)) { var features = ctx.Web.Features; ctx.Load(features); ctx.ExecuteQuery(); features.Add(featureId, force, ...


10

You can use this method: function ActivateFeature(featureGuid) { var clientContext = new SP.ClientContext.get_current(); var site = clientContext.get_site(); var guid = new SP.Guid('{'+featureGuid+'}'); var featDef = site.get_features().add(guid, false, SP.FeatureDefinitionScope.site); clientContext.executeQueryAsync(Function.createDelegate(this, this....


9

In addition to Milind's answer: it is not good practice to put html directly into the CEWP just because you can. For one, it will only work on some kinds of pages. Web part pages are fine, wiki pages will chew the html. Secondly, it will be hard to maintain, since you will need to edit the web part itself every time you want to make a change. As an ...


8

$siteUrl = "http://ukreddy:3456/" $siteCollection = Get-SPSite $siteUrl Enable-SPFeature "PublishingSite" -Url $siteCollection.Url -force Enable-SPFeature "PublishingWeb" -Url $siteCollection.Url -force http://ukreddysharepoint2010.blogspot.co.uk/2014/05/error-systemargumentexception-value.html Sharepoint was failing to activate the feature PublishingWeb. ...


8

Every SharePoint site is (on general) the same, where the only difference is what features are activated. A Publishing site have the site scoped Publishing infrastructure feature activated, and the web scoped SharePoint publishing feature activated. By this a library or list can make use of Major and minor versions (with history) Content approval Check out/...


7

This issue most frequently occurs because the Community Sites or the SharePoint Server Publishing feature is currently enabled or was previously enabled for the affected site. SharePoint doesn’t support creating a template from a site where publishing or community features were enabled. This is because the publishing feature creates site elements that are ...


7

Publishing functionality is a set of two features, one at the Site Collection level and one at the Site level. You can activate them on any site like Team site, Document Center, Wiki site etc… You will find all the info on what publishing adds in that link, but here I want to showcase some reasons why I use Publishing for my clients. The publishing site ...


7

Every major version will in UIVersion be based on version * 512, so you will have to compare on 1536. For completeness Minor versions will increment the version with 1, and every major with 512. So 0.1 is 1 1.0 is 512 1.1 is 513 2.0 is 1024 2.1 is 1025 and so on


6

Yes there are four List Event Receivers: ListAdding(SPListEventProperties) ListAdded(SPListEventProperties) ListDeleting(SPListEventProperties) ListDeleted(SPListEventProperties) You may be interested in first two. See here for more info: http://msdn.microsoft.com/en-us/library/office/microsoft.sharepoint.splisteventreceiver.listadding(v=office.14).aspx ...


6

There are a few things that control this in site settings --> navigation. Managed Navigation -- use a term set for navigation Add new pages to navigation automatically -- a new item is added to the termset for each new page Create friendly URLs for new pages automatically -- This is what you're concerned about - the page shows up in the URL without the ....


5

Take a look to this link that explain How propagation works: http://blogs.technet.com/b/sharepoint_quick_reads/archive/2013/08/12/sharepoint-2013-variations-content-synchronization-between-source-and-target-variations.aspx Also check the timer jobs that are responsible of the propagations and the Variations log. From the link: Custom lists and ...


5

When a page is checked-out, the check-in and publish works as follows. Check-in: Increments the page version. The new version is visible only to users who have Full Control access and above. Publish:: Increments the page version by check-in automatically and visible to users who have Read access and above.


4

I am loading an infopath form inside the InfoPath Form Web Part after clicking a link from another page. I wanted to use the Source URL parameter but found it wasn't working. Here is my solution: <script type="text/javascript"> function RedirectIfFormIsClosed(){ var elem = document.getElementById('DialogFinalMessage'); if (elem !== null &&...


4

Create a new page layout based on the Enterprise wiki but including your web part. This page layout can then be used by all your Enterprise wiki sub-sites. The simplest way is probably to copy the existing Enterprise wiki page layout in the first instance. You will need to use something like SharePoint Designer to achieve this.


4

I'll pre-fix this with that fact that I'm not a "Dev". But I have enough knowledge to be dangerous. If these are static HTML pages, you can just add them to any document library and they will be rendered by SharePoint. If you want to automate the upload you can use PowerShell or even the REST API for SharePoint. If you want to keep the SharePoint ...


4

Publishing site is more oriented in pages, which means it has a more articulated way of publishing pages, the most common template being the 'article page'. Every page will obey to the mechanism of save-checkin-publish, it can be boring for a normal user to have to do all those actions to see his article appear. (example: an intranet with a roll up of news ...


4

Probably the most simple option would be just to hide List View Toolbar Open the page in Edit Mode Go to XLV web part properties and specify Toolbar Type: No Toolbar That's it. P.S. Of course, you could accomplish the same task using CSS or JavaScript , but what for..


4

You can copy the default page used to create those alerts in your 15 hive. Then make your modifications to the edited copy to make it do what you want. Once completed, you can use STSADM to update your Alert Templates. stsadm -o updatealerttemplates -url http://mysite -f "c:\Common Files\Microsoft Shared\web server extensions\15\TEMPLATE\XML\...


4

The answer to this question is: No, it is not possible to create another library with the same functionality as Pages on a publishing site.


4

Looks like I spoke a moment too soon. I feel a bit sheepish but I had been searching for a couple hours with no luck! https://stackoverflow.com/questions/27124620/sharepoint2013-site-csom-update-navigation-settings var publishingWeb = PublishingWeb.GetPublishingWeb(this.CC, subWeb); // WebNavigationSettings var ...


4

As a short answer : Yes it's SharePoint publishing site. A SharePoint publishing site is a site that’s built using a publishing site template. A SharePoint publishing site is a site where authoring and publishing are more structured and where content management processes are enforced. Publishing sites are typically used to create enterprise intranets, ...


4

Hey there I see you've tagged this question with "sharepoint-online". Are you sure customizing the MasterPage is an investment you want to make? Publishing sites as we knew it are pretty much obsolete when communication sites are rolled out. When you're still on-premises it makes a bit more sense. That said, if you want to have a custom MasterPage you can ...


4

Starting from Sept 2018, this feature has been deprecated in SPO and replaced with new File move and copy functionality in the modern views Reference - SharePoint Site Content and Structure (In Office 365) Admin message center ID - MC143382


3

I found this tutorial and looks like it is quite possible. http://kogzee.wordpress.com/2013/08/07/style-sharepoint-2013-top-navigation-global-navigation-menu/ EDIT The above article explains how you can integrate your custom menu with SharePoint in 2 easy steps. Suppose you have got the CSS and HTML of menu from designer and now as a SharePoint developer ...


3

To hopefully add a bit more value to this thread, it should not be necessary to edit the page in SharePoint Designer to set the master custom.master to overcome your problem - if you do you will open up another can of worms whereby a banner is displayed at the top of each page you have modified which reminds users that "The current page has been customized ...


3

You can use workflows to accomplish this. Turn on Content approval, then create a workflow that has the email and approval elements you require. Here are some resources to help you along: Get started with workflows in SharePoint 2013 http://msdn.microsoft.com/en-us/library/jj163917.aspx SharePoint 2013 workflow fundamentals http://msdn.microsoft.com/en-us/...


3

There's a CSS3 property ('background-size') for sizing background images. SharePoint adds the background image class '.ms-backgroundImage' to the body tag. You can override that CSS. Ex. body.ms-backgroundImage { background-size: 400px 500px; background-position: center center; } The JavaScript way of doing it would be to get the background image ...


3

The problem is related to the Publishing features. To resolve the issue: Go to Site Settings Click Site collection features Deactivate the 'SharePoint Server Publishing Infrastructure' feature Reactivate the 'SharePoint Server Publishing Infrastructure' feature Go back to Site Settings Click Manage site features Activate the 'SharePoint Server Publishing' ...


3

you can add security trimmed on custom masterpage which only an authorised user will be able see the ribbon 1) Open your SharePoint master page 2) Locate this line: <div id="s4-ribbonrow" class="s4-pr s4-ribbonrowhidetitle"> 3) Change it to: <div id="s4-ribbonrow" class="s4-pr s4-ribbonrowhidetitle" style="display:none"> 4) Now find the ...


3

Got it. Add the following script to the head to override the functions that add the activex: //get rid of name.dll reference function ProcessImn() { } function ProcessImnMarkers() { } source: http://www.greggalipeau.com/sharepoint-public-facing-remove-plugin-prompt/


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