Forum Discussion

tnotte's avatar
tnotte
Advisor
11 years ago

Multiple Board Lists on a Category Page

Hi,

 

I'm looking for something specific, and not skilled with API/Freemarker yet, but this should be easy...

 

From a Category page, I have 3 types of boards: Blogs, Forums, and Ideas.  On the Category page containing those 3 items, I want to show 3 separate lists of the 5 most recent posts in those areas.

 

Is this possible, and is there sample code I can try to get this working?

 

Thanks!

  • You should actually be able to do this using standard components. If you go into Studio and edit your category page, you can add the following components via the XML tab:

    <component id="forums.widget.recent-messages" interactionStyle="blog"/>
    <component id="forums.widget.recent-messages" interactionStyle="forum"/>
    <component id="forums.widget.recent-messages" interactionStyle="idea"/>

    In this example, the "interactionStyle" parameter is controlling the type of messages shown in the component. So the first component will only show blog posts, the second will show only forum posts, and the third will show only idea posts.

     

    If this doesn't meet your needs, let me know and I can point you towards some information on creating a custom component.

  • AdamN's avatar
    AdamN
    Khoros Oracle

    You should actually be able to do this using standard components. If you go into Studio and edit your category page, you can add the following components via the XML tab:

    <component id="forums.widget.recent-messages" interactionStyle="blog"/>
    <component id="forums.widget.recent-messages" interactionStyle="forum"/>
    <component id="forums.widget.recent-messages" interactionStyle="idea"/>

    In this example, the "interactionStyle" parameter is controlling the type of messages shown in the component. So the first component will only show blog posts, the second will show only forum posts, and the third will show only idea posts.

     

    If this doesn't meet your needs, let me know and I can point you towards some information on creating a custom component.

    • tnotte's avatar
      tnotte
      Advisor

      So simple and elegant, I'm embarassed I asked!  This is exactly what I wanted, thanks for the tip!! I can CSS it from there! :)