Forum Discussion

maxwelldhsu's avatar
8 years ago

Create RECENT, most POPULAR Discussion Component Based on landing page category board

Hi everyone! I'm still a bit new to creating components on Lithium and would really appreciate some pointers. 

I'm trying to create a "Most popular Topics" component that depend on these factors: 

 

  • How recent each topic was (was it posted within this wee?)
  • Total number of discussions taking place during specified time frame (the number of comments received during the one week period) 
  • Incoming the board that the current post is in (eg, if I googled, how to create landing pages, and it took me to an article in Lithium, I'd like to know what parent board is. So I an create this component... Since dont' we have to call articles based on which board they are in?) 

The board "ID" would need to be dynamic then right? Since I would not know which article board the landing page article is hosted on. 

Would anyone happen to know how to create something like this? and if so, perhaps leave a few line of code as practical examples. Thank you!

3 Replies