AddBlock(Block)

Adds a block to a container.

Parameters

Block. Specifies a reference to the block to be added. This can be any block previously retrieved by using the GetBlock(BlockName) method.

Examples

MyContainer = CRM.GetBlock("container");
MyPerson = CRM.GetBlock("personboxlong");
MyCompany = CRM.GetBlock("companyboxlong");
MyContainer.AddBlock(MyPerson);
MyContainer.AddBlock(MyCompany);
CRM.AddContent(MyContainer.Execute());
Response.Write(CRM.GetPage());

Creates a container block and adds two blocks to it.