InsertItem method: PageletCategory collection
Syntax
InsertItem(PageletCategoryName, Label)
Description
The InsertItem method inserts the PageletCategory object identified by PageletCategoryName from the PageletCategory Collection. You must specify both a name and a label for each PageletCategory. This method returns a reference to the new PageletCategory object. You must specify a unique PageletCategoryName, or you receive an error.
Note:
The portal registry classes execute some methods "interactively", that is, as they happen. The item won't be marked for insertion, then actually inserted later. The item is inserted into the database as soon as the method is executed.
Parameters
| Parameter | Description |
|---|---|
|
PageletCategoryName |
Specify the name of a PageletCategory existing in the PageletCategory collection. This parameter takes a string value. |
|
Label |
Specify a label for the new PageletCategory. This parameter takes a string value. |
Returns
A reference to the new PageletCategory object if the method executed successfully, False otherwise.