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

Go into the list settings for the blog. Click on Advanced Settings and set the Allow Management of content types to Yes and click OK. Click on the Post link in the Content types section and then click category. Set the field to either Hidden or Required and click OK.


4

Yes, you can change the order. The webpart that displays the posts is just a list view webpart. The trick is this - go to the posts list add a new view, get it sorting the way you want, test. save. go back to your blog homepage edit the page edit the 'posts' webpart's properties select your newly created view in the 'list views' section click OK. Save. ...


4

The blog post rendered by xslt transformation. In this case you should change XSL template for your posts in 14\TEMPLATE\LAYOUTS\XSL folder. You can use this post as start point to understand how does it work.


4

Create a view only showing published items and change the alerts to be on changes to an item that appears in that view. Note that the list needs at least one view with a filter for that option to appear


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

The problem was resolved by deactivating the SharePoint Publishing web feature on the Blog. Looks like there are some incompatibilities beetween the blog and the publishing web feature. The Execution time for binding DataFormWebPart went from ~3s to ~1ms.


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

I solved it. For posterity: CamlQuery cqUserName = new CamlQuery(); foreach (ListItem liItem in oListInfo) { FieldUserValue fuvAuthor = (FieldUserValue)liItem["Author"]; cqUserName.ViewXml = "<View><Query><Where><Eq><FieldRef Name='ID' />" + "<Value Type='...


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

Using Search Core Results web part is definitely the best approach out of the 3 options you mentioned and it's easier than you might think: Add the Search Core Results to the page (may need to activate the Search Server Web Parts site collection feature to enable make the web part available) Set the Location web part property to Local Search Results if ...


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

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

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

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

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


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