Forum Discussion

jaikumar1's avatar
jaikumar1
Mentor
7 years ago

How to display recent post page as component?

Hi,

 

I want to create the recent post page (t5/forums/recentpostspage/post-type/thread) latest topic as page component, and that component planning to include in certain page.

 

As i saw certain pages used like forums.widget.unanswered-topics-taplet in component. So i tried the same way to use in the component forums.widget.message-list for this latest topic. But i got error like "Freemarker template 'custom-hero-content processing failed". 

 

So please guide me, how to get include the page into a component. 

 

  • Hi jaikumar1 

    Here is the component to get the recent posts which use on the recent post page.  

    <component id="messages.widiget.recent-posts"/>

     If you are trying to include a component inside another component, it can be done like this

     

    <@component id="component-id" />

     

     

    • jaikumar1's avatar
      jaikumar1
      Mentor

      Hi VikasB,

       

      Thank you for your response. I want to display the recent post widget in specific page. The widget should render as same as showing in the page. So i have tried with this in component.

       

      <@component id="messages.widget.recent-posts"/>

       

      But, unfortunately the widget not getting displayed in the page after added in the component.

      So please let me know how to proceed on this.