Sticky blog post

rated by 0 users
This post has 6 Replies | 1 Follower

Top 500 Contributor
Posts 45
Points 2,250
Humpty Posted: Thu, Jun 29 2006 12:26 AM
Is it possible to set a blog post as sticky, similar to forum posts?  I want a particular post, within a category, to always appear on top.  If I can't make a blog post sticky does anyone have any ideas on having something always appear on top for a category?
  • | Post Points: 20
Top 25 Contributor
Posts 2,115
Points 27,605
MVPs
Using extended attrbiutes for Post and WeblogPost objects, you can set a some extra information for blog posts but this needs coding.
  • | Post Points: 20
Top 10 Contributor
Posts 3,323
Points 73,040
MVPs
daveburke replied on Thu, Jun 29 2006 3:02 PM

Most recent blog posts are displayed first (but you can't trick CS by cranking up the post year), so if that's what you're going after you might want to create a CSModule to hook into the PostPostUpdate event, grab the time of the item just posted and set that datetime plus a minute to the select posts you want "sticky" and displayed at the top of your blog.

 

  • | Post Points: 20
Top 500 Contributor
Posts 45
Points 2,250
Humpty replied on Thu, Jun 29 2006 8:26 PM
I was afraid I'd have to do programming to get what I want. Smile  I have too many other programming projects going on to do this, so maybe I'll tackle it later.  I like the idea of having a custom attribute stored with the post to indicate it should be sticky, and implementing the whole thing with a CSModule is what I'll probably do.  Is it possible to add to CS' interface programmatically, without modifying files?  I'm thinking I'd have to edit some .ascx file to add the checkbox indicating a post should be sticky...  If I were to do this I'd like to make it general purpose enough to release for others.  (Just thinking out loud.)
  • | Post Points: 20
Top 25 Contributor
Posts 2,115
Points 27,605
MVPs

I think it's not fair to say CS should have anything that we want to have.

What you want is a special case (very very special case).  CS can save custom attributes with post as I said first but who can guess you used it for whic purpose to handle it? So you'll need coding again.

That's a good idea to make it public and this is the proper way.  When something isn't common it's better to make it available as an Add-in Wink.

  • | Post Points: 20
Top 10 Contributor
Posts 3,323
Points 73,040
MVPs
daveburke replied on Fri, Jun 30 2006 1:16 PM

It is bit of a special case. Smile

How about this, Humpty.  If you don't want to mod the source, could we approach the sticky blog posts as articles, then duplicate the EntryList control in the EntryListContainer.ascx but generate Articles at the top, then blog posts as normally below it?  That SOUNDS like it would work...

 

  • | Post Points: 20
Top 500 Contributor
Posts 51
Points 730

Hi all,

Is there anyway to Sticky blog post? Please suggest me in CS 2008 SP1

In forum we have available but in blog we have to coding some for it?

Thanks all!

Take SharePoint to new height

  • | Post Points: 5
Page 1 of 1 (7 items) | RSS
Powered by Community Server (Commercial Edition), by Telligent Systems

Copyright© 2008 Telligent Systems Inc. All rights reserved
CommunityServer.com  •  Telligent.com