Featured Sites: A-Z Index
H
Newest 10 Entries
Question | How do I set the correct file permissions for Composr? |
---|---|
Answer | If you're using the quick installer, it will handle file permissions automatically. On a suEXEC-style server, default permissions (744 for directories and 644 for files) are usually sufficient. However, _config.php should have 600 permissions for security. Without suEXEC, specific directories (e.g., caches, uploads) and files (e.g., _config.php) require 777 (full access) or 666 (read/write) permissions. The fixperms.php script can automate this process on Linux and Windows. |
Question | How do I install Composr on Linux? |
---|---|
Answer | After ensuring your web host meets the requirements and you have a database ready, you can install Composr on Linux using the following steps:
|
Question | What are the prerequisites for installing Composr? |
---|---|
Answer | Before installing Composr, ensure your web host meets the minimum requirements. Familiarize yourself with your web host's control panel (e.g., Plesk, cPanel), which you'll use to manage databases, subdomains, and other settings. Gather your SFTP/FTP credentials (hostname, username, password), usually emailed upon signup. Set up a MySQL database and note its details: hostname (often 'localhost'), username, password, and database name. Ensure the database user has full read/write/administer access to the database. |
Question | What tools are available for debugging Composr code? |
---|---|
Answer | Composr offers a code quality checker addon that helps identify various types of errors, including parser errors, run-time errors, and logical errors. This tool can significantly reduce debugging time and enhance code reliability. It is available through the testing_platform addon. |
Question | What are some key coding standards in Composr? |
---|---|
Answer | Composr emphasizes clean, well-structured code with a focus on readability and maintainability. Key standards include proper indentation, consistent use of comments, and clear function headers with type definitions. Remember: beautiful code leads to better functionality and collaboration! |
Question | Where can I find resources for learning PHP programming? |
---|---|
Answer | While Composr documentation doesn't cover basic PHP, resources like the official PHP documentation ( |
Question | What is the purpose of the Code Editor? |
---|---|
Answer | The Code Editor is a web-based tool for editing Composr code files directly on the server. It requires password authentication and automatically manages overrides within _custom directories. To access it, go to yourbaseurl/code_editor.php. |
Question | How can I export and import custom addons? |
---|---|
Answer | Composr allows exporting addons as TAR files, containing all necessary files and an addon.inf file for metadata. You can import these addons to share and reuse them across different Composr installations. To do this, make your necessary files for the addon in the Composr installation, and then go under Admin Zone > Structure > Addons > Export addon. You can select the relevant files for the addon, provide information about the addon, and then download the TAR file (which can then be imported on other Composr sites). |
Question | Can you give an example of creating a new module? |
---|---|
Answer | Imagine creating a "Testing" module to manage collaborative testing:
|
Question | What are the different ways to extend Composr functionality? |
---|---|
Answer | You can extend Composr through:
|
Top 10 Entries
Question | How can I customize Composr without modifying the core files? |
---|---|
Answer | Composr offers a robust override system. Instead of altering the original files, create a parallel structure within _custom directories. For example, to modify site/pages/modules/polls.php, place your customized version in site/pages/modules_custom/polls.php. The tutorials outline additional information on how to utilise overrides. |
Question | What are the main components of the Composr framework? |
---|---|
Answer | Composr consists of:
|
Question | How can I embed third-party widgets into my Composr pages? |
---|---|
Answer | Composr supports embedding widgets from various websites, like Google Maps, Vimeo, and YouTube, by simply pasting the URL. For manually embedding widget code, you can paste it into the HTML source view of the WYSIWYG editor or within Comcode html tags if not using the WYSIWYG editor. |
Question | What is the difference between blocks and boxes in Composr? |
---|---|
Answer | Boxes are visual elements that provide a container for content, while blocks are functional units that generate and display dynamic content. Although blocks often appear within boxes in the default templates, they are not inherently tied to any visual representation. |
Question | Can I customize the appearance of blocks? |
---|---|
Answer | Yes, you can style blocks by editing the associated templates and CSS. Templates are typically named after the block they represent. For example, the main_news block uses the BLOCK_MAIN_NEWS.tpl template. |
Question | How do I create custom filter forms for my content? |
---|---|
Answer | The main_content_filtering block can help you generate filter forms automatically. You can use it to create a default form and then customize the generated Filtercode string to refine the filtering options. Once satisfied, you can either continue using the block or extract the HTML and modify it further. |
Question | Where can I use Filtercode and Selectcode in Composr? |
---|---|
Answer | Filtercode is supported in various blocks, such as main_multi_content, main_gallery_embed, and main_cc_embed. It's also actively used in modules like catalogues, downloads, galleries, members, and news. Selectcode is supported in blocks and Comcode tags that explicitly mention it, including the main_multi_content block and the if_in_group Comcode tag. |
Question | What is the difference between Filtercode and Selectcode? |
---|---|
Answer | Filtercode is used for querying content based on properties and values, while Selectcode is used for directly specifying a list of IDs or categories to include or exclude. Filtercode offers more complex filtering options, while Selectcode is more straightforward for simple selections. |
Question | How can I filter content in Composr? |
---|---|
Answer | Composr provides two filtering systems: Filtercode and Selectcode.
|
Question | What are blocks in Composr and how can I use them? |
---|---|
Answer | Blocks are dynamic elements that can be inserted into Comcode pages to add interactive and data-bound functionality to your website. They are essentially reusable components that automatically generate content, such as recent forum posts or information about the logged-in user. You can add blocks to your pages using the block construction assistant, which allows you to select from a list of available blocks, set their parameters, preview them, and generate the necessary Comcode. |