Forum Discussion

peterlu's avatar
peterlu
Champion
7 years ago

Lithium doc error

coreNode.nodeType  is wrong. It is now only returning community, category, board. That is it. There is no idea, blog, etc.

  • peterlu - 

     

    I believe nodeType is returning the correct result. Blogs, Ideas, Tkbs are all boards (object) but with the different interaction style. I believe you want to get the interaction style. There is different context object available which can do the job for you. 

     

     

    ${coreNode.discussionStyle} == blog,forum,idea etc
    ${coreNode.discussionStyleString} == blog,forum,idea etc

     

     

    These are not mentioned in the documentation but yes these are available. Just to let you know these won't work on the category page. These object will work at board level and below the board level. At the category page, you can use nodeType.