View Issue Details

IDProjectCategoryView StatusLast Update
1203Composr documentationGeneral / Uncategorisedpublic2015-09-22 21:19
ReporterChris Graham Assigned ToGuest  
PrioritynormalSeverityfeature 
Status resolvedResolutionfixed 
Summary1203: Embedding modules in pages
DescriptionUsing the main_include_module block.
TagsNo tags attached.
Attach Tags
Attached Files
Time estimation (hours)
Sponsorship open

Sponsor

Date Added Member Amount Sponsored

Activities

Guest

2015-08-03 07:12

reporter   ~3044

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)
image_001.png (3,905 bytes)   
image_001.png (3,905 bytes)   
image_002.png (35,161 bytes)   
image_002.png (35,161 bytes)   
image_003.png (94,694 bytes)   
image_003.png (94,694 bytes)   
image_004.png (45,050 bytes)   
image_004.png (45,050 bytes)   
image_005.png (31,826 bytes)   
image_005.png (31,826 bytes)   
image_006.png (162,169 bytes)   
image_006.png (162,169 bytes)   

Issue History

Date Modified Username Field Change
2023-02-26 18:29 Chris Graham Category General => General / Uncategorised