Can any body let me know how can i get foremthreadid of a forumreply,
$core_v2_forumReply.Get(934885).ParentId
when running above code getting blank , then my question is how we can get forumthreaadid of a forumreply
Can any body let me know how can i get foremthreadid of a forumreply,
$core_v2_forumReply.Get(934885).ParentId
when running above code getting blank , then my question is how we can get forumthreaadid of a forumreply
I Just tried it and can able to get ParentId only for the child replies .
Hi,
This is outlined in both the documentation on this site and the in-product API documentation in Widget Studio. Look near the bottom of the studi page for Api link to be able to search for extensions, syntax, and other helpful info.
Check the return type to understand what properties are available on the method result.
Sorry to say ,but not resolve my probtem
but i am getting blank
Does this work?
#set($reply = $core_v2_forumReply.Get(934885))
$reply.ParentId
If you are expecting ParentId to be a thread, that is not a correct assumption. ParentId is a parent reply, if there is no parent it is null. All replies have the same Thread Id in the ThreadId property.
#set($reply = $core_v2_forumReply.Get(934885))
$reply.ThreadId
no in that i am getting nothing mean same $reply.ParentId is printing
it reply the same id 934885 (forumreply)
That means its null, velocity scripts do not have a concept of null so it just prints the statement.