A typical web project rarely goes beyond the creation of custom templates for the system components and website templates. However, there may be tasks sometimes that simply cannot be solved using the standard components, which requires that a developer create custom Components 2.0 from scratch.

Consider the following development stages when implementing your custom Components 2.0.

Use your custom components as a basis for new components, or reuse them in other projects. A good idea is to keep the reusable components is a separate namespace, for example "library:".

  1. The "/bitrix/components/" folder may only contain additional subfolders whose names match the namespaces in use, for example "myproject" and "library". In the process, developers sometimes create helper namespaces named like "dummy" or "test" and forget to remove them even after release. Delete such folders.
  2. In the visual editor, ensure the Components 2.0 tree include custom components in a separate branch.
  3. Ensure that all custom components have configurable parameters (if any) visible in the public section. All such parameters must be thoroughly tested and documented. All service, non-user friendly settings (anything like "Registry object array nesting level") should not be present in the public section.