Examples: AddContentArea

The following example adds the Cards content area to the Area Page being defined. The content area is added to column 1.

local AreaPageXMLState XMLState;

{Hide the customize link for the page}
call Command_HideAndDisable, command CustomizeHomePage of form Command_System;

{Add items to the Area page}
call Create of form syAreaPageXML, XMLState, "Sample";

{Add items if needed}
if not empty(XMLState:XMLDoc) then

	call AddContentArea of form syAreaPageXML, XMLState, getmsg(9823) {Cards}, IMAGE_CARDS of form syAreaPageXML, true, 1;

end if;

call Display of form syAreaPageXML, XMLState;

Documentation Feedback