Tag Info

Hot answers tagged

7

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


5

End User Setting up an alert for blog posts is a bit hidden. Without a shortcut, the easiest steps I can find to setup a new alert are: Click a blog post Click "Posts" in the breadcrumb Click Actions -> Alert Me Site Administrator To manage existing alerts, make sure you are within the site that contains the blog. For example, if your Posts list is at ...


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


4

Ok, the problem is solved. In the newest verstion oh Windows Live Writer 2011 you don't need the metaweblog.ashx. Just do the following to connect to your blog. Add Blog -> Other Services -> Enter normal webadress without path to metaweblog.ashx and credentials (WLW knows what service to use).


4

Here is a thread about it on msdn The essence from the thread: You'll need to activate SharePoint Server Publishing It is not available in enhanced rich text but it is in Publishing HTML. Change your column type to Publishing html and it will work


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

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


3

I'd recommend using Windows Live Writer (WLW) rather than Word for editing blog posts. Word is really overkill and not specifically designed for blogs like WLW is. WLW is a free download from Microsoft: http://explore.live.com/windows-live-writer


3

Ouch. Your SQL Server seems very slow I think something is slowing down your SQL Server. To be sure, can you check that all SharePoint sites are slow during that time ? (not only the blog) I would recommand you to take a deep look onto the SQL Server, in particular : Is there an antivirus that may be the cause ? Is there a robot used to copy data that ...


3

This question came up some time ago on the MS foras. The answers are more usable for anonymous access (eg removes for all) but see if it gets you going. http://social.msdn.microsoft.com/Forums/en-US/sharepoint2010general/thread/4848315b-c9c2-4bbb-a1cd-f3a106e0fd8e


3

EDIT I have now tried this from within a console application local to my SharePoint VM. I can confirm it works in that environment (both "Created By" and "Modified By" were updated). Let us know if you run into issues using it from within your Windows Service. If I understand your requirement correctly you could most likely update the list item after the ...


3

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.


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


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

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


3

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


3

I went a little different direction to fix this problem before. I created a special webpart which allowed you to configure it to create a blog post as another user. Here is the meat of the code to accomplish that: //UserId = string of full login name of manager/person you want the blog to be created by //listView = SPView of the blog using (SPWeb listWeb ...


3

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


2

Create a site definition based off the blog template: http://msdn.microsoft.com/en-us/library/gg276356.aspx or a better way is to utilize feature stapling, where you can inject your customization for just about anything, including changing master pages. http://www.mssharepointtips.com/tip.asp?id=1065


2

Has anyone experienced this Yes :) and might have a workaround You might end up in implementing a Workflow/Timer job if you want to automate the publishing process. However, you could use major/minor versioning to write "draft" versions of a post that not gets published until you click on Publish as Major Version.


2

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


2

Unfortunately ID is not supported in XML defined Alert Templates; you will need to use an IAlertNotifyHandler class to insert the ID as needed. You can find out more on how to do this here: http://blogs.msdn.com/b/sharepointdeveloperdocs/archive/2007/12/14/how-to-customizing-alert-emails-using-ialertnotificationhandler.aspx


2

You can create sub-sites for your publishing portal that are not publishing sites using the stsadm command: stsadm.exe -o createweb -url http://path-to-publishing-site/subsite-name -sitetemplate -title For more information, see here: http://sharepointhillbilly.com/archive/2009/07/09/creating-a-sub-site-of-a-publishing-site-that-is-not.aspx.


2

One of the possible solutions is : 1) Create a list 'Votes' to hold votes with a look-up column 'Post Id'. This column will fetch the look up values from 'Id' column in Posts list. Also, create 'Vote'(Yes/No) and 'Voted by'(Person) columns. 2) Create a custom control which will have just a button to vote. You can hide the button from current user if he is ...


2

If you want to avoid server side code, then CSS through your custom master page is the way to go. I looked at the webpart that renders the Create Blog link. The Create Blog link will always be shown to the My Site owner until a Blog site is created. Your only options are to hide the webpart through CSS or remove the webpart by manually editing the page or ...


2

Unfortunately, this doesn't look to be possible out-of-the-box. There is a Codeplex project that addresses this limitation. They acknowledge SP2010 does not support provisioning of pre-dated posts and provide an alternative web part that works with pre-dated posts.


2

The summary view doesn't show up when you edit posts. You need to modify the view associated with the blog widget. I stumbled on the following and it does the job. On main blog page select Site Actions -> Edit Page. On "Posts" widget select Edit -> Modify Shared Web Part. Under selected view there is a drop down but also just below that a link "edit the ...


2

The following will also work: cqUserName.ViewXml = "<View><Query><Where><Eq><FieldRef Name='Title' />" + "<Value Type='Text'>" + strUserName + "</Value></Eq></Where></Query>" + "<ViewFields><FieldRef Name='Title'/><FieldRef Name='Picture'/>" + ...


2

See if this helps you: http://www.c-sharpcorner.com/uploadfile/Roji.Joy/customize-sharepoint-2010-blog-post/ It basically consists of: Make a copy of the blog.xsl from hive. Make your changes to the copy. Edit your Posts.aspx in SPD. Modify the XslLink property of the Posts webpart to point to your custom blog.xsl



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