Sharepoint Announcements List - sharepoint

Is it possible to create a announcements list so that when there is no announcements, it will display a "default" announcement ?

Another non-JavaScript approach would be to use SharePoint Designer to convert the view into a DataViewWebPart. The menuing options available in the DVWP gives an option to display text when there are no items available to display.

Related

Help with filtered views across multiple pages! SHAREPOINT 2010

I'm rather new to this SharePoint stuff so be easy with me :)
What I am trying to do is have one complete list with all documents (Shared Documents), each assigned a certain DocumentType (managed metadata), and then show only some of these files depending on each web page within sharepoint you look at. Now i know about key filters, but don't I have to set these each time i want to filter? I basically want a filtered view on metadata for each page all related to Shared Documents
Thanks in advance
:)
Navigate the site containing list or library.
Press "SiteAction"->"View all site content" and choose your list or library.
In the ribbon choose "List"->"Create View"-> "Custom view in SP Designer".Create your personal view.
After it, you can go to "List"-> Current view" and choose your view.

In sharepoint 2010 SPGridview look like asp grid view .Its not showing the filter,sort option

In sharepoint 2010 SPGridview look like asp grid view .Its not showing the filter,sort option.totally it looking like table.how to make spgridview like the list view in sharepoint 2010
Do you want spgridview to work like a list view in sharepoint or do you want to simply have the sort and filter toolbar? Two different things. the list view also enables you do to things like the new item. If so I would encourage you to use the ListViewWebPart instead.(or the new xsltlistviewwebpart)

Taxonomy picker control

In my SharePoint 2010 web part I want to display the control which allows to select the term - it is the same control that is being used when you have metadata column in your list and try to add new item, or when you use SharePoint 2010 tagging to tag the page it displays the control where you start to type the term name and it auto suggests you available terms.
Please, note, i am not asking about TaxonomyFieldEditor control, which the the big control for creating new term stores,etc, i just want the picker, which is used in lists and tagging.
Is that possible to add to my web part? If yes, then how?
Many Thanks

SharePoint web part that has "more"/"less" option

I'd like to find a web part that can display items from a SharePoint list, and also have the option to only show a summary of the content of a field along with a link to display the complete text.
It doesn't have to be free.
You can create your own web part; something similar to out of the box List viewer web part.
In your CreateChildControls() method define some grid columns;
Create data sources and get data from different lists for these columns.
Use SPMenuField, following methods will be useful:
SPMenuField.NavigateUrlFields
SPMenuField.NavigateUrlFormat
SPMenuField.TokenNameAndValueFields
To quote from MSDN blogs:
SPMenuField "serves two purposes - it configures the hyperlink you follow if you click on the item directly and, optionally, links to a snazzy dropdown menu."
Follow the complete article here:
SPGridView and SPMenuField: Displaying custom data through SharePoint lists.

Is it possible to write WSS custom search webpart?

I want to place a custom webpart on the main page of my sharepoint portal that will look through a specific list. I want also to look for the information in the specific fields (like name, surname, phone number etc.). In MOSS 2007 we have Microsoft.Office.Server.Search namespace but is it possible to write this kind of webpart in WSS?
In WSS you have two options:
1) You can execute a CAML query against the specific list using SPList.GetItems
2) Use KeywordQuery or FullTextSqlQuery from the Microsoft.SharePoint.Search.Query namespace
SharePoint web parts have full access to the SharePoint object model, including being able to access list and list items. Now, that doesn't include any kind of search indexing, so if this list is really large, iterating through it to find interesting results might not be a very good idea. (Hence search being a paid MOSS feature....)

Resources