Now your content eitor webpart is added. Click inside the webpart and from the ribbon choose edit source. Then add the following code to the edit source dialog box and click ok.
Now click on the page tab and click on stop editing page from ribbon. Now see the effect as one attachment control is added to the new form as shown in the fig below:. Posted in SharePoint , Site Collections. Newer Post Older Post Home. Powered by Blogger. Subscribe to our RSS feed! Follow me on Twitter! Popular Posts Change master page in SharePoint In this article we will discuss about how to change the master page in SharePoint Also you can see my previous blogs on SharePoint Save site as template in SharePoint In this post we will discuss how we can save site as template in SharePoint In this article you will learn how to Enable Attachment in SharePoint Blog post list and display the list Attachments.
Generally, SharePoint blog site, Post list doesn't have attachment facility to add documents to the list. Here we will see, how we can handle it in different ways. Approach 1: we handle it in site definition level. Approach 2: we will add the Following Code inside the Default list pages. Add the following Code into Newpost. Add the Row next to the Webpart zone Row. To do this, you use the Attachment property on the SocialPostCreationData object that defines the post.
Posts can contain one attachment, which is represented by a SocialAttachment object. ContentItems property. For more information, see How to: Include mentions, tags, and links to sites and documents in posts in SharePoint.
The API described in this article is from the. NET client object model. See Additional resources for links to documentation for related APIs. The code examples in this article show how to add image, video, and document attachments to microblog posts. These examples are from a console application that uses the following SharePoint assemblies:. To use the examples in this article, you'll need to upload an image, a video, and a document. To use the video example, the video feature must be enabled on the server and the video file must be stored in an asset library.
To use the document example in an on-premises environment, Office Online must be configured in the environment. For instructions about how to set up your development environment and create a console application, see How to: Create and delete posts and retrieve the social feed by using the.
NET client object model in SharePoint.
0コメント