We help IT Professionals succeed at work.

How to automatically show new content on homepage of sharepoint

czaz
czaz asked
on
Hi,

Is there some sort of web part that will automatically put any new or edited content on the homepage of a sharepiont 2010 site?
Comment
Watch Question

i think if you added list view web part of library on site it will show you latest document as well latest modified document on site.

hope it help you.
czazDirector of Systems Administration

Author

Commented:
That doesn't seem to work as I'd like it.  When I did that it just added a the first folder within the Library to the home page.  I just want new documents to show up, no matter where it is within the Library.

Commented:
You must have rights to edit page, in edit page mode add web part and select the list or library you want to add to the homepage, you can use view to filter information you want to be shown on homepage
czazDirector of Systems Administration

Author

Commented:
I have the rights to edit the page, but I'm not seeing any filter option, just have the option to add the libray to the page as a webpart.  Could you by any chance provide me instructions to do this?

Commented:
If you click add webpart, a pop up will open with all webparts activated on your site then choose the library name and click ok I will send screenshots if you stuck
czazDirector of Systems Administration

Author

Commented:
I did that and as I said before it just adds the first folder in the root of the library to the middle of the homepage.  Screenshot attached.
libraryss.docx

Commented:
are these folders in one library? if yes modify the webpart and  change the view and select the view that show all items

if their are from different folders in one site you can use "Relevant Documents web part"
SILVER EXPERT
Most Valuable Expert 2011
Awarded 2010

Commented:
Hello,

a list view will only connect to one list or library. If you want to show what has changed in several different libraries on the site (and its subsites), you can create a Content Query Web Part.

It has numerous settings to select site/subsite, lists, libraries, content types. You can set filters to include only specific items, for example items with a modified date greater than or equal to today minus seven days.

The web part has several options for presentation, e.g. Title only, title and image, title and description and many more. With SharePoint Designer you can also add more options and their presentation by customising the XSL template.

cheers, teylyn
czazDirector of Systems Administration

Author

Commented:
Teylyn,

Could you take me through the process of creating a Content Query Web Part?
SILVER EXPERT
Most Valuable Expert 2011
Awarded 2010
Commented:
Hello,

a full tutorial on the CQWP would be beyond the scope of this question. But here is a link to a Microsoft blog to get you started. http://blogs.msdn.com/b/ecm/archive/2010/05/14/what-s-new-with-the-content-query-web-part.aspx

You find the Content Query Web Part in the Content Rollup section when you click Insert > Web Part. After inserting it you edit the web part in the usual way, and define which sites/subsites/lists/libraries it shall monitor, filter on a raft of possibilities (content types, fields) and then select one of the pre-defined presentation templates.

If these out of the box options don't do it for you, you can break out SharePoint Designer and dig into the ItemStyles.xsl and ContentQueryMain.xsl to tune the thing to your needs. This is the stuff that books are written about, though.

I've just customised the xsl templates for a CQWP to display selected items from a Publishing pages list in a format suitable for a jQuery slider, with a dynamic background image. Anything's possible. Probably. ;)

cheers, teylyn
czazDirector of Systems Administration

Author

Commented:
Under Content Rollup, I'm not seeing a "Content Query" web part.  I have the options of Categories, Relevant Document, RSS Viewer, Site Aggregator, Sites in Category, Web Analytics, WSRP Viewer and XML Viewer.
SILVER EXPERT
Most Valuable Expert 2011
Awarded 2010

Commented:
What license of SharePoint 2010 are you running? You need to activate the Publishing feature for the site collection and the site. The publishing feature is not included in SharePoint Foundation, though, you need SharePoint Server for that.

cheers, teylyn
czazDirector of Systems Administration

Author

Commented:
We have enterprise, but I noticed that "SharePoint Server Publishing Infrastructure" is not activated, is that the one your referring to?
czazDirector of Systems Administration

Author

Commented:
The Publishing Infrastructure appears to have made it show up.  My next question is what is the query format under filters.  For example I want documents to show up in this web part that have been modified in the last 7 days.
SILVER EXPERT
Most Valuable Expert 2011
Awarded 2010

Commented:
The link to the Microsoft blog I posted above shows exactly how to do that. With screenshots and all. What more can I add?
czazDirector of Systems Administration

Author

Commented:
Ok...Well the screenshot that they show that is supposedly supposed to return items created greater then or equal today - 7 days doesn't seem to work.  I created a document right before creating the query and receive the message "This query has returned no items." Attached is my query setup for your review.
contentquery.docx
SILVER EXPERT
Most Valuable Expert 2011
Awarded 2010

Commented:
You need to enter

-7

to return items that have been created within the last 7 days. If you enter

7

that would be items that have a date between today and today PLUS 7 days.

Explore More ContentExplore courses, solutions, and other research materials related to this topic.