Whitebeam Template Reference Documentation

Site Map
 
Home
 
Application Guide
Reference
  Installation
  Configuration
  XML Markup
  JavaScript Classes
  ROM
  Templates
  Environment
  Dev Process
  Tools
  External Links
  Example libraries
Community
Contact Whitebeam
To-Do
Download
Credits
Licence
Whitebeam Users
 
 
 

Whitebeam Template Reference Documentation

Catalogue Template

category.linkItem()

Associates an item with a parent category.

See Also

rb.catalogue.category.unlinkItem()    rb.catalogue.category.item.create()   

Syntax

number = rb.catalogue.category.linkItem(itemID, parentNodeID)

Parameters

The 'category.linkItem' method takes 2 parameters:

Name Type/Value Range/Length Description
itemIDnumberValid itemID Required. Identifier of the item being linked to a category node.
parentNodeIDnumberValid nodeID Required. Identifier of the node that is to be the parent of the item.

Results

The 'category.linkItem' method returns number:

Type/Value Range/Length Description
number itemID, -1 Identifier of the item being linked.

Remarks

An item can be explicitly associated with one or more existing categories. An item that is not explicitly linked using this method is referred to as an 'orphan' item (default when created).

Whitebeam release 1.3.36
(loadtime : 76ms)