locked
Announcement aggregator? RRS feed

  • Question

  • Is there a way to pull all announcements from specified sites (in a collection) into a display of announcements at the root site? I know that a Content Query WP can be used to aggregate lists, but I want my Announcement Aggregator to look just like the normal presentation of Announcements in a web part. 
    There are no mistakes; every result tells you something of value about what you're are trying to accomplish.
    • Moved by Kris Wagner - MVP Wednesday, February 9, 2011 10:39 PM Design Question (From:SharePoint - General Question and Answers and Discussion (pre-SharePoint 2010))
    Tuesday, February 8, 2011 7:22 PM

Answers

  • I think you mean you could not get the "CrossList" to work on Production. Not "CrossSite"

    Make sure all the lists are using same content type on production and see if all the lists have same name. I didn't have any requirements to do something like this yet. So, not sure if it matters about the name. You can test it out on your test server since it already worked out for you. Oh... one more thing, make sure you have permission to at least read data from announcement lists in the subsites. Permission would be the first thing you'll need to check if everything else is okay.

    As for styling, you'll have to work with xslt. I don't think it'll just start to display as a regular announcement when you put it on a web part page. Using the xslt, you can also add the "Add new announcement" link to the appropriate section. Not sure if any xslt didn't work as expected but I hope this will point you to the right direction.

     


    Pman
    http://www.pmansLab.com/
    • Marked as answer by Leoyi Sun Thursday, February 17, 2011 9:55 AM
    Tuesday, February 15, 2011 2:01 AM
  • One more question - is there a way to specifiy which Announcement lists in a collection get rolled up?  There is one that I don't want to roll up  into the home page view.

    Can you check if having a "Custom" name for the list avoids the data to show up on your roll up? If so, then you probably have the answer already.

    When you create an aggregated dataview like that, it minimizes maintenance because the announcement from new sites will start to show up automatically. I don't think there's an option to avoid a particular list, but what you probably can do is specify which lists' data to show. But this way, you'll have to modify the dataview to include information from new lists when new sites are created.

    If you still want to do this, go to the SelectCommand of the datasource for that dataview and include <Lists> tag with appropriate information. Go to this SharePoint Designer Team's blog on Rolling up info with Data View . Check out the "CrossLists Mode" section and you'll find more info on the <Lists> tag. In fact it has the steps to roll up all Announcement Lists in a site collection. I should've included this link before, but completely forgot about it.

    If you want to roll up data from certain lists only, you can also look into creating dataview using a linked data source.

    As for the styling, you'll also have to use css. Why don't to you tackle it one at a time. First get your roll up to work properly. Make sure you're getting the expected data. You can concentrate on styling later :). Just a suggestion.

     


    Pman
    http://www.pmansLab.com/
    • Marked as answer by Leoyi Sun Thursday, February 17, 2011 9:56 AM
    Wednesday, February 16, 2011 1:11 AM

All replies

  • Check out Ton's blog post here

    http://www.tonstegeman.com/Blog/Lists/Posts/Post.aspx?ID=41 and the tool is on CodePlex.com

    http://sharepointobjects.codeplex.com/releases/view/35487 


    Kris Wagner, MVP, MCITP, MCTS Twitter @sharepointkris Blog: http://www.sharepointkris.com/blog
    Wednesday, February 9, 2011 6:25 AM
  • Thank you for the suggestion Kris; I have an idea where I might use that functionality elsewhere in my site.  But as for an Announcement aggregator, I want it to "look" like the announcement display, with the body of the announcement, the author etc.  I need to be able to do this through the UI, maybe in Designer if not too complex.


    There are no mistakes; every result tells you something of value about what you're are trying to accomplish.
    Wednesday, February 9, 2011 3:53 PM
  • I'm going to move your post to  SharePoint Customization, you'll get better help there.

    http://social.technet.microsoft.com/Forums/en-US/sharepointcustomization/threads 


    Kris Wagner, MVP, MCITP, MCTS Twitter @sharepointkris Blog: http://www.sharepointkris.com/blog
    • Marked as answer by Leoyi Sun Thursday, February 17, 2011 9:56 AM
    • Unmarked as answer by run4it Thursday, February 17, 2011 4:24 PM
    Wednesday, February 9, 2011 10:39 PM
  • I think Larua's post about roll-up web part will help you. Exact same idea; you'll just be using the "Announcement" list and follow her instructions. And since you'll be using SharePoint Designer for this, you have full control over the display of the data. You can make it "Look" exactly like the Announcement webpart.

     


    Pman
    http://www.pmansLab.com/
    Thursday, February 10, 2011 12:59 AM
  • pl7626 - I was able to do the roll up test sites on my test server, though I still didn't have it styled.  But on production, I could not get the CrossSite to work.  It would not aggegrate the announcement from my subsite into the top level site.  Also, when doing this rollup, the "Add new announcement" link doesn't appear at the bottom of the WP.
    There are no mistakes; every result tells you something of value about what you're are trying to accomplish.
    Monday, February 14, 2011 9:02 PM
  • I think you mean you could not get the "CrossList" to work on Production. Not "CrossSite"

    Make sure all the lists are using same content type on production and see if all the lists have same name. I didn't have any requirements to do something like this yet. So, not sure if it matters about the name. You can test it out on your test server since it already worked out for you. Oh... one more thing, make sure you have permission to at least read data from announcement lists in the subsites. Permission would be the first thing you'll need to check if everything else is okay.

    As for styling, you'll have to work with xslt. I don't think it'll just start to display as a regular announcement when you put it on a web part page. Using the xslt, you can also add the "Add new announcement" link to the appropriate section. Not sure if any xslt didn't work as expected but I hope this will point you to the right direction.

     


    Pman
    http://www.pmansLab.com/
    • Marked as answer by Leoyi Sun Thursday, February 17, 2011 9:55 AM
    Tuesday, February 15, 2011 2:01 AM
  • Hi Pman - Yes, I meant CrossList.

    Okay, so my Announcements on the subsite, had a "custom" name; it wasn't  "SiteName Announcements".  Maybe that was it.  I hope to get back to it today to test again. I thought the rollup would be rolling up the content type, not the list name per se.

    I've never tried working with xslt.  I thought I'd have to dive into the .css to accomplish what I needed.

    One more question - is there a way to specifiy which Announcement lists in a collection get rolled up?  There is one that I don't want to roll up  into the home page view. 


    There are no mistakes; every result tells you something of value about what you're are trying to accomplish.
    Tuesday, February 15, 2011 4:56 PM
  • One more question - is there a way to specifiy which Announcement lists in a collection get rolled up?  There is one that I don't want to roll up  into the home page view.

    Can you check if having a "Custom" name for the list avoids the data to show up on your roll up? If so, then you probably have the answer already.

    When you create an aggregated dataview like that, it minimizes maintenance because the announcement from new sites will start to show up automatically. I don't think there's an option to avoid a particular list, but what you probably can do is specify which lists' data to show. But this way, you'll have to modify the dataview to include information from new lists when new sites are created.

    If you still want to do this, go to the SelectCommand of the datasource for that dataview and include <Lists> tag with appropriate information. Go to this SharePoint Designer Team's blog on Rolling up info with Data View . Check out the "CrossLists Mode" section and you'll find more info on the <Lists> tag. In fact it has the steps to roll up all Announcement Lists in a site collection. I should've included this link before, but completely forgot about it.

    If you want to roll up data from certain lists only, you can also look into creating dataview using a linked data source.

    As for the styling, you'll also have to use css. Why don't to you tackle it one at a time. First get your roll up to work properly. Make sure you're getting the expected data. You can concentrate on styling later :). Just a suggestion.

     


    Pman
    http://www.pmansLab.com/
    • Marked as answer by Leoyi Sun Thursday, February 17, 2011 9:56 AM
    Wednesday, February 16, 2011 1:11 AM