Forum Discussion
- AmanMalhotraExpert
phoneboy
We can use the below context object to get the article ID inside the TkbMessage quilt on the TkbArticlePage.
${env.context.message.uniqueId}
For article ID on TkbArticlePage.
${page.context.thread.topicMessage.uniqueId}
For message/comment ID on TkbArticlePage.
${page.context.message.uniqueId} - nethanpaulContributor
To get the article ID in a TkbArticle on Community Classic, try the following:
- Direct Access: freemarker${article.id} or ${tkbArticle.id}
- Model or Context: freemarker${model.id} or ${page.context.article.id}
- Custom Field (if available): freemarker${tkbArticle.customFields.canonical_url}
- Debugging: Dump all available variables: freemarker<#list .data_model?keys as key> ${key}: ${.data_model[key]}<br> </#list>
These should help you locate the article ID.
Related Content
- 4 years ago
- 5 months ago
- 13 years agoInactive User