Tag Info

Hot answers tagged

5

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


5

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


5

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


3

You could either change the icon for htm pages in the hive (its ichtm.gif by default ["ic" for icon and "htm" for filetype]) or overwrite it by CSS or JS. Here's a example for plain CSS: img[src="/_layouts/15/images/ichtm.gif"] { background-image: url("http://upload.wikimedia.org/wikipedia/commons/f/f0/Pdf_16x16_Crystal_SVG.png"); height: 0px; ...


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

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


3

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


2

If you can live without variations, or make use of the Content Search Web Part, I'd go for SharePoint Online. CSWP does (by description) almost the same thing, but uses a different source: Search Index. Variations Variations, translations. Syncs content from a source location to other locations by audience (SharePoint Server Only) Custom ...


2

Firstly, there is no clear answer to it...it depends! Secondly, why would you care migrating the service applications like User Profile since you will not be using it in future? User profiles service application is combination of Social tagging DB + Profile DB + Sync DB so consider SharePoint applications (Content Databases) which are dependent upon User ...


2

OK So I found the answer, as explained here: http://msmvps.com/blogs/laflour/archive/2008/05/20/publishing-content-types-and-missed-quot-createpage-aspx-quot-page-in-wcm-sites.aspx All you have to do is to set the DocumentTemplate property of the content type to: /_layouts/CreatePage.aspx so in my case: var pageCt = ...


2

I have found this also when changing/adding content types, it still defaults to upload by default. Check the Content Types on the pages library and remove any which you don't need. Try setting the web part page as the default content type. If that doesn't work (and this is critical), you could use javascript in a Script web part to redirect the New ...


2

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


2

Activating the SharePoint Server Publishing Infrastructure feature adds the Administrative links on the Site Settings page, including the ability to manage Master Pages for both publishing and non-publishing Web sites, Navigation, Searchable columns, Content and Structure, Content and Structure Logs, Variations and Translatable columns. The publishing ...


2

If you wanna display the latest items, i think you mean the Content Search Web Part. For this you need the enterprise license as it is not available to the foundation nor the standard edition. If you have a Enterprise license, add it by activating the Search-Driven content feature. SharePoint 2013 feature comparison chart all editions For the Search ...


2

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


2

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


1

Edit the page and add the following CSS inside the content editor webpart: td.ms-list-addnew { display: none; }


1

In the Server Object Model the method PublishingWeb.IsPublishingWeb is used to verify whether the SPWeb object is a PublishingWeb object: if (PublishingWeb.IsPublishingWeb(web)) { // } Regarding Client Object Model (CSOM), it actually depends on what version of SharePoint is used. SharePoint 2013 In SharePoint 2013 support for Publishing API was ...


1

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/2013/09/05/sharepoint-public-facing-remove-plugin-prompt/


1

Activate the plugin from the browser's plugin settings. Use Always Activate option. There's a similar thread on MSDN with a picture.


1

Does the sort have to happen on the fly? If not, I would create a sort-order column that contained a number value and expose it in a datasheet view so that your author can set it there, and have the default view sort by the sort column.


1

Can’t see more multiple content areas in edit mode? Two Rich HTML Fields showing the same content? To create a custom layout in SharePoint Designer with multiple page content areas (RichHTMLField fields), you should first create a custom page content type and add one custom field for each of the content areas you have in your custom layout. For ...


1

It is really tough to say which would be best option for your case. If publishing sites fulfills your needs you should go for this only. Otherwise can can enable publishing feature on other templates also. You can check the best practices as defined by Microsoft: http://technet.microsoft.com/en-us/library/cc850698.aspx ...


1

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


1

I'm not sure if you really need a complete new farm for this functionality. These are quite complex installations to configure and maintain. SharePoint has many publishing features. Depending on the requirements you might prefer one solution over the other. You can feed content to external users by using the search, workflows, cross site publishing, etc... ...


1

If you would like to publish certain content, like Excel files, I would recommend you to look into the Send to functionality. Select a file in the list and choose the send to action in the File ribbon. Enter the url of a document library in your second farm and away you go. You can also choose to predefine a Send to destination in the library settings of the ...


1

The Content Editor Web Part is intended for adding HTML content to a Web Part Page, it is not designed to link to a Web site. If you need to link to a Web site, consider using the Page Viewer Web Part. -Microsoft- http://office.microsoft.com/en-us/windows-sharepoint-services-help/about-the-content-editor-web-part-HA001160897.aspx


1

Are you using the MMS in your Publishing Site? I have never done a publishing project without some use of MMS, as a result, you need to upgrade MMS along with your publishing site or you will orphan the terms. As for search, have you created any Managed Properties that you wish to retain? If so you need a plan for upgrading those.


1

It appears that the DefaultPageLayout is stored in the Web Property bag in the format <layout guid="[UniqueId]" url="_catalogs/masterPage/mypageLayout.aspx"/> The way I solved this problem is using JavaScript below. var context; var list; var properties; var pageLayoutPage = "MyPageLayout.aspx"; function changePageLayoutDefault(){ context = ...


1

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



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