Aggregate News Report

Redirection Notice
This page should redirect to [http://www.customware.net/repository/display/AtlassianPlugins/Aggregate News Report] in about 5 seconds.

Labels

recipe recipe Delete
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.
  1. Mar 01, 2007

    Anonymous says:

    Hi - I'm trying to modify this recipe to output excerpts of pages that are keyed...

    Hi - I'm trying to modify this recipe to output excerpts of pages that are keyed with scaffolding data. For this case, I only want to return those new pages where users have chosen "Germany" in the Country field. I've modified your recipe to:

    {report-block:maxResults=5}
    
    {content-reporter:scope=Home > descendents|label=-structure}
     {date-sort:content:modification date|order=descending}
     {content-filter:data:Country > Germany}
    {content-reporter}
    
    {report-body}
    h5. {report-image:content:icon} {report-info:content:title|link=true}
    
    {report-info:content:excerpt|render=wiki}
    _Posted on {report-info:content:modification date|format=dd MMM @ h:mm a} by {report-info:content:modifier\|link=true}._
    {report-body}
    
    {report-empty}
    _No new items._
    {report-empty}
    
    {report-block}
    

    which goes along with my Scaffolding set-up of

    *Country(s):* {list-data:Country|type=check|multiple=true}
    
    {list-option}Canada{list-option}
    {list-option}Germany{list-option}
    {list-option}Great Britain{list-option}
    {list-option}Japan{list-option}
    {list-option}United Kingdom{list-option}
    {list-option}United States{list-option}
    {list-option}Other - Please detail in notes.{list-option}
    {list-data}
    

    I'm new to Confluence and I'm still trying to wrap my head around the idea of keys and what they can and cannot do. Am I approaching this correctly?

    Thanks!

    -Audrey 

    1. Mar 01, 2007

      David Peterson says:

      Hi Audrey, You're on the right track. I think there are two places which need c...

      Hi Audrey,

      You're on the right track. I think there are two places which need change.

      Firstly, you will need to change your list options. Use this instead:

      {list-option:Canada}
      

      Then, you need to change your filtering. A {list-data} macro stores it's value as a Reference object, which can be accessed via the Reference Supplier. And {list-option} refers to simple text. So, instead of this:

      {content-filter:data:Country > Germany}
      

      ...try something like this:

      {text-filter:data:Country > reference:value|include=Germany}
      

      Let me know how that goes.

      1. Mar 08, 2007

        Anonymous says:

        David, Thanks for your help - sorry for the delay in getting back to you. I wa...

        David,

        Thanks for your help - sorry for the delay in getting back to you.

        I was able to implement your suggested changes today, but nothing changed when I did.  I read up on the text-filter macro, and tried a few different combinations, but couldn't get it to work.  I still get the return that there are no new items.

        Do you have any other suggestions?

        Thanks,
        Audrey 

  2. May 15, 2007

    Anonymous says:

    Hello everybody, maybe somebody knows if it`s possible to display multi-excerpt...

    Hello everybody,

    maybe somebody knows if it`s possible to display multi-excerpt with the reporting plugin.

     
    Thanks

    Jonas

    1. May 15, 2007

      David Peterson says:

      The Reporting plugin can display lots of stuff. I'm not quite sure what you mean...

      The Reporting plugin can display lots of stuff. I'm not quite sure what you mean my 'multi-excerpt', since there is technically only one excerpt per page, however I'm guessing that you want to display multiple chunks of a page in a report. If that's the case, you probably want either the [text-data] or [set-data] macros from Scaffolding on the actual pages, then using the Scaffold Data Supplier to get that data into a report. If that's what you're after, could you provide a more specific example of what you're after and I can give you a more concrete code example.

Add Comment