Forum Discussion

Lindsey's avatar
Lindsey
Leader
6 years ago

Context object to see if current thread is featured

Is there a freemarker context object to see if the message you are on is chosen to be "featured"? We want to create a component on the individual thread page itself that will say that the current thr...
  • Parshant's avatar
    6 years ago

    Lindsey,

    There is no context-object to check message is featured topic.

    You can use API to get featured message and pass message id context object to query.

    ${page.context.message.id}
    ${env.context.message.id}

     

    SELECT conversation.featured FROM messages WHERE conversation.featured = true AND id = '${env.context.message.id}'