Comcode pages
These FAQs briefly summarise key points regarding how to build web pages (Comcode pages) in Composr.
For more information, check out these tutorials:
For more information, check out these tutorials:
Question | What are Comcode pages? |
---|---|
Answer | Comcode pages are standalone content pages within the Composr system that you can create and edit using either a WYSIWYG editor, a simple markup language called Comcode, or a combination of both. Think of them as documents within your website, offering flexibility beyond the structured content provided by modules like forums or news. You can use them to build landing pages, about us sections, contact pages, and more. |
Question | How do I create a new Comcode page? |
---|---|
Answer | Composr provides two easy ways to create a new Comcode page: Method 1: Direct URL Entry Type the desired URL of your new page into your browser's address bar. Since the page doesn't exist yet, Composr will present you with a 404 error and a link to create it. Click the link to open the Comcode page editor. Method 2: Admin Zone Navigate to Admin Zone > Content > Pages (Comcode pages). Scroll down to the list of existing pages and enter the name of your new page using the ":" (page-link) format. For example, a new page in the Welcome zone named "about" would be entered as ":about", or a new page in the "site" zone named "foobar" would be entered as "site:foobar". |
Question | How do I add dynamic content to my Comcode pages? |
---|---|
Answer | Composr utilizes "blocks" to embed dynamic content and functionality within Comcode pages. These blocks can range from displaying recent forum posts to showing information about the logged-in user. To add a block, you can use the "block construction assistant" accessible via a button above the editor. This tool provides a user-friendly way to:
|
Question | Can I customize the appearance of blocks? |
---|---|
Answer | Yes, you can customize the appearance of blocks by editing the associated templates and CSS. Each block typically has a corresponding template file (e.g., BLOCK_MAIN_NEWS.tpl for the main_news block) that controls its HTML structure. You can modify this template to change the layout and styling of the block's output. An easy way to do this is through the template editor in Admin Zone > Style > Themes, and click edit templates for the relevant theme. |
Question | What is the difference between blocks and boxes in Composr? |
---|---|
Answer | While both terms may seem similar, they have distinct meanings in Composr:
In practice, blocks often place their content within a box, but this isn't a requirement / standard. |
Question | How do I embed content from other modules into a Comcode page? |
---|---|
Answer | You can use various blocks to embed content from different modules:
|
Question | Can I organize Comcode pages in a hierarchical structure? |
---|---|
Answer | Yes, Composr allows you to simulate a hierarchical structure for your Comcode pages using multi-part paths in the page monikers. By editing the page monikers to include slashes (e.g., "about/team"), you can create a virtual directory structure within a single zone, enhancing your site's organization and navigation. |
Question | How do I hide a Comcode page from the sitemap? |
---|---|
Answer | If you want to prevent a Comcode page from appearing in your sitemap, you can simply prefix its name with an underscore (_). For example, pages named "_test" or "_example" would be excluded from the sitemap. Note that this generally does not hide the page from your site itself (to do that, use the validation addon to turn validated to "OFF" for the pages); it only hides them from the sitemap / search engines. |
Question | What are some of the default Comcode pages in Composr? |
---|---|
Answer | Composr includes several default Comcode pages, each serving a specific purpose:
Remember that you can edit these default pages or create entirely new ones to tailor your site's content to your specific needs. |