Click here to Skip to main content
Click here to Skip to main content

Sticky posts in SharePoint Discussion boards

By , 2 Jun 2009
 
If you have used SharePoint discussion board in your team site, then you would have wondered that there is no option to make the post as sticky.
By default SharePoint doesn't provide this facility, but it can be acheived easily with the out of box options available with the Discussion board list. After making this changes the discussion board will look like below.

Step 1 Create a Column in the list

Goto the list settings and create column.

Name the column as "Sticky", and choose as
checkbox (Yes/No). We are going to give the option to the owner of the post,
while creating the post whether it should be set as sticky or not.

Step 2 Create a View for Sticky posts

Goto the settings page and create the view and name its as "Sticky", set is as
public view

Another important thing in the Sticky view is changing the sort columns. First
sort coumn should be "Sticky", that is the intention of having the sticky posts.
Sticky posts should be always shown on the top and then followed by the Last
updated posts. So set the "Then sort by column" to Last Updated column. as indicated below.
Step 3 Selecting the Sticky view

Whereever we are showing the discussion board, that is the List View webpart.
Click on modify share webpart menu and change the selected view to "Sticky"
which we created in Step 2.

Now we have the Discussion board ready with the Sticky option.




All the posts which are marked as sticky will be shown on top always.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

About the Author

Rajesh.Sitaraman
Architect
United States United States
Member
I'm interested in C#, AJAX, SilverLight,and SharePoint now. I enjoy listening to music, movies, driving.
I love posting answers to forums, especially questions related to SharePoint Technology. Started career as c++ developer, then .Net Mobile Technologies and SharePoint now.

Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board.
Search this forum  
    Spacing  Noise  Layout  Per page   
Questionwss install errormemberraghu_nandan112 Aug '10 - 2:27 
I am very green on share point. I am a dba trying to cover everything including wss installations.
 
I am installing remotely to a machine at our branch office. Machine is on the domain but I am looking in as local administrator. It is running WSS on 2003 server machine. When I finish installation of custom webparts and go to open the site, I get this error:
 
The resource cannot be found.
Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.
 
Requested URL: /eurl.axd/18b9a46127474442bf846ff8e46ea6a4/
 

Any ideas why?
I am going nuts trying to figure this out !
 
Thank you very much
 
Besr regards,
Raghu
Questionhow to access sharepoints discussion board using web services.memberaddepalli2 Jul '09 - 18:15 
Dear Rajeesh,
 
I am trying to reply a discussion hosted in sharepoint server. But I am not success. I could able to create a new post, new announcements etc... But How to reply to a Discussion forum.
 
Please help to advice as I am working on this project.
 
Regares
Addepalli
AnswerRe: how to access sharepoints discussion board using web services.memberaddepalli2 Jul '09 - 21:01 
Hi Rajesh,
FYI
I am using C# with Lists Sharepoint web services
 
Regards
Mohan
GeneralRe: how to access sharepoints discussion board using web services.memberRajesh.Sitaraman5 Jul '09 - 8:15 
Hi Addepalli
 
You should use SPUtility.CreateNewDiscussionReply
It takes the List item as an input, that is the parent discussion list item which you want to reply.
 
Hope this helps
 
Thanks
Rajesh.
 
---
Rajesh (MCTS)
http://rjesh.com

GeneralRe: how to access sharepoints discussion board using web services.memberaddepalli5 Jul '09 - 17:35 
Hi Rajesh,
 
Thank you for the reply. SPUtility is an assembly(microsoft.sharepoint.dll) which available only with Sharepoint services frame work installable in Windows2003 server.
 
But I am developing a widget in Windows XP flatform using C# & Sharepoint webservice(Lists). SPUtility class may not be available for me. Is there any possible workaround solution?
 
Thanks in advance
Addepalli

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Permalink | Advertise | Privacy | Mobile
Web01 | 2.6.130523.1 | Last Updated 2 Jun 2009
Article Copyright 2009 by Rajesh.Sitaraman
Everything else Copyright © CodeProject, 1999-2013
Terms of Use
Layout: fixed | fluid