In order to create an AJAX collapsible region, use the AJAX Collapsible Region Wizard. The collapsible region content can be inline or external (from other files). The inline collapsible region works in plain HTML pages as well.
The AJAX Collapsible Region Wizard is accessible from the MX AJAX Toolbox tab of the Insert bar (or MX AJAX Toolbox menu item from the Insert menu):
Note: An AJAX collapsible region with external content can also be created with the AJAX Collapsible Region From File server behavior, accessed from the Application panel, Server Behaviors -> + -> MX AJAX Toolbox.
The AJAX Collapsible Region Wizard has one step. Configure it as shown below:
In the Collapsible region name text box enter a name for the collapsible region, used to identify it later on. It should start with a letter or an underscore, and it should contain only alphanumeric characters.
Note: It is recommended that you leave the default suggestion, collapsible1, unless you really want to name your collapsible region in a certain way. If you leave it like that and then add a new collapsible region in page, the new name suggestion will be collapsible2, and so on (collapsible3, collapsible4, etc.).
In the Collapsible region width text box enter the collapsible region width, in pixels. In browser, 2 more pixels will be added, corresponding to the left and right borders.
In the Collapsible region height text box enter the collapsible region height, in pixels. It includes both the title bar and the content area. In browser, 2 more pixels will be added, corresponding to the top and bottom borders.
Note: When you set the dimensions for the collapsible region, have in mind its title length and the content that you will display inside it (so that its surface will be as well covered as possible). However, if the content is larger than the reserved area, vertical and horizontal scroll bars will be automatically generated, as needed.
In the Collapsible region type drop-down menu select the type of the collapsible region content:
Inline content - content will be manually entered in the current file.
External file content - content is retrieved from another site file. Whenever you modify the source file, content will be updated in the collapsible region.
In the Title text box enter the collapsible region title. Check out the browser behavior to understand better what a collapsible regions is and where its title is displayed.
The blue lightning button (InterAKT Dynamic Data) on the right is only displayed when you select the External file content option in the Collapsible type drop-down menu. Use it if you want to retrieve dynamic data.
The File text box is also displayed only when the collapsible region content is retrieved from an external file. Enter the name of the file (and site-relative path, if necessary) that stores the collapsible region content. You can use the Browse button to locate the file in the site structure, or the InterAKT Dynamic Data button to retrieve dynamic data.
If the file does not exist yet, you can enter its "future" name, and the file will be automatically generated in the site structure once you apply the wizard.
Check the Default expanded option if you want the collapsible region to be expanded when you first preview the page in browser.
The Load content on demand checkbox is displayed only when the collapsible region content is retrieved from an external file. Check this option if you want the collapsible region content to be loaded only when it is required. Else, it will be loaded from the beginning.
Note: By checking one of these two checkboxes, the other one becomes disabled.
The buttons in the lower part of the interface offer the next functionalities:
Click OK to apply the wizard, when you are done configuring it.
Click Cancel to exit without the new settings to be applied.
The Help button brings you to this help page.