• 1C Bitrix templates. Projects. Who needs templates and why?

    The template determines the layout of functional elements, page display, and artistic style. The overall appearance of the site depends on it.

    Usually one layout is used for all pages, but 1C Bitrix allows you to simultaneously use several design options.

    Using built-in tools, you can set your own templates for all sections and even pages. You can also set various conditions for displaying a particular circuit. Settings are made through the admin panel.

    Page templates are stored in the “templates” folder of the same name. In the visual editor, you just need to select the required option from the list and supplement it with the necessary data. A feature of templating is the separation of logic from presentation.

    Who needs templates and why?

    The Bitrix system allows you to create and use pre-made templates, applying them to workspaces.

    This is a practical and effective solution when working with multi-component pages with a complex structure, for example when working with an online store or a news portal.

    Advantages of a correctly selected template:

    • First impression. The website design makes it clear what the company specializes in and creates a favorable impression.
    • Memorability. The site is associated with a specific company and remains recognizable.
    • Integrity. The template must be written down to the smallest detail, presenting a harmonious picture.
    • Functionality. Attractiveness is combined with usability and practicality.
    Independent creation of a template for 1C Bitrix

    The structure of the 1C Bitrix template is a collection of files and folders. The main directory stores description and general information for the administrative section. Sometimes some additional functions are also assigned there.

    The working area of ​​the template is used to place the main content, and the need for division is due to the structure. It is designated as work_area and is written in the editing form, acting as a space separator.

    The main sections of the site are also presented in the form of corresponding directories. The basis of the 1C Bitrix template is the header and footer files. They contain code, call extensions, CSS and other functions.

    Dynamic content is included in the template with Bitrix Framework directives. Here you can set PHP inserts that call special Bitrix components.

    First, the title, icons, cascading style sheets, tags and other basic parameters are set. After this, it is necessary to determine the location of the administrative part. It is better to place all working images in one specific folder.

    The numbered list with a menu is replaced by calling the Bitrix component to create and edit items. Most of the other standard elements are also created as components.

    To place the required extension, the code for calling it is inserted into a pre-selected location on the page. Initially, it is located in the user documentation or in the visual editor tab.

    Another important aspect is the CSS files of the template. Initially there are three of them: the main one and two auxiliary ones for designing the content. But this distinction is very arbitrary, because all elements are closely interconnected.

    How to install a template?

    Installation of the finished template is carried out according to the following scheme:

  • In the section with templates in the admin panel, you must select the “add” button;
  • The creation form is standard: it specifies ID, title and description;
  • When working with html, it is important to clearly separate elements related to design and content;
  • The work_area directive is inserted into the edit field, where the template is copied;
  • If you have CSS, you need to go to the styles tab, where the code is inserted;
  • You can save the result and evaluate the completed work.
  • The final part is the indication of all Bitrix variables that are written in the header file. It is important to remember to edit paths in CSS and save intermediate results. After this, you can apply the template to the site by selecting it from the appropriate list in the product settings.

    Conclusions

    1C Bitrix templates are quite practical and functional. Their use will significantly simplify and speed up the development of the project. You can purchase ready-made templates on the company’s website.

    Developing a template on 1C-Bitrix is ​​a solution that will result in a combination of convenient content management. You may already know all the benefits of creating templates for 1C-Bitrix. Otherwise, you can check them out below now. When ordering the development of a template for 1C-Bitrix, rest assured that all the features of 1C-Bitrix will function on your template!

    • At first sight. 1C-Bitrix developers have developed a special interface called “Hermitage”. It is easy to use and so visual that one glance is enough to understand further actions. The interface of your template for 1C-Bitrix will be based on the Hermitage adaptive system.
    • Modules for all occasions. The 1C-Bitrix product includes all the necessary modules: from managing website content to active sales via the Internet. Everything you may need for effective management will definitely be compatible with your 1C-Bitrix template.
    • Under protection. Site security is ensured by the “proactive protection” complex developed by Kaspersky Lab. Rest assured that your 1C-Bitrix template will be protected from attacks by hackers, possible hacks and other unpleasant intrusions into the virtual space of your business.
    • Zinger. 1C-Bitrix can cope with the highest loads on the site and very high traffic. The high performance of the product is subject to certificates and examples of successful operation of various Internet resources. We strive to provide the highest quality template development and layout; We make sure that the design is not “overloaded”, but is lightning fast - all this guarantees high speed of the site.
    • Cloudiness is under your control. 1C-Bitrix provides the ability to support the cloud storage mechanism. You can connect and manage any “clouds” - it’s convenient and fast.
    • Two from the casket. 1C-Bitrix easily and simply integrates with 1C:Enterprise without additional costs for modules or configurations. This mechanism will allow your online store with a website on 1C-Bitrix to function effectively. When creating a template on 1C-Bitrix, we pay special attention to data synchronization so that the information in your online store is always up to date and corresponds to the information in the warehouse program.
    • The path to profit passes through the mobile application. Do you have a great online store? It is for him that the product “1C-Bitrix: Mobile application” was created. Users of mobile devices will sweep away all the goods - because with the help of the application, purchases can be made not even with one left hand, but with several touches on the screen of their favorite device.
    • What do others think? 1C-Bitrix is ​​a fast, simple and effective CMS, not only its manufacturers say so, but also its users, which confirms the rating - No. 1 Among CMS!
    Purchasing 1C-Bitrix at a discount

    As part of the promotion, you can receive up to 15,000 rubles as a gift. to your personal account. You can purchase a license in our store, and the bonus will be automatically credited to your account. Check with our managers for detailed information.

    1C-Bitrix + SEO

    The 1C-Bitrix system is adapted for search engine optimization and promotion of your Internet resource on the Internet. The ready-made SEO module provides users and developers with a range of tools for website search engine optimization and tracking results. In the new theme for 1C-Bitrix, we will take into account all the SEO requests that are available in this box (title, descriptions for each page, alt, title for links and images, etc.).

    Advantages of a unique template design for 1C-Bitrix:
    • Impressive. A unique design makes it clear to the visitor at first glance what your company specializes in.
    • Memorable. The design is developed taking into account corporate colors and style so that your business is remembered and recognized.
    • Represents a single whole. The distinctive design of your company is thought through to the smallest detail, which together make up a whole and harmonious picture.
    • Works. The unique design can be complemented with practical functionality that is specific to your business.
    • Doesn't bother me. The unique design is not only attractive in appearance, but also convenient to use, which is very important.

    Order the development of unique templates for 1C-Bitrix and get closer to success! Templates for 1C-Bitrix will show your business, be remembered by visitors and motivate them to purchase goods and services!

    Where there are two, there are three!

    If you order from us the creation of a template on the Bitrix CMS, then a pleasant bonus awaits you: installation of the site on hosting. We will be extremely generous in our recommendations regarding choosing a suitable hosting and will help with setup. To work, we will need FTP and access to the Database (DB).

    We will support you

    For our clients, we keep a helping hand in stock, and sometimes more than one. We are always ready to extend them to support you in any difficult situations. If you suddenly have questions about how the template works on 1C-Bitrix, we are ready to advise and train both you and your employees.

    In addition, each of our clients receives 1 month of hosting for Bitrix absolutely free! After completing all the work, we undergo Site Quality Monitoring from 1C-Bitrix, which checks absolutely all parameters (security, development errors, hosting settings, caching, etc.). For you, this is a 100% guarantee of the correct operation of the site, but we can only go through it on the above hosting, since the correct hosting setup is one of the Quality Monitoring requirements. If you want to host your site on another hosting, we can also help you with monitoring, but to set up hosting (not all shared hostings allow you to change settings), you will need to pay for the work of a system administrator.

    We work to make the Internet better and your business more profitable.

    In this article we will look at all the features of creating a template for Bitrix from scratch. It doesn’t matter whether you have a ready-made layout, or you’re just a perfectionist who just let him write something himself without intermediaries :)

    What files are needed to create a template?

    The appearance of your site (or presentation of the site) is always stored in a separate folder. In 1C-Bitrix, the path to the template lies through the bitrix folder, which contains a templates folder and already contains a list of all our templates.

    Path to templates: /bitrix/templates/

    You can create a template in 3 ways:

  • you can copy a ready-made template and change it to suit your needs
  • you can create an empty template through the admin panel
  • you can create an empty folder and gradually fill it with files and folders
  • As you understand, the 3rd option is the most hardcore :) Let's go to the admin panel, Administration > Settings > Product settings > Websites > Website templates > Add template.
    link regarding the site: /bitrix/admin/template_admin.php?lang=ru

    The template ID is essentially the name of the folder in which it will be located, I’ll call it development . Fill in the rest of the fields as conveniently as possible; they are not very important right now. Add the following code to the template code:

    #WORK_AREA#

    — we write this line so that the file cannot be called directly from the browser and it does not start executing;
    — show the current title for the page;
    — show keywords, description and all scripts;
    — show the panel for admins.

    After saving the template, my description.php file looks like this:

    Great, we should have 5 files left in the root, we won’t use the rest at the moment:

    • description.php,
    • header.php,
    • footer.php,
    • styles.css,
    • template_styles.css

    The part of the code that is before #WORK_AREA# is ultimately written into header.php. Guess which part is written in footer.php :) (the one after it). The work area itself is dynamic content (it is not always that dynamic), which is located, for example, in the /contacts/ or /about/ folder in the index.php file. The file itself usually begins with the inclusion of the header and ends with the inclusion of the footer:

    Text hir

    So far, everything looks logical.

    1C-Bitrix folders and structure of the new template

    There are several recommendations in the documentation that I personally don't really like. First, they like to name the image folder images instead of the abbreviated img . And, of course, I understand everything, but when you write styles, you need to refer to images anyway, why write 2 times more? :) Secondly, there was a recommendation to store included areas in the include_areas folder - why not create inc? Thirdly, why do we need 2 files with styles? If I want to put everything into a separate file and connect it later as needed, then these styles will be stored either in the component template or in the css folder of the template.

    To summarize, our correct template structure is:

    Include_areas images components js

    To be a little rebellious:

    Inc img components js

    In principle, no one limits you, these are just recommendations.

    And now we smoothly come to the first problem - hardcode. Hardcode is when you use a text entry instead of dynamic values, such as a domain name. Most novice developers do not know about the SITE_ TEMPLATE_PATH constant, which stores the path to the current template as a value - in our case it is /bitrix/templates/development (without the trailing slash, please note). And therefore, when you include your scripts or included areas, for the folder you need to write: