Forum Discussion
KaelaC / RickyS:
Thank you for the help. I'm finally getting around to trying this.
I put the code into a custom component on my stage server. In the preview it appears it is pulling in the three most recent posts from the various blogs in our community. How to I get it to pull from one specific blog only?
And then, how do I create another that pulls from a discussion board or group of boards in the same category?
To pull from one blog change the first line to
<#assign messages = rest("/blogs/id/[your blog id here]/threads/recent ?page_size=3").messages />
- woodag14 years agoGuide
hit a snag trying to do this. tech had me change it to
<#assign messages = rest("/blogs/id/[your_blog_id_here]/topics/style/blog/recent?page_size=3").messages />
also for anyone else reading this, the final steps in order to have this Content to show up with the proper styling of its title were:
go into Admin > Content > Custom Content
create a new Custom CONTENT with the title you want shown on the page, and that calls this Custom COMPONENT with the following tag
<@component id="[custom_component_id_here]"/>
go back to Studio > Page and put the Custom CONTENT into the appropriate page
go back to Admin at the Community or Board level, Display > Page Layouts and reassign as needed
once pushed to production you will need to repeat the admin steps on your live site
- sarahmolinari14 years agoContributorGood discussion, we just may implement this on our community soon as well.
- Inactive User13 years ago
Does anyone know if this has been added as a Lithium-included component?
Related Content
- 10 months ago
- 11 months ago
- 3 years ago
- 2 years ago
- 3 years ago