Forum Discussion
Claudius
11 years agoBoss
Hi Stephen,
You would need to add a custom component on the Forum Topic Page that does the following:
- Get the topic ID for the currently shown message:
SELECT topic.id FROM messages WHERE id = '${coreNode.nodeId}'
because user might access a topic through a deepd message link and you want to pull the timestamp for the topic opening message. - With the topic.id you can then pull the post_time:
SELECT post_time FROM messages WHERE id = '${topicId}'
The only challenge here is that post_time is a date string a la "2014-10-23T05:10:05.331-07:00" which can't be compared easily :(
Anyone from Lithium knows if we can pull the post_time in Long format representing the milliseconds similar to the solution for comparing timestamps here?
Related Content
- 4 years agoInactive User