cns_setNodeTypeDisplayName

Sets the multilingual display name of a node type.

Synopsis

int cns_setNodeTypeDisplayName(string sNodeType, langString lsDisplayName);

Parameters

Parameter Description
sNodeType ID of the node type
lsDisplayName Multilingual display name

Return value

Returns 0 if successful or a corresponding error code in case of an error.

Errors

Possible errors:

  • -1 => Node type does not exist

Description

This function sets a multilingual display name for the given node type.

main()
{
  langString myLang;
  setLangString(myLang,0,"Mein Knotentyp");
  setLangString(myLang,1,"My Node Type");
  cns_setNodeTypeDisplayName("myNodeType", myLang);
}

Availability

UI, CTRL