Documentation

Block Entity

Block is a html-code, which is accompanied by the manifest file. Here is an example of a simplest block:

<section class="landing-block">
    <div class="text-center g-color-gray-dark-v3 g-pa-10">
        <div class="g-width-600 mx-auto">
            <div class="landing-block-node-text g-font-size-12 ">
                <p>© 2017 All right reserved. Developed by
                <a href="#" class="landing-block-node-link g-color-primary">Bitrix24</p>
            </div>
        </div>
    </div>
</section>

Please note that the moment when blocks are displayed (both in edit and viewing modes) it is presented in a special wrapper <div id="anchor" class="block-wrapper block-code">...</div>, where:

  • anchor – block anchor; block123 (it not modified by the user), where 123 is the block ID;
  • block-wrapper – the same class for all blocks;
  • block-code – class, dependant on the block code, where code is the block code directly (converted to safe view).

Note! When in edit mode, copies of all blocks are created prior to publication. Please note, draft variants of blocks must be specifically referenced when querying block IDs.

You can commission layout of new blocks from a professional, or use additional blocks offered from a vendor.



© «Bitrix24», 2001-2024
Up