I want to know if there is anyway using which I can programatically determine the node type. For example: while iterating through nodes, I would like to check if a node if of type image and if yes then I want to write some logic.
Hi Ankit. Use node.getPrimaryNodeType() to get the primary type for the node or use node.isNodeType("Nodetypename") to check if the node is of a certain type.
Hi Ankit. Use node.getPrimaryNodeType() to get the primary type for the node or use node.isNodeType("Nodetypename") to check if the node is of a certain type.