View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
1203 | Composr documentation | General / Uncategorised | public | 2013-04-26 18:12 | 2015-09-22 21:19 |
Reporter | Chris Graham | Assigned To | Guest | ||
Priority | normal | Severity | feature | ||
Status | resolved | Resolution | fixed | ||
Summary | 1203: Embedding modules in pages | ||||
Description | Using the main_include_module block. | ||||
Tags | No tags attached. | ||||
Attach Tags | |||||
Attached Files | |||||
Time estimation (hours) | |||||
Sponsorship open | |||||
|
Composr has a concept called a 'block'. Blocks are essentially building blocks that can be inserted into a Comcode page in order to add the aforementioned interactive and data-bound functionality that is so important to a modern website. We can add blocks to a Comcode page by clicking “Edit this page” link in the bottom of the page. (image_001.png) Then, click the “Add block” button in the toolbar of the built-in editor shown in the image below: (image_002.png) It will display a list of blocks in the Composr, which is also the “Block construction assistant”. We can select the block we need to add in the current page. You can select “main_include_module” to add a module to the current page. It is the “Module inclusion” block in Composr. (image_003.png) Selecting the block will display a form to be filled by the user with the details of the module to be included in the existing page. Please refer to the image given: (image_004.png) The user must include the name of the module to be added in the “Param” field. The module, “:recommend” is added in the given example. “:recommend” is a block to recommend Composr to your friends. You can see the preview before saving changes by pressing the “Preview” button. Press the “Use” button to use it in the built-in editor, from which we selected the “Add block” button. The new block will be displayed in the editor as shown in the image. (image_005.png) Press the “Save” button to make changes to the current page (you can check the preview before saving changes by pressing the “Preview” button). The changes will reflect in the page immediately. (image_006.png) |
Date Modified | Username | Field | Change |
---|---|---|---|
2023-02-26 18:29 | Chris Graham | Category | General => General / Uncategorised |