Solved
Forum Discussion
xorrkaz
14 years agoGenius
FYI, here is what I see when I use ${page.context.thread}:
lithium.eval.velocity.ThreadTemplateModel@e25235
I imagine this is an Object. How can I access members of this object?
KaelaC
14 years agoLithium Alumni (Retired)
Yeah, it's returning you a thread object. I will go check if the knowledge base has doc for the thread object, but in the meantime here it is:
thread
NOTE: YOU CAN NOT CALL THIS DIRECTLY – calls like page.context.thread will return you a thread
| Method | Decription | Example | Version / Branch |
|---|---|---|---|
| thread.board | get the board for this thread |
${page.context.thread.board}
|
9.10 |
| thread.topicMessage | get the topic message for this thread |
${page.context.thread.topicMessage}
|
9.1.0 |
| thread.discussionStyle | get the discussion style for this thread |
${page.context.thread.discussionStyle}
|
9.10 |
| thread.webUi.url | get the url to the web page for this thread |
${page.context.thread.webUi.url}
|
9.1.0 |
If all you want is the thread id, I think this would work
${page.context.thread.topicMessage.id}