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


4

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

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


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

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

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

A template is essentially a starting point used to create a site. For example the team site includes document library, an announcements list, a calendar, a contacts list, and a links list. This could all be created manually using a blank site if you wished. As Daniel stated if you don't have any content yet your best bet might be to delete the site and ...


1

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


1

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


1

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


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


1

It is also possible, using an encoded literal. Like this: <title id="onetidTitle"> <SharePoint:EncodedLiteral runat="server" text="My Site" EncodeMethod='HtmlEncode' /> <asp:ContentPlaceHolder id="PlaceHolderPageTitle" runat="server"/> </title>


1

it seems the key element in the above answer is: Overwrite="TRUE" I don't pretend to know why but from what I have experience you MUST include this parameter in your lookup column if that column (or a content type that uses it) is going to be reference across features.


1

A more authoritative source for site planning is from Microsoft itself - Plan sites and site collections (SharePoint 2010). The approach calls for a thorough requirement analysis in the planning (see the Site Planning data worksheet in the link above). It's not clear from above question what version/edition is being used. There is also a reference for ...



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