Hot answers tagged

13

Although it is not mentioned directly in the MSDN documentation, the <Now/> element only takes effect when used inside the DateRangesOverlap element. Please have a look at the CAML example given in both links. When used outside the tags, where you would normally use a <Today/> or a <Month/> element, SharePoint simply ignores it which makes ...


9

A few comments: The views are limited to 5000 (by default), not really the list. This means a design including a folder structure is less subject to the limitation. The performance impact is more determined by the usage of the list than its volume. Number of read or write operations, and ratio between writes and reads are very important. The performance ...


8

I noticed that the in the webpart div container there were two attributes, 'onkeyup' and 'onmouseup' which called a JavaScript function to trigger the list tools to show. I added a single line of jQuery code to remove those two attributes from the s4-wpcell div container and I no longer get the list tools to show on when I click anywhere inside the list ...


8

I know this is old, but I was also frustrated, that nobody had done this before. I decided to write my migration script in powershell. If you ever need something like this again, give it a try: http://memyselfandbenchase.blogspot.de/2015/07/migrate-your-wordpress-blog-to.html Hope it helps someone else. Here is the script. Sorry that it is so long. #...


7

There are just a few easy steps to follow in order to customise you blog page, the best way is to edit the blog.xsl file responsibl of rendring the blog posts. The standard SharePoint 2010 default page looklike : Assuming that you have already created a blog site, let's go to the 14 hive of your server and edit the blog.xsl file. C:\Program Files\Common ...


6

Which will work best to achieve my requirements; to have a wiki site or to have a blog site OR there is a better approach to follow?. I would rather have an Enterprise Collaboration Site with Publishing Feature enabled for the requirements mentioned below. It just gives the little extra "room" for managing content. And then as and when required configure ...


5

The advantages would be as I see them: Tighter integration into the company SharePoint platform Single user login for intranet / blog More business orientated, linked with the mysites this can be customised to show hierarchies and business structure Integrates with people search More administrator control Single code base, meaning less in house variety of ...


5

How to customize SharePoint Blogs using client-side rendering (CSR) Since the client side rendering (CSR) is the default rendering mode in SharePoint 2013, below is demonstrated how to override Body field in such a way that the link for the post will be displayed via CSR. And the resulting page could look like this Example: how to override ...


5

Since in SharePoint 2013 was introduced Client Side Rendering that represents HTML/JavaScript rendering framework for list views & forms (follow, for example, this article for an introduction), below is demonstrated how invoke a custom code in OnPostRender event: SP.SOD.executeFunc("clienttemplates.js", "SPClientTemplates", function() { function ...


5

The comments section on each post is a list view web part pulling from the Comments list. In order to get the reply feature, we need to create a custom Comments web part using HTML, and JavaScript. Here is my analysis to finish this customization New Column in Comments List The reply is also a comment to another comment on a post. But it requires to know ...


4

2;#post1 is a SPFieldLookupValue where the LookupValue is "post 4" and the LookupId is 2. The LookupId of the item being looked up is the list item ID in the list it's being stored in. To set the value of a lookup field you have a few options: newItem["PostTitle"] = 2; // Just pass the lookup ID newItem["PostTitle"] = new SPFieldLookupValue("2;#post1"); /...


4

If you are referring to a blog on the "public" SharePoint site hosted by Office 365, it uses a Facebook plugin for comments on blog posts, not the traditional SharePoint comment list. If you are referring to a different SharePoint site hosted on Office 365, if anonymous access is configured, you can grant anonymous access for users to add items to the ...


4

From the same article you linked to: Note: Usage reports are only available for Document Libraries and Product Catalog lists. I don't want to believe that's true, but it seems to match the observed behaviour of SharePoint 2013 :-(


4

You change it, there are couple of ways. Method 1 using the GUI, this should be done by every user. via site setting Site settings >> Click on Title, description, and icon Link under "Look and Feel", Change the name and description as per your requirements! Method 2: You can use the powershell. #Get the Web $Web= Get-SPWeb "http://your-...


4

Query using "ContentType:Post" in the search results webpart of the search subsite. It will take you to the Post directly rather than linking to the main blog page.


4

Comments list stores PostTitle which in turn contains both ID and Title for the Post. In the ViewComments.aspx page, you can use REST api to create a link to the related Post. var listname = 'Comments'; JSRequest.EnsureSetup(); // or use other function to retrieve param var id = JSRequest.QueryString["ID"]; //REST call var call = $.ajax({ url: ...


3

I can give you the overview of the process and hopefully kickstart something that will get a post with more detail: You will need to add a CQWP to the page and configure it to pull posts. Then you will need to export the webpart and modify the fields it is pulling in. By default you only get the titles, you need to configure it to get the "rich html" ...


3

What you could probably do is open the blog page in sp designer and then remove the whole div element named something like PlaceHolderLeft. (I don't have access to Sharepoint right now) When this element is on the page, the page will use the LeftNavBar and thereby quicklaunch from the masterpage. Otherwise the element on your page will overwrite the on in ...


3

To offer an alternative, just use a Links list and put the Links web part on your page. You can remove the Category and Archive web parts if you want, and just have your custom links showing in the left-hand column.


3

I got it working, with help from rjcup's answer (which help me link them together). here's my working (uncleaned) code: protected void btnStart_Click(object sender, EventArgs e) { string qmSPSiteURL = ConfigurationManager.AppSettings["qmSPSiteURL"]; using (SPSite site = new SPSite(qmSPSiteURL + "/communityspaces/authoring-zone/blog"))...


3

Using Word 2010 I went through the actions to create a new blog post to get to the Blog UI Use the "open existing" command Make edits and "publish" as usual


3

Here is a straight-forward guide. The issue is to show XSL code, which is ghosted. You can show them by touching XSL-driven layout in WYSIWYG editor of SharePoint Designer 2010, but Post.aspx requires ID parameter to show a Post XsltListViewWebpart. Open Post.aspx on All Files/Lists/Posts/Post.aspx in SharePoint Designer 2010 There is no XSL code. It's ...


3

When you say that it didn't work, does it fail to parse, or does it simply not match your desired data? <Value IncludeTimeValue='TRUE' Type='DateTime'><Today /></Value> should work, I tested this in a query in U2U and it worked fine. I would check <Geq> as well as <Leq> to make sure it's not an issue of timezone. SharePoint's ...


3

Here's the solution to fix the post web part on the Post.aspx site. Delete the faulty "Post" web part. Add a new post web part (this will display a list of all posts) Edit the web part by changing the view property to "<Summary View>". Under Appearance setting, set the Chrome Type to None Click on apply, then OK. Open SharePoint Designer, navigate ...


3

In order to enable Enterprise Metadata for Posts follow the steps below: go to Blogs list select List Settings and then Enterprise Metadata and Keywords Settings , enable Enterprise Keywords


3

Modifying the underlying XSL files worked in SP2010: http://blog.kappasolutions.ca/blog/post/2010/09/12/How-to-Display-HTML-in-Content-Query-Web-Part.aspx Specifically, setting disable-output-escaping to yes in ItemStyle.xsl. ie. <xsl:value-of select="@Something" disable-output-escaping="yes" /> I haven't tried it in 2013 yet, but this article ...


3

Since Body field is a Rich-Text field, the below example demonstrates how safely to truncate Html content. In the specified example, text content is retrieved first and then text is truncated. Template file (Blogs.js) (function () { var rCtx = {}; rCtx.Templates = {}; rCtx.Templates.Fields = { 'Body': { 'View' : renderHeadline } }...


3

By when a user posts a comment, you probably mean that user is located on the page Post.aspx, right? Assume the custom field PostAuthor have to be displayed instead of standard Author field in blog page and the following template is used for that purpose: SP.SOD.executeFunc("clienttemplates.js", "SPClientTemplates", function() { SPClientTemplates....


3

http://sprecipe.com/2016/04/02/pimp-my-sharepoint-episode-3-enhance-your-sharepoint-blogs-with-previousnext-buttons/ Disable Minimal Download Strategy Feature for blog site Edit Posts.aspx page Add a script editor webpart to this page Paste the following script into the script editor and save the page. Remarks: you should upload jQuery to your portal and ...


3

You are right, the body field has rich-text as a data type that is is not supported in calculated field formulas. So , if you need to create a new field that will hold summary data from body field , try to Create simple custom workflow via SharePoint designer, and use Extract String from start of string and update list item action as the following : In ...


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