<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="https://docs.instantcms.ru/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="https://docs.instantcms.ru/feed.php">
        <title>Документация InstantCMS - en:dev</title>
        <description>для администраторов и разработчиков</description>
        <link>https://docs.instantcms.ru/</link>
        <image rdf:resource="https://docs.instantcms.ru/_media/wiki/dokuwiki.svg" />
       <dc:date>2026-11-19T02:45:38+00:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="https://docs.instantcms.ru/en/dev/controllers?rev=1680386078"/>
                <rdf:li rdf:resource="https://docs.instantcms.ru/en/dev/core?rev=1496997372"/>
                <rdf:li rdf:resource="https://docs.instantcms.ru/en/dev/data?rev=1490708505"/>
                <rdf:li rdf:resource="https://docs.instantcms.ru/en/dev/forms?rev=1490647275"/>
                <rdf:li rdf:resource="https://docs.instantcms.ru/en/dev/integration?rev=1491400729"/>
                <rdf:li rdf:resource="https://docs.instantcms.ru/en/dev/models?rev=1490792529"/>
                <rdf:li rdf:resource="https://docs.instantcms.ru/en/dev/overview?rev=1489667086"/>
                <rdf:li rdf:resource="https://docs.instantcms.ru/en/dev/packages?rev=1680385881"/>
                <rdf:li rdf:resource="https://docs.instantcms.ru/en/dev/templates?rev=1490304387"/>
                <rdf:li rdf:resource="https://docs.instantcms.ru/en/dev/widgets?rev=1491728708"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="https://docs.instantcms.ru/_media/wiki/dokuwiki.svg">
        <title>Документация InstantCMS</title>
        <link>https://docs.instantcms.ru/</link>
        <url>https://docs.instantcms.ru/_media/wiki/dokuwiki.svg</url>
    </image>
    <item rdf:about="https://docs.instantcms.ru/en/dev/controllers?rev=1680386078">
        <dc:format>text/html</dc:format>
        <dc:date>2023-04-01T21:54:38+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Controllers</title>
        <link>https://docs.instantcms.ru/en/dev/controllers?rev=1680386078</link>
        <description>
&lt;h1 class=&quot;sectionedit1&quot; id=&quot;controllers&quot;&gt;Controllers&lt;/h1&gt;
&lt;div class=&quot;level1&quot;&gt;

&lt;p&gt;
This section contains documentation on how to create component controllers.
&lt;/p&gt;

&lt;/div&gt;
&lt;!-- EDIT{&amp;quot;target&amp;quot;:&amp;quot;section&amp;quot;,&amp;quot;name&amp;quot;:&amp;quot;Controllers&amp;quot;,&amp;quot;hid&amp;quot;:&amp;quot;controllers&amp;quot;,&amp;quot;codeblockOffset&amp;quot;:0,&amp;quot;secid&amp;quot;:1,&amp;quot;range&amp;quot;:&amp;quot;1-104&amp;quot;} --&gt;
&lt;h2 class=&quot;sectionedit2&quot; id=&quot;section-contents&quot;&gt;Section Contents&lt;/h2&gt;
&lt;div class=&quot;level2&quot;&gt;

&lt;/div&gt;
&lt;!-- EDIT{&amp;quot;target&amp;quot;:&amp;quot;section&amp;quot;,&amp;quot;name&amp;quot;:&amp;quot;Section Contents&amp;quot;,&amp;quot;hid&amp;quot;:&amp;quot;section-contents&amp;quot;,&amp;quot;codeblockOffset&amp;quot;:0,&amp;quot;secid&amp;quot;:2,&amp;quot;range&amp;quot;:&amp;quot;105-134&amp;quot;} --&gt;
&lt;h3 class=&quot;sectionedit3&quot; id=&quot;general-information&quot;&gt;General information&lt;/h3&gt;
&lt;div class=&quot;level3&quot;&gt;

&lt;p&gt;
Controller titles may contain (lowercase) letters, numbers, and an underscore sign (_) with a letter required at the beginning of the title.
You should give the controller a meaningful title reflecting its essence. The title shoud be unique.
Take into consideration that if you create a controller to process the events only, it is reasonable to name the controller in a way to avoid future conflicts with an already existing controller (for example, the title of the content type in the content component, though you did not intend to supplement the content type) or if another developer will want to create a component with a similar title but with a properly realized frontend.
All controller files are found at: &lt;strong&gt;/system/controllers/{controller_title}&lt;/strong&gt;.
A controller can have:
&lt;/p&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; only &lt;a href=&quot;https://docs.instantcms.ru/en/dev/models&quot; class=&quot;wikilink1&quot; title=&quot;en:dev:models&quot; data-wiki-id=&quot;en:dev:models&quot;&gt;model&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; only public part&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; only control panel&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; process &lt;a href=&quot;https://docs.instantcms.ru/en/dev/controllers/hooks&quot; class=&quot;wikilink2&quot; title=&quot;en:dev:controllers:hooks&quot; rel=&quot;nofollow&quot; data-wiki-id=&quot;en:dev:controllers:hooks&quot;&gt;events&lt;/a&gt; (hooks), having only public part at the &lt;a href=&quot;https://docs.instantcms.ru/en/dev/controllers/actions#класс-контроллера&quot; class=&quot;wikilink2&quot; title=&quot;en:dev:controllers:actions&quot; rel=&quot;nofollow&quot; data-wiki-id=&quot;en:dev:controllers:actions&quot;&gt;basis&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; all of the above&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;/div&gt;
&lt;!-- EDIT{&amp;quot;target&amp;quot;:&amp;quot;section&amp;quot;,&amp;quot;name&amp;quot;:&amp;quot;General information&amp;quot;,&amp;quot;hid&amp;quot;:&amp;quot;general-information&amp;quot;,&amp;quot;codeblockOffset&amp;quot;:0,&amp;quot;secid&amp;quot;:3,&amp;quot;range&amp;quot;:&amp;quot;135-1211&amp;quot;} --&gt;
&lt;h3 class=&quot;sectionedit4&quot; id=&quot;public-part-frontend&quot;&gt;Public part (frontend)&lt;/h3&gt;
&lt;div class=&quot;level3&quot;&gt;
&lt;ol&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;https://docs.instantcms.ru/en/dev/controllers/paths&quot; class=&quot;wikilink1&quot; title=&quot;en:dev:controllers:paths&quot; data-wiki-id=&quot;en:dev:controllers:paths&quot;&gt;Files and Folders&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;https://docs.instantcms.ru/en/dev/controllers/actions&quot; class=&quot;wikilink2&quot; title=&quot;en:dev:controllers:actions&quot; rel=&quot;nofollow&quot; data-wiki-id=&quot;en:dev:controllers:actions&quot;&gt;Controller Actions&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;https://docs.instantcms.ru/en/dev/controllers/custom&quot; class=&quot;wikilink1&quot; title=&quot;en:dev:controllers:custom&quot; data-wiki-id=&quot;en:dev:controllers:custom&quot;&gt;Controller Overriding&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;https://docs.instantcms.ru/en/dev/controllers/request&quot; class=&quot;wikilink2&quot; title=&quot;en:dev:controllers:request&quot; rel=&quot;nofollow&quot; data-wiki-id=&quot;en:dev:controllers:request&quot;&gt;Request Processing&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;https://docs.instantcms.ru/en/dev/controllers/model&quot; class=&quot;wikilink1&quot; title=&quot;en:dev:controllers:model&quot; data-wiki-id=&quot;en:dev:controllers:model&quot;&gt;Working with a Model&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;https://docs.instantcms.ru/en/dev/controllers/core&quot; class=&quot;wikilink1&quot; title=&quot;en:dev:controllers:core&quot; data-wiki-id=&quot;en:dev:controllers:core&quot;&gt;Working with System Classes and Objects&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;https://docs.instantcms.ru/en/dev/controllers/language&quot; class=&quot;wikilink1&quot; title=&quot;en:dev:controllers:language&quot; data-wiki-id=&quot;en:dev:controllers:language&quot;&gt;Language File&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;https://docs.instantcms.ru/en/dev/controllers/templates&quot; class=&quot;wikilink1&quot; title=&quot;en:dev:controllers:templates&quot; data-wiki-id=&quot;en:dev:controllers:templates&quot;&gt;Templates&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;https://docs.instantcms.ru/en/dev/controllers/forms&quot; class=&quot;wikilink2&quot; title=&quot;en:dev:controllers:forms&quot; rel=&quot;nofollow&quot; data-wiki-id=&quot;en:dev:controllers:forms&quot;&gt;Forms&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;https://docs.instantcms.ru/en/dev/controllers/hooks&quot; class=&quot;wikilink2&quot; title=&quot;en:dev:controllers:hooks&quot; rel=&quot;nofollow&quot; data-wiki-id=&quot;en:dev:controllers:hooks&quot;&gt;Event Processing&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;https://docs.instantcms.ru/en/dev/controllers/user&quot; class=&quot;wikilink1&quot; title=&quot;en:dev:controllers:user&quot; data-wiki-id=&quot;en:dev:controllers:user&quot;&gt;Working with Users&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;/div&gt;
&lt;!-- EDIT{&amp;quot;target&amp;quot;:&amp;quot;section&amp;quot;,&amp;quot;name&amp;quot;:&amp;quot;Public part (frontend)&amp;quot;,&amp;quot;hid&amp;quot;:&amp;quot;public-part-frontend&amp;quot;,&amp;quot;codeblockOffset&amp;quot;:0,&amp;quot;secid&amp;quot;:4,&amp;quot;range&amp;quot;:&amp;quot;1212-1834&amp;quot;} --&gt;
&lt;h3 class=&quot;sectionedit5&quot; id=&quot;component-control-panel-backend&quot;&gt;Component control panel (backend)&lt;/h3&gt;
&lt;div class=&quot;level3&quot;&gt;

&lt;p&gt;
Each component can have its own section of settings in the InstantCMS Control panel. The component should have backend (control panel) for you to create such a section. The structure of the component’s control panel is very similar to the frontend’s structure (described in the articles above), but there are some differences.
&lt;/p&gt;
&lt;ol&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;https://docs.instantcms.ru/en/dev/controllers/backend/db&quot; class=&quot;wikilink1&quot; title=&quot;en:dev:controllers:backend:db&quot; data-wiki-id=&quot;en:dev:controllers:backend:db&quot;&gt;Registering a Component in the Database&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;https://docs.instantcms.ru/en/dev/controllers/backend/paths&quot; class=&quot;wikilink1&quot; title=&quot;en:dev:controllers:backend:paths&quot; data-wiki-id=&quot;en:dev:controllers:backend:paths&quot;&gt;Files and Folders&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;https://docs.instantcms.ru/en/dev/controllers/backend/controller&quot; class=&quot;wikilink1&quot; title=&quot;en:dev:controllers:backend:controller&quot; data-wiki-id=&quot;en:dev:controllers:backend:controller&quot;&gt;Control Panel&amp;#039;s Controller&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;https://docs.instantcms.ru/en/dev/controllers/backend/model&quot; class=&quot;wikilink1&quot; title=&quot;en:dev:controllers:backend:model&quot; data-wiki-id=&quot;en:dev:controllers:backend:model&quot;&gt;Using a Model&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;https://docs.instantcms.ru/en/dev/controllers/backend/menu&quot; class=&quot;wikilink1&quot; title=&quot;en:dev:controllers:backend:menu&quot; data-wiki-id=&quot;en:dev:controllers:backend:menu&quot;&gt;Control Panel Menu&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;https://docs.instantcms.ru/en/dev/controllers/backend/options&quot; class=&quot;wikilink1&quot; title=&quot;en:dev:controllers:backend:options&quot; data-wiki-id=&quot;en:dev:controllers:backend:options&quot;&gt;Standard form of options in the component’s control panel&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;https://docs.instantcms.ru/en/dev/controllers/backend/grids&quot; class=&quot;wikilink1&quot; title=&quot;en:dev:controllers:backend:grids&quot; data-wiki-id=&quot;en:dev:controllers:backend:grids&quot;&gt;Using Tables in the Control Panel&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;https://docs.instantcms.ru/en/dev/controllers/backend/perms&quot; class=&quot;wikilink1&quot; title=&quot;en:dev:controllers:backend:perms&quot; data-wiki-id=&quot;en:dev:controllers:backend:perms&quot;&gt;Managing Access Permissions&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;https://docs.instantcms.ru/en/dev/controllers/backend/flag&quot; class=&quot;wikilink1&quot; title=&quot;en:dev:controllers:backend:flag&quot; data-wiki-id=&quot;en:dev:controllers:backend:flag&quot;&gt;Universal action for switching a field&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;/div&gt;
&lt;!-- EDIT{&amp;quot;target&amp;quot;:&amp;quot;section&amp;quot;,&amp;quot;name&amp;quot;:&amp;quot;Component control panel (backend)&amp;quot;,&amp;quot;hid&amp;quot;:&amp;quot;component-control-panel-backend&amp;quot;,&amp;quot;codeblockOffset&amp;quot;:0,&amp;quot;secid&amp;quot;:5,&amp;quot;range&amp;quot;:&amp;quot;1835-2871&amp;quot;} --&gt;
&lt;h2 class=&quot;sectionedit6&quot; id=&quot;automatic-generation&quot;&gt;Automatic Generation&lt;/h2&gt;
&lt;div class=&quot;level2&quot;&gt;

&lt;p&gt;
You can use the &lt;a href=&quot;http://instantcms.ru/addons/comgen.html&quot; class=&quot;urlextern&quot; title=&quot;http://instantcms.ru/addons/comgen.html&quot; rel=&quot;ugc nofollow&quot;&gt;Component Generator&lt;/a&gt; utility to automatically generate the component’s frame and its typical elements (CRUD actions, forms, templates).
&lt;/p&gt;
&lt;hr /&gt;

&lt;p&gt;
&lt;a href=&quot;https://docs.instantcms.ru/en/dev/start&quot; class=&quot;wikilink2&quot; title=&quot;en:dev:start&quot; rel=&quot;nofollow&quot; data-wiki-id=&quot;en:dev:start&quot;&gt;Back to Contents&lt;/a&gt;
&lt;/p&gt;

&lt;/div&gt;
&lt;!-- EDIT{&amp;quot;target&amp;quot;:&amp;quot;section&amp;quot;,&amp;quot;name&amp;quot;:&amp;quot;Automatic Generation&amp;quot;,&amp;quot;hid&amp;quot;:&amp;quot;automatic-generation&amp;quot;,&amp;quot;codeblockOffset&amp;quot;:0,&amp;quot;secid&amp;quot;:6,&amp;quot;range&amp;quot;:&amp;quot;2872-&amp;quot;} --&gt;</description>
    </item>
    <item rdf:about="https://docs.instantcms.ru/en/dev/core?rev=1496997372">
        <dc:format>text/html</dc:format>
        <dc:date>2017-06-09T08:36:12+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>InstantCMS2 Core</title>
        <link>https://docs.instantcms.ru/en/dev/core?rev=1496997372</link>
        <description>
&lt;h1 class=&quot;sectionedit1&quot; id=&quot;instantcms2-core&quot;&gt;InstantCMS2 Core&lt;/h1&gt;
&lt;div class=&quot;level1&quot;&gt;

&lt;p&gt;
An InstantCMS2 core is a set of files in the &lt;code&gt;/system/core/&lt;/code&gt; directory. Classes, which are required for proper functioning of the &lt;abbr title=&quot;Content Management System&quot;&gt;CMS&lt;/abbr&gt; and in which the basic logic of work is generated, are declared in the files. The basic scheme of work of the &lt;abbr title=&quot;Content Management System&quot;&gt;CMS&lt;/abbr&gt; is described in &lt;a href=&quot;https://docs.instantcms.ru/dev/en/overview&quot; class=&quot;wikilink2&quot; title=&quot;dev:en:overview&quot; rel=&quot;nofollow&quot; data-wiki-id=&quot;dev:en:overview&quot;&gt;this section&lt;/a&gt;.
&lt;/p&gt;
&lt;div class=&quot;table sectionedit2&quot;&gt;&lt;table class=&quot;inline&quot;&gt;
	&lt;thead&gt;
	&lt;tr class=&quot;row0&quot;&gt;
		&lt;th class=&quot;col0&quot;&gt; File title &lt;/th&gt;&lt;th class=&quot;col1&quot;&gt; Purpose &lt;/th&gt;&lt;th class=&quot;col2&quot;&gt; Description &lt;/th&gt;
	&lt;/tr&gt;
	&lt;/thead&gt;
	&lt;tr class=&quot;row1&quot;&gt;
		&lt;td class=&quot;col0&quot;&gt; action.php &lt;/td&gt;&lt;td class=&quot;col1&quot;&gt; Service class for controller &lt;a href=&quot;https://docs.instantcms.ru/dev/en/controllers/actions&quot; class=&quot;wikilink2&quot; title=&quot;dev:en:controllers:actions&quot; rel=&quot;nofollow&quot; data-wiki-id=&quot;dev:en:controllers:actions&quot;&gt;actions&lt;/a&gt; &lt;/td&gt;&lt;td class=&quot;col2&quot;&gt; &lt;a href=&quot;https://docs.instantcms.ru/dev/core/action&quot; class=&quot;wikilink2&quot; title=&quot;dev:core:action&quot; rel=&quot;nofollow&quot; data-wiki-id=&quot;dev:core:action&quot;&gt;cmsAction&lt;/a&gt; &lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr class=&quot;row2&quot;&gt;
		&lt;td class=&quot;col0&quot;&gt; backend.php &lt;/td&gt;&lt;td class=&quot;col1&quot;&gt; Class for &lt;a href=&quot;https://docs.instantcms.ru/dev/en/controllers/backend/controller&quot; class=&quot;wikilink2&quot; title=&quot;dev:en:controllers:backend:controller&quot; rel=&quot;nofollow&quot; data-wiki-id=&quot;dev:en:controllers:backend:controller&quot;&gt;control panel controllers&lt;/a&gt; &lt;/td&gt;&lt;td class=&quot;col2&quot;&gt; &lt;a href=&quot;https://docs.instantcms.ru/dev/core/backend&quot; class=&quot;wikilink2&quot; title=&quot;dev:core:backend&quot; rel=&quot;nofollow&quot; data-wiki-id=&quot;dev:core:backend&quot;&gt;cmsBackend&lt;/a&gt; &lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr class=&quot;row3&quot;&gt;
		&lt;td class=&quot;col0&quot;&gt; cache.php &lt;/td&gt;&lt;td class=&quot;col1&quot;&gt; Class for caching &lt;/td&gt;&lt;td class=&quot;col2&quot;&gt; &lt;a href=&quot;https://docs.instantcms.ru/dev/core/cache&quot; class=&quot;wikilink2&quot; title=&quot;dev:core:cache&quot; rel=&quot;nofollow&quot; data-wiki-id=&quot;dev:core:cache&quot;&gt;cmsCache&lt;/a&gt; &lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr class=&quot;row4&quot;&gt;
		&lt;td class=&quot;col0&quot;&gt; cachefiles.php &lt;/td&gt;&lt;td class=&quot;col1&quot;&gt; Class for caching in files &lt;/td&gt;&lt;td class=&quot;col2&quot;&gt; &lt;a href=&quot;https://docs.instantcms.ru/dev/core/cache&quot; class=&quot;wikilink2&quot; title=&quot;dev:core:cache&quot; rel=&quot;nofollow&quot; data-wiki-id=&quot;dev:core:cache&quot;&gt;cmsCacheFiles&lt;/a&gt; &lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr class=&quot;row5&quot;&gt;
		&lt;td class=&quot;col0&quot;&gt; cachememory.php &lt;/td&gt;&lt;td class=&quot;col1&quot;&gt; Class for caching by means of Memcache &lt;/td&gt;&lt;td class=&quot;col2&quot;&gt; &lt;a href=&quot;https://docs.instantcms.ru/dev/core/cache&quot; class=&quot;wikilink2&quot; title=&quot;dev:core:cache&quot; rel=&quot;nofollow&quot; data-wiki-id=&quot;dev:core:cache&quot;&gt;cmsCacheMemory&lt;/a&gt; &lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr class=&quot;row6&quot;&gt;
		&lt;td class=&quot;col0&quot;&gt; config.php &lt;/td&gt;&lt;td class=&quot;col1&quot;&gt; Class for common engine &lt;a href=&quot;https://docs.instantcms.ru/manual/en/settings/global&quot; class=&quot;wikilink2&quot; title=&quot;manual:en:settings:global&quot; rel=&quot;nofollow&quot; data-wiki-id=&quot;manual:en:settings:global&quot;&gt;configuration&lt;/a&gt; &lt;/td&gt;&lt;td class=&quot;col2&quot;&gt; &lt;a href=&quot;https://docs.instantcms.ru/dev/core/config&quot; class=&quot;wikilink2&quot; title=&quot;dev:core:config&quot; rel=&quot;nofollow&quot; data-wiki-id=&quot;dev:core:config&quot;&gt;cmsConfig&lt;/a&gt; &lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr class=&quot;row7&quot;&gt;
		&lt;td class=&quot;col0&quot;&gt; controller.php &lt;/td&gt;&lt;td class=&quot;col1&quot;&gt; Basic class for all controllers, including backend &lt;/td&gt;&lt;td class=&quot;col2&quot;&gt; &lt;a href=&quot;https://docs.instantcms.ru/dev/core/controller&quot; class=&quot;wikilink2&quot; title=&quot;dev:core:controller&quot; rel=&quot;nofollow&quot; data-wiki-id=&quot;dev:core:controller&quot;&gt;cmsController&lt;/a&gt; &lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr class=&quot;row8&quot;&gt;
		&lt;td class=&quot;col0&quot;&gt; core.php &lt;/td&gt;&lt;td class=&quot;col1&quot;&gt; The main &lt;abbr title=&quot;Content Management System&quot;&gt;CMS&lt;/abbr&gt; file, in which all work starts &lt;/td&gt;&lt;td class=&quot;col2&quot;&gt; &lt;a href=&quot;https://docs.instantcms.ru/dev/core/core&quot; class=&quot;wikilink2&quot; title=&quot;dev:core:core&quot; rel=&quot;nofollow&quot; data-wiki-id=&quot;dev:core:core&quot;&gt;cmsCore&lt;/a&gt; &lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr class=&quot;row9&quot;&gt;
		&lt;td class=&quot;col0&quot;&gt; database.php &lt;/td&gt;&lt;td class=&quot;col1&quot;&gt; Class for database (lower level) &lt;/td&gt;&lt;td class=&quot;col2&quot;&gt; &lt;a href=&quot;https://docs.instantcms.ru/dev/core/database&quot; class=&quot;wikilink2&quot; title=&quot;dev:core:database&quot; rel=&quot;nofollow&quot; data-wiki-id=&quot;dev:core:database&quot;&gt;cmsDatabase&lt;/a&gt; &lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr class=&quot;row10&quot;&gt;
		&lt;td class=&quot;col0&quot;&gt; eventsmanager.php &lt;/td&gt;&lt;td class=&quot;col1&quot;&gt; Class for InstantCMS &lt;a href=&quot;https://docs.instantcms.ru/dev/en/controllers/hooks&quot; class=&quot;wikilink2&quot; title=&quot;dev:en:controllers:hooks&quot; rel=&quot;nofollow&quot; data-wiki-id=&quot;dev:en:controllers:hooks&quot;&gt;event system&lt;/a&gt; &lt;/td&gt;&lt;td class=&quot;col2&quot;&gt; &lt;a href=&quot;https://docs.instantcms.ru/dev/core/eventsmanager&quot; class=&quot;wikilink1&quot; title=&quot;dev:core:eventsmanager&quot; data-wiki-id=&quot;dev:core:eventsmanager&quot;&gt;cmsEventsManager&lt;/a&gt; &lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr class=&quot;row11&quot;&gt;
		&lt;td class=&quot;col0&quot;&gt; form.php &lt;/td&gt;&lt;td class=&quot;col1&quot;&gt; Basic class for all engine &lt;a href=&quot;https://docs.instantcms.ru/dev/en/forms&quot; class=&quot;wikilink2&quot; title=&quot;dev:en:forms&quot; rel=&quot;nofollow&quot; data-wiki-id=&quot;dev:en:forms&quot;&gt;forms&lt;/a&gt; &lt;/td&gt;&lt;td class=&quot;col2&quot;&gt; &lt;a href=&quot;https://docs.instantcms.ru/dev/core/form&quot; class=&quot;wikilink2&quot; title=&quot;dev:core:form&quot; rel=&quot;nofollow&quot; data-wiki-id=&quot;dev:core:form&quot;&gt;cmsForm&lt;/a&gt; &lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr class=&quot;row12&quot;&gt;
		&lt;td class=&quot;col0&quot;&gt; formfield.php &lt;/td&gt;&lt;td class=&quot;col1&quot;&gt; Basic class for all engine form fields &lt;/td&gt;&lt;td class=&quot;col2&quot;&gt; &lt;a href=&quot;https://docs.instantcms.ru/dev/core/formfield&quot; class=&quot;wikilink1&quot; title=&quot;dev:core:formfield&quot; data-wiki-id=&quot;dev:core:formfield&quot;&gt;cmsFormField&lt;/a&gt; &lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr class=&quot;row13&quot;&gt;
		&lt;td class=&quot;col0&quot;&gt; frontend.php &lt;/td&gt;&lt;td class=&quot;col1&quot;&gt; Basic class for all frontend controllers &lt;/td&gt;&lt;td class=&quot;col2&quot;&gt; cmsFrontend &lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr class=&quot;row14&quot;&gt;
		&lt;td class=&quot;col0&quot;&gt; mailer.php &lt;/td&gt;&lt;td class=&quot;col1&quot;&gt; Class for mail &lt;/td&gt;&lt;td class=&quot;col2&quot;&gt; &lt;a href=&quot;https://docs.instantcms.ru/dev/core/mailer&quot; class=&quot;wikilink2&quot; title=&quot;dev:core:mailer&quot; rel=&quot;nofollow&quot; data-wiki-id=&quot;dev:core:mailer&quot;&gt;cmsMailer&lt;/a&gt; &lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr class=&quot;row15&quot;&gt;
		&lt;td class=&quot;col0&quot;&gt; model.php &lt;/td&gt;&lt;td class=&quot;col1&quot;&gt; Basic class for all &lt;a href=&quot;https://docs.instantcms.ru/dev/en/models&quot; class=&quot;wikilink2&quot; title=&quot;dev:en:models&quot; rel=&quot;nofollow&quot; data-wiki-id=&quot;dev:en:models&quot;&gt;controller models&lt;/a&gt;. Working with database (upper level). &lt;/td&gt;&lt;td class=&quot;col2&quot;&gt; &lt;a href=&quot;https://docs.instantcms.ru/dev/core/model&quot; class=&quot;wikilink2&quot; title=&quot;dev:core:model&quot; rel=&quot;nofollow&quot; data-wiki-id=&quot;dev:core:model&quot;&gt;cmsModel&lt;/a&gt; &lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr class=&quot;row16&quot;&gt;
		&lt;td class=&quot;col0&quot;&gt; nestedsets.php &lt;/td&gt;&lt;td class=&quot;col1&quot;&gt; Class for nested sets &lt;/td&gt;&lt;td class=&quot;col2&quot;&gt; &lt;a href=&quot;https://docs.instantcms.ru/dev/core/nestedsets&quot; class=&quot;wikilink2&quot; title=&quot;dev:core:nestedsets&quot; rel=&quot;nofollow&quot; data-wiki-id=&quot;dev:core:nestedsets&quot;&gt;cmsNestedsets&lt;/a&gt; &lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr class=&quot;row17&quot;&gt;
		&lt;td class=&quot;col0&quot;&gt; permissions.php &lt;/td&gt;&lt;td class=&quot;col1&quot;&gt; Class for user permissions &lt;/td&gt;&lt;td class=&quot;col2&quot;&gt; &lt;a href=&quot;https://docs.instantcms.ru/dev/core/permissions&quot; class=&quot;wikilink2&quot; title=&quot;dev:core:permissions&quot; rel=&quot;nofollow&quot; data-wiki-id=&quot;dev:core:permissions&quot;&gt;cmsPermissions&lt;/a&gt; &lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr class=&quot;row18&quot;&gt;
		&lt;td class=&quot;col0&quot;&gt; request.php &lt;/td&gt;&lt;td class=&quot;col1&quot;&gt; Class for &lt;a href=&quot;https://docs.instantcms.ru/dev/en/controllers/request&quot; class=&quot;wikilink2&quot; title=&quot;dev:en:controllers:request&quot; rel=&quot;nofollow&quot; data-wiki-id=&quot;dev:en:controllers:request&quot;&gt;requests&lt;/a&gt; &lt;/td&gt;&lt;td class=&quot;col2&quot;&gt; &lt;a href=&quot;https://docs.instantcms.ru/dev/core/request&quot; class=&quot;wikilink2&quot; title=&quot;dev:core:request&quot; rel=&quot;nofollow&quot; data-wiki-id=&quot;dev:core:request&quot;&gt;cmsRequest&lt;/a&gt; &lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr class=&quot;row19&quot;&gt;
		&lt;td class=&quot;col0&quot;&gt; template.php &lt;/td&gt;&lt;td class=&quot;col1&quot;&gt; Class for &lt;a href=&quot;https://docs.instantcms.ru/dev/en/templates&quot; class=&quot;wikilink2&quot; title=&quot;dev:en:templates&quot; rel=&quot;nofollow&quot; data-wiki-id=&quot;dev:en:templates&quot;&gt;template system&lt;/a&gt; &lt;/td&gt;&lt;td class=&quot;col2&quot;&gt; &lt;a href=&quot;https://docs.instantcms.ru/dev/core/template&quot; class=&quot;wikilink2&quot; title=&quot;dev:core:template&quot; rel=&quot;nofollow&quot; data-wiki-id=&quot;dev:core:template&quot;&gt;cmsTemplate&lt;/a&gt; &lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr class=&quot;row20&quot;&gt;
		&lt;td class=&quot;col0&quot;&gt; updater.php &lt;/td&gt;&lt;td class=&quot;col1&quot;&gt; Class for InstantCMS updates &lt;/td&gt;&lt;td class=&quot;col2&quot;&gt;&lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr class=&quot;row21&quot;&gt;
		&lt;td class=&quot;col0&quot;&gt; uploader.php &lt;/td&gt;&lt;td class=&quot;col1&quot;&gt; Class for file uploads &lt;/td&gt;&lt;td class=&quot;col2&quot;&gt; &lt;a href=&quot;https://docs.instantcms.ru/dev/core/uploader&quot; class=&quot;wikilink2&quot; title=&quot;dev:core:uploader&quot; rel=&quot;nofollow&quot; data-wiki-id=&quot;dev:core:uploader&quot;&gt;cmsUploader&lt;/a&gt; &lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr class=&quot;row22&quot;&gt;
		&lt;td class=&quot;col0&quot;&gt; user.php &lt;/td&gt;&lt;td class=&quot;col1&quot;&gt; Class for current visitors of the website and its &lt;a href=&quot;https://docs.instantcms.ru/dev/en/data&quot; class=&quot;wikilink2&quot; title=&quot;dev:en:data&quot; rel=&quot;nofollow&quot; data-wiki-id=&quot;dev:en:data&quot;&gt;data&lt;/a&gt; &lt;/td&gt;&lt;td class=&quot;col2&quot;&gt; &lt;a href=&quot;https://docs.instantcms.ru/dev/core/user&quot; class=&quot;wikilink2&quot; title=&quot;dev:core:user&quot; rel=&quot;nofollow&quot; data-wiki-id=&quot;dev:core:user&quot;&gt;cmsUser&lt;/a&gt; &lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr class=&quot;row23&quot;&gt;
		&lt;td class=&quot;col0&quot;&gt; widget.php &lt;/td&gt;&lt;td class=&quot;col1&quot;&gt; Class for &lt;a href=&quot;https://docs.instantcms.ru/dev/en/widgets&quot; class=&quot;wikilink2&quot; title=&quot;dev:en:widgets&quot; rel=&quot;nofollow&quot; data-wiki-id=&quot;dev:en:widgets&quot;&gt;widgets&lt;/a&gt; &lt;/td&gt;&lt;td class=&quot;col2&quot;&gt; &lt;a href=&quot;https://docs.instantcms.ru/dev/core/widget&quot; class=&quot;wikilink2&quot; title=&quot;dev:core:widget&quot; rel=&quot;nofollow&quot; data-wiki-id=&quot;dev:core:widget&quot;&gt;cmsWidget&lt;/a&gt; &lt;/td&gt;
	&lt;/tr&gt;
&lt;/table&gt;&lt;/div&gt;
&lt;!-- EDIT{&amp;quot;target&amp;quot;:&amp;quot;table&amp;quot;,&amp;quot;name&amp;quot;:&amp;quot;&amp;quot;,&amp;quot;hid&amp;quot;:&amp;quot;table&amp;quot;,&amp;quot;secid&amp;quot;:2,&amp;quot;range&amp;quot;:&amp;quot;335-2582&amp;quot;} --&gt;&lt;hr /&gt;

&lt;p&gt;
&lt;a href=&quot;https://docs.instantcms.ru/dev/start&quot; class=&quot;wikilink1&quot; title=&quot;dev:start&quot; data-wiki-id=&quot;dev:start&quot;&gt;Back to Contents&lt;/a&gt;
&lt;/p&gt;

&lt;/div&gt;
</description>
    </item>
    <item rdf:about="https://docs.instantcms.ru/en/dev/data?rev=1490708505">
        <dc:format>text/html</dc:format>
        <dc:date>2017-03-28T13:41:45+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Storing Different Data</title>
        <link>https://docs.instantcms.ru/en/dev/data?rev=1490708505</link>
        <description>
&lt;h1 class=&quot;sectionedit1&quot; id=&quot;storing-different-data&quot;&gt;Storing Different Data&lt;/h1&gt;
&lt;div class=&quot;level1&quot;&gt;

&lt;p&gt;
This section contains documentation on working with InstantCMS templates.
&lt;/p&gt;

&lt;/div&gt;
&lt;!-- EDIT{&amp;quot;target&amp;quot;:&amp;quot;section&amp;quot;,&amp;quot;name&amp;quot;:&amp;quot;Storing Different Data&amp;quot;,&amp;quot;hid&amp;quot;:&amp;quot;storing-different-data&amp;quot;,&amp;quot;codeblockOffset&amp;quot;:0,&amp;quot;secid&amp;quot;:1,&amp;quot;range&amp;quot;:&amp;quot;1-113&amp;quot;} --&gt;
&lt;h2 class=&quot;sectionedit2&quot; id=&quot;section-contents&quot;&gt;Section Contents&lt;/h2&gt;
&lt;div class=&quot;level2&quot;&gt;
&lt;ol&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;https://docs.instantcms.ru/en/dev/controllers/user#session&quot; class=&quot;wikilink1&quot; title=&quot;en:dev:controllers:user&quot; data-wiki-id=&quot;en:dev:controllers:user&quot;&gt;Working with sessions&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;https://docs.instantcms.ru/en/dev/controllers/user#cookies&quot; class=&quot;wikilink1&quot; title=&quot;en:dev:controllers:user&quot; data-wiki-id=&quot;en:dev:controllers:user&quot;&gt;Working with Cookies&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;https://docs.instantcms.ru/en/dev/data/ups&quot; class=&quot;wikilink1&quot; title=&quot;en:dev:data:ups&quot; data-wiki-id=&quot;en:dev:data:ups&quot;&gt;Universal private settings&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;hr /&gt;

&lt;p&gt;
Back to previous contents &lt;a href=&quot;https://docs.instantcms.ru/en/dev/start&quot; class=&quot;wikilink2&quot; title=&quot;en:dev:start&quot; rel=&quot;nofollow&quot; data-wiki-id=&quot;en:dev:start&quot;&gt;For Developers&lt;/a&gt;
&lt;/p&gt;

&lt;/div&gt;
&lt;!-- EDIT{&amp;quot;target&amp;quot;:&amp;quot;section&amp;quot;,&amp;quot;name&amp;quot;:&amp;quot;Section Contents&amp;quot;,&amp;quot;hid&amp;quot;:&amp;quot;section-contents&amp;quot;,&amp;quot;codeblockOffset&amp;quot;:0,&amp;quot;secid&amp;quot;:2,&amp;quot;range&amp;quot;:&amp;quot;114-&amp;quot;} --&gt;</description>
    </item>
    <item rdf:about="https://docs.instantcms.ru/en/dev/forms?rev=1490647275">
        <dc:format>text/html</dc:format>
        <dc:date>2017-03-27T20:41:15+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Forms</title>
        <link>https://docs.instantcms.ru/en/dev/forms?rev=1490647275</link>
        <description>
&lt;h1 class=&quot;sectionedit1&quot; id=&quot;forms&quot;&gt;Forms&lt;/h1&gt;
&lt;div class=&quot;level1&quot;&gt;

&lt;/div&gt;
&lt;!-- EDIT{&amp;quot;target&amp;quot;:&amp;quot;section&amp;quot;,&amp;quot;name&amp;quot;:&amp;quot;Forms&amp;quot;,&amp;quot;hid&amp;quot;:&amp;quot;forms&amp;quot;,&amp;quot;codeblockOffset&amp;quot;:0,&amp;quot;secid&amp;quot;:1,&amp;quot;range&amp;quot;:&amp;quot;1-21&amp;quot;} --&gt;
&lt;h2 class=&quot;sectionedit2&quot; id=&quot;section-contents&quot;&gt;Section Contents&lt;/h2&gt;
&lt;div class=&quot;level2&quot;&gt;

&lt;/div&gt;
&lt;!-- EDIT{&amp;quot;target&amp;quot;:&amp;quot;section&amp;quot;,&amp;quot;name&amp;quot;:&amp;quot;Section Contents&amp;quot;,&amp;quot;hid&amp;quot;:&amp;quot;section-contents&amp;quot;,&amp;quot;codeblockOffset&amp;quot;:0,&amp;quot;secid&amp;quot;:2,&amp;quot;range&amp;quot;:&amp;quot;22-51&amp;quot;} --&gt;
&lt;h3 class=&quot;sectionedit3&quot; id=&quot;form-creation&quot;&gt;Form creation&lt;/h3&gt;
&lt;div class=&quot;level3&quot;&gt;
&lt;ol&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;https://docs.instantcms.ru/en/dev/forms/create_form&quot; class=&quot;wikilink2&quot; title=&quot;en:dev:forms:create_form&quot; rel=&quot;nofollow&quot; data-wiki-id=&quot;en:dev:forms:create_form&quot;&gt;Introduction&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;https://docs.instantcms.ru/en/dev/forms/create_form/add_fields&quot; class=&quot;wikilink2&quot; title=&quot;en:dev:forms:create_form:add_fields&quot; rel=&quot;nofollow&quot; data-wiki-id=&quot;en:dev:forms:create_form:add_fields&quot;&gt;Field adding&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;https://docs.instantcms.ru/en/dev/forms/create_form/form_object&quot; class=&quot;wikilink2&quot; title=&quot;en:dev:forms:create_form:form_object&quot; rel=&quot;nofollow&quot; data-wiki-id=&quot;en:dev:forms:create_form:form_object&quot;&gt;Working with form object&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;/div&gt;
&lt;!-- EDIT{&amp;quot;target&amp;quot;:&amp;quot;section&amp;quot;,&amp;quot;name&amp;quot;:&amp;quot;Form creation&amp;quot;,&amp;quot;hid&amp;quot;:&amp;quot;form-creation&amp;quot;,&amp;quot;codeblockOffset&amp;quot;:0,&amp;quot;secid&amp;quot;:3,&amp;quot;range&amp;quot;:&amp;quot;52-253&amp;quot;} --&gt;
&lt;h3 class=&quot;sectionedit4&quot; id=&quot;field-creation&quot;&gt;Field creation&lt;/h3&gt;
&lt;div class=&quot;level3&quot;&gt;
&lt;ol&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;https://docs.instantcms.ru/en/dev/forms/create-field&quot; class=&quot;wikilink2&quot; title=&quot;en:dev:forms:create-field&quot; rel=&quot;nofollow&quot; data-wiki-id=&quot;en:dev:forms:create-field&quot;&gt;Introduction&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;https://docs.instantcms.ru/en/dev/forms/create-field/main-file&quot; class=&quot;wikilink1&quot; title=&quot;en:dev:forms:create-field:main-file&quot; data-wiki-id=&quot;en:dev:forms:create-field:main-file&quot;&gt;Main field file&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;https://docs.instantcms.ru/en/dev/forms/create-field/field-template&quot; class=&quot;wikilink2&quot; title=&quot;en:dev:forms:create-field:field-template&quot; rel=&quot;nofollow&quot; data-wiki-id=&quot;en:dev:forms:create-field:field-template&quot;&gt;Field template&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;/div&gt;
&lt;!-- EDIT{&amp;quot;target&amp;quot;:&amp;quot;section&amp;quot;,&amp;quot;name&amp;quot;:&amp;quot;Field creation&amp;quot;,&amp;quot;hid&amp;quot;:&amp;quot;field-creation&amp;quot;,&amp;quot;codeblockOffset&amp;quot;:0,&amp;quot;secid&amp;quot;:4,&amp;quot;range&amp;quot;:&amp;quot;254-455&amp;quot;} --&gt;
&lt;h3 class=&quot;sectionedit5&quot; id=&quot;available-fields&quot;&gt;Available fields&lt;/h3&gt;
&lt;div class=&quot;level3&quot;&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;https://docs.instantcms.ru/en/dev/forms/age&quot; class=&quot;wikilink2&quot; title=&quot;en:dev:forms:age&quot; rel=&quot;nofollow&quot; data-wiki-id=&quot;en:dev:forms:age&quot;&gt;age&lt;/a&gt; - Age&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;https://docs.instantcms.ru/en/dev/forms/caption&quot; class=&quot;wikilink2&quot; title=&quot;en:dev:forms:caption&quot; rel=&quot;nofollow&quot; data-wiki-id=&quot;en:dev:forms:caption&quot;&gt;caption&lt;/a&gt; - Caption&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;https://docs.instantcms.ru/en/dev/forms/checkbox&quot; class=&quot;wikilink2&quot; title=&quot;en:dev:forms:checkbox&quot; rel=&quot;nofollow&quot; data-wiki-id=&quot;en:dev:forms:checkbox&quot;&gt;checkbox&lt;/a&gt; - Checkbox&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;https://docs.instantcms.ru/en/dev/forms/city&quot; class=&quot;wikilink2&quot; title=&quot;en:dev:forms:city&quot; rel=&quot;nofollow&quot; data-wiki-id=&quot;en:dev:forms:city&quot;&gt;city&lt;/a&gt; - City&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;https://docs.instantcms.ru/en/dev/forms/color&quot; class=&quot;wikilink2&quot; title=&quot;en:dev:forms:color&quot; rel=&quot;nofollow&quot; data-wiki-id=&quot;en:dev:forms:color&quot;&gt;color&lt;/a&gt; - Colorpicker&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;https://docs.instantcms.ru/en/dev/forms/date&quot; class=&quot;wikilink2&quot; title=&quot;en:dev:forms:date&quot; rel=&quot;nofollow&quot; data-wiki-id=&quot;en:dev:forms:date&quot;&gt;date&lt;/a&gt; - Date&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;https://docs.instantcms.ru/en/dev/forms/file&quot; class=&quot;wikilink2&quot; title=&quot;en:dev:forms:file&quot; rel=&quot;nofollow&quot; data-wiki-id=&quot;en:dev:forms:file&quot;&gt;file&lt;/a&gt; - File&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;https://docs.instantcms.ru/en/dev/forms/hidden&quot; class=&quot;wikilink2&quot; title=&quot;en:dev:forms:hidden&quot; rel=&quot;nofollow&quot; data-wiki-id=&quot;en:dev:forms:hidden&quot;&gt;hidden&lt;/a&gt; - Hidden field&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;https://docs.instantcms.ru/en/dev/forms/html&quot; class=&quot;wikilink2&quot; title=&quot;en:dev:forms:html&quot; rel=&quot;nofollow&quot; data-wiki-id=&quot;en:dev:forms:html&quot;&gt;html&lt;/a&gt; - &lt;abbr title=&quot;HyperText Markup Language&quot;&gt;HTML&lt;/abbr&gt; text&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;https://docs.instantcms.ru/en/dev/forms/image&quot; class=&quot;wikilink2&quot; title=&quot;en:dev:forms:image&quot; rel=&quot;nofollow&quot; data-wiki-id=&quot;en:dev:forms:image&quot;&gt;image&lt;/a&gt; - Image&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;https://docs.instantcms.ru/en/dev/forms/images&quot; class=&quot;wikilink2&quot; title=&quot;en:dev:forms:images&quot; rel=&quot;nofollow&quot; data-wiki-id=&quot;en:dev:forms:images&quot;&gt;images&lt;/a&gt; - Multiple images&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;https://docs.instantcms.ru/en/dev/forms/listbitmask&quot; class=&quot;wikilink2&quot; title=&quot;en:dev:forms:listbitmask&quot; rel=&quot;nofollow&quot; data-wiki-id=&quot;en:dev:forms:listbitmask&quot;&gt;listbitmask&lt;/a&gt; - List: multiple list&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;https://docs.instantcms.ru/en/dev/forms/listgroups&quot; class=&quot;wikilink2&quot; title=&quot;en:dev:forms:listgroups&quot; rel=&quot;nofollow&quot; data-wiki-id=&quot;en:dev:forms:listgroups&quot;&gt;listgroups&lt;/a&gt; - List of user groups&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;https://docs.instantcms.ru/en/dev/forms/listmultiple&quot; class=&quot;wikilink2&quot; title=&quot;en:dev:forms:listmultiple&quot; rel=&quot;nofollow&quot; data-wiki-id=&quot;en:dev:forms:listmultiple&quot;&gt;listmultiple&lt;/a&gt; - List: multiple list&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;https://docs.instantcms.ru/en/dev/forms/list&quot; class=&quot;wikilink2&quot; title=&quot;en:dev:forms:list&quot; rel=&quot;nofollow&quot; data-wiki-id=&quot;en:dev:forms:list&quot;&gt;list&lt;/a&gt; - List&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;https://docs.instantcms.ru/en/dev/forms/number&quot; class=&quot;wikilink2&quot; title=&quot;en:dev:forms:number&quot; rel=&quot;nofollow&quot; data-wiki-id=&quot;en:dev:forms:number&quot;&gt;number&lt;/a&gt; - Number&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;https://docs.instantcms.ru/en/dev/forms/string&quot; class=&quot;wikilink2&quot; title=&quot;en:dev:forms:string&quot; rel=&quot;nofollow&quot; data-wiki-id=&quot;en:dev:forms:string&quot;&gt;string&lt;/a&gt; - String field&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;https://docs.instantcms.ru/en/dev/forms/text&quot; class=&quot;wikilink2&quot; title=&quot;en:dev:forms:text&quot; rel=&quot;nofollow&quot; data-wiki-id=&quot;en:dev:forms:text&quot;&gt;text&lt;/a&gt; - Textarea&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;https://docs.instantcms.ru/en/dev/forms/url&quot; class=&quot;wikilink2&quot; title=&quot;en:dev:forms:url&quot; rel=&quot;nofollow&quot; data-wiki-id=&quot;en:dev:forms:url&quot;&gt;url&lt;/a&gt; - &lt;abbr title=&quot;Uniform Resource Locator&quot;&gt;URL&lt;/abbr&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;https://docs.instantcms.ru/en/dev/forms/user&quot; class=&quot;wikilink2&quot; title=&quot;en:dev:forms:user&quot; rel=&quot;nofollow&quot; data-wiki-id=&quot;en:dev:forms:user&quot;&gt;user&lt;/a&gt; - User&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;https://docs.instantcms.ru/en/dev/forms/users&quot; class=&quot;wikilink2&quot; title=&quot;en:dev:forms:users&quot; rel=&quot;nofollow&quot; data-wiki-id=&quot;en:dev:forms:users&quot;&gt;users&lt;/a&gt; - User list&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;/div&gt;
&lt;!-- EDIT{&amp;quot;target&amp;quot;:&amp;quot;section&amp;quot;,&amp;quot;name&amp;quot;:&amp;quot;Available fields&amp;quot;,&amp;quot;hid&amp;quot;:&amp;quot;available-fields&amp;quot;,&amp;quot;codeblockOffset&amp;quot;:0,&amp;quot;secid&amp;quot;:5,&amp;quot;range&amp;quot;:&amp;quot;456-1478&amp;quot;} --&gt;
&lt;h3 class=&quot;sectionedit6&quot; id=&quot;working-with-forms&quot;&gt;Working with forms&lt;/h3&gt;
&lt;div class=&quot;level3&quot;&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;https://docs.instantcms.ru/en/dev/controllers/forms&quot; class=&quot;wikilink2&quot; title=&quot;en:dev:controllers:forms&quot; rel=&quot;nofollow&quot; data-wiki-id=&quot;en:dev:controllers:forms&quot;&gt;Working with forms in controllers&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;hr /&gt;

&lt;p&gt;
&lt;a href=&quot;https://docs.instantcms.ru/en/dev/start&quot; class=&quot;wikilink2&quot; title=&quot;en:dev:start&quot; rel=&quot;nofollow&quot; data-wiki-id=&quot;en:dev:start&quot;&gt;Back to Contents&lt;/a&gt;
&lt;/p&gt;

&lt;/div&gt;
&lt;!-- EDIT{&amp;quot;target&amp;quot;:&amp;quot;section&amp;quot;,&amp;quot;name&amp;quot;:&amp;quot;Working with forms&amp;quot;,&amp;quot;hid&amp;quot;:&amp;quot;working-with-forms&amp;quot;,&amp;quot;codeblockOffset&amp;quot;:0,&amp;quot;secid&amp;quot;:6,&amp;quot;range&amp;quot;:&amp;quot;1479-&amp;quot;} --&gt;</description>
    </item>
    <item rdf:about="https://docs.instantcms.ru/en/dev/integration?rev=1491400729">
        <dc:format>text/html</dc:format>
        <dc:date>2017-04-05T13:58:49+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Component Integration</title>
        <link>https://docs.instantcms.ru/en/dev/integration?rev=1491400729</link>
        <description>
&lt;h1 class=&quot;sectionedit1&quot; id=&quot;component-integration&quot;&gt;Component Integration&lt;/h1&gt;
&lt;div class=&quot;level1&quot;&gt;

&lt;p&gt;
This section contains documentation on the mechanism of integration of components with each other, such as RSS feed, search and so on.
&lt;/p&gt;

&lt;/div&gt;
&lt;!-- EDIT{&amp;quot;target&amp;quot;:&amp;quot;section&amp;quot;,&amp;quot;name&amp;quot;:&amp;quot;Component Integration&amp;quot;,&amp;quot;hid&amp;quot;:&amp;quot;component-integration&amp;quot;,&amp;quot;codeblockOffset&amp;quot;:0,&amp;quot;secid&amp;quot;:1,&amp;quot;range&amp;quot;:&amp;quot;1-173&amp;quot;} --&gt;
&lt;h2 class=&quot;sectionedit2&quot; id=&quot;section-contents&quot;&gt;Section Contents&lt;/h2&gt;
&lt;div class=&quot;level2&quot;&gt;
&lt;ol&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;https://docs.instantcms.ru/en/dev/integration/overview&quot; class=&quot;wikilink1&quot; title=&quot;en:dev:integration:overview&quot; data-wiki-id=&quot;en:dev:integration:overview&quot;&gt;Introduction&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;https://docs.instantcms.ru/en/dev/integration/rss&quot; class=&quot;wikilink2&quot; title=&quot;en:dev:integration:rss&quot; rel=&quot;nofollow&quot; data-wiki-id=&quot;en:dev:integration:rss&quot;&gt;RSS Feeds&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;https://docs.instantcms.ru/en/dev/integration/search&quot; class=&quot;wikilink1&quot; title=&quot;en:dev:integration:search&quot; data-wiki-id=&quot;en:dev:integration:search&quot;&gt;Full-text Search&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;https://docs.instantcms.ru/en/dev/integration/comments&quot; class=&quot;wikilink2&quot; title=&quot;en:dev:integration:comments&quot; rel=&quot;nofollow&quot; data-wiki-id=&quot;en:dev:integration:comments&quot;&gt;Comments&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;https://docs.instantcms.ru/en/dev/integration/activity&quot; class=&quot;wikilink2&quot; title=&quot;en:dev:integration:activity&quot; rel=&quot;nofollow&quot; data-wiki-id=&quot;en:dev:integration:activity&quot;&gt;Activity Feed&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;https://docs.instantcms.ru/en/dev/integration/rating&quot; class=&quot;wikilink2&quot; title=&quot;en:dev:integration:rating&quot; rel=&quot;nofollow&quot; data-wiki-id=&quot;en:dev:integration:rating&quot;&gt;Rating&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;
—-
&lt;/p&gt;

&lt;p&gt;
Back to previous section &lt;a href=&quot;https://docs.instantcms.ru/en/dev/start&quot; class=&quot;wikilink2&quot; title=&quot;en:dev:start&quot; rel=&quot;nofollow&quot; data-wiki-id=&quot;en:dev:start&quot;&gt;For Developers&lt;/a&gt;
&lt;/p&gt;

&lt;/div&gt;
&lt;!-- EDIT{&amp;quot;target&amp;quot;:&amp;quot;section&amp;quot;,&amp;quot;name&amp;quot;:&amp;quot;Section Contents&amp;quot;,&amp;quot;hid&amp;quot;:&amp;quot;section-contents&amp;quot;,&amp;quot;codeblockOffset&amp;quot;:0,&amp;quot;secid&amp;quot;:2,&amp;quot;range&amp;quot;:&amp;quot;174-&amp;quot;} --&gt;</description>
    </item>
    <item rdf:about="https://docs.instantcms.ru/en/dev/models?rev=1490792529">
        <dc:format>text/html</dc:format>
        <dc:date>2017-03-29T13:02:09+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Models</title>
        <link>https://docs.instantcms.ru/en/dev/models?rev=1490792529</link>
        <description>
&lt;h1 class=&quot;sectionedit1&quot; id=&quot;models&quot;&gt;Models&lt;/h1&gt;
&lt;div class=&quot;level1&quot;&gt;

&lt;p&gt;
This section contains documentation on creation of component models.
&lt;/p&gt;

&lt;/div&gt;
&lt;!-- EDIT{&amp;quot;target&amp;quot;:&amp;quot;section&amp;quot;,&amp;quot;name&amp;quot;:&amp;quot;Models&amp;quot;,&amp;quot;hid&amp;quot;:&amp;quot;models&amp;quot;,&amp;quot;codeblockOffset&amp;quot;:0,&amp;quot;secid&amp;quot;:1,&amp;quot;range&amp;quot;:&amp;quot;1-92&amp;quot;} --&gt;
&lt;h2 class=&quot;sectionedit2&quot; id=&quot;section-contents&quot;&gt;Section Contents&lt;/h2&gt;
&lt;div class=&quot;level2&quot;&gt;
&lt;ol&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;https://docs.instantcms.ru/en/dev/models/overview&quot; class=&quot;wikilink1&quot; title=&quot;en:dev:models:overview&quot; data-wiki-id=&quot;en:dev:models:overview&quot;&gt;Introduction&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;https://docs.instantcms.ru/en/dev/models/get&quot; class=&quot;wikilink1&quot; title=&quot;en:dev:models:get&quot; data-wiki-id=&quot;en:dev:models:get&quot;&gt;Reading Entries&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;https://docs.instantcms.ru/en/dev/models/modify&quot; class=&quot;wikilink2&quot; title=&quot;en:dev:models:modify&quot; rel=&quot;nofollow&quot; data-wiki-id=&quot;en:dev:models:modify&quot;&gt;Editing Entries&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;https://docs.instantcms.ru/en/dev/models/filters&quot; class=&quot;wikilink2&quot; title=&quot;en:dev:models:filters&quot; rel=&quot;nofollow&quot; data-wiki-id=&quot;en:dev:models:filters&quot;&gt;Filtration&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;https://docs.instantcms.ru/en/dev/models/cache&quot; class=&quot;wikilink2&quot; title=&quot;en:dev:models:cache&quot; rel=&quot;nofollow&quot; data-wiki-id=&quot;en:dev:models:cache&quot;&gt;Using Cache&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;hr /&gt;

&lt;p&gt;
Back to previous contents &lt;a href=&quot;https://docs.instantcms.ru/en/dev/start&quot; class=&quot;wikilink2&quot; title=&quot;en:dev:start&quot; rel=&quot;nofollow&quot; data-wiki-id=&quot;en:dev:start&quot;&gt;For Developers&lt;/a&gt;
&lt;/p&gt;

&lt;/div&gt;
&lt;!-- EDIT{&amp;quot;target&amp;quot;:&amp;quot;section&amp;quot;,&amp;quot;name&amp;quot;:&amp;quot;Section Contents&amp;quot;,&amp;quot;hid&amp;quot;:&amp;quot;section-contents&amp;quot;,&amp;quot;codeblockOffset&amp;quot;:0,&amp;quot;secid&amp;quot;:2,&amp;quot;range&amp;quot;:&amp;quot;93-&amp;quot;} --&gt;</description>
    </item>
    <item rdf:about="https://docs.instantcms.ru/en/dev/overview?rev=1489667086">
        <dc:format>text/html</dc:format>
        <dc:date>2017-03-16T12:24:46+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Introduction</title>
        <link>https://docs.instantcms.ru/en/dev/overview?rev=1489667086</link>
        <description>
&lt;h1 class=&quot;sectionedit1&quot; id=&quot;introduction&quot;&gt;Introduction&lt;/h1&gt;
&lt;div class=&quot;level1&quot;&gt;

&lt;p&gt;
InstantCMS is a modular system developed on the &lt;a href=&quot;https://ru.wikipedia.org/wiki/Model-View-Controller&quot; class=&quot;urlextern&quot; title=&quot;https://ru.wikipedia.org/wiki/Model-View-Controller&quot; rel=&quot;ugc nofollow&quot;&gt;MVC architecture&lt;/a&gt;. 
&lt;/p&gt;

&lt;p&gt;
Modular blocks, of which the site’s features are composed, are called &lt;strong&gt;Components&lt;/strong&gt; in InstantCMS.
&lt;/p&gt;

&lt;p&gt;
In their turn, each component consists of three main parts: &lt;a href=&quot;https://docs.instantcms.ru/en/dev/controllers&quot; class=&quot;wikilink1&quot; title=&quot;en:dev:controllers&quot; data-wiki-id=&quot;en:dev:controllers&quot;&gt;controller&lt;/a&gt;, &lt;a href=&quot;https://docs.instantcms.ru/en/dev/models&quot; class=&quot;wikilink1&quot; title=&quot;en:dev:models&quot; data-wiki-id=&quot;en:dev:models&quot;&gt;model&lt;/a&gt; and &lt;a href=&quot;https://docs.instantcms.ru/en/dev/models&quot; class=&quot;wikilink1&quot; title=&quot;en:dev:models&quot; data-wiki-id=&quot;en:dev:models&quot;&gt;templates&lt;/a&gt;. A component may contain all these parts as well as any combination of them.
&lt;/p&gt;

&lt;/div&gt;
&lt;!-- EDIT{&amp;quot;target&amp;quot;:&amp;quot;section&amp;quot;,&amp;quot;name&amp;quot;:&amp;quot;Introduction&amp;quot;,&amp;quot;hid&amp;quot;:&amp;quot;introduction&amp;quot;,&amp;quot;codeblockOffset&amp;quot;:0,&amp;quot;secid&amp;quot;:1,&amp;quot;range&amp;quot;:&amp;quot;1-487&amp;quot;} --&gt;
&lt;h2 class=&quot;sectionedit2&quot; id=&quot;controllers&quot;&gt;Controllers&lt;/h2&gt;
&lt;div class=&quot;level2&quot;&gt;

&lt;p&gt;
A controller is the main part of the component in which all business logic is located. The purpose of a controller is to receive a request from a user, process it and return the result (for example, an &lt;abbr title=&quot;HyperText Markup Language&quot;&gt;HTML&lt;/abbr&gt;-page or JSON).
&lt;/p&gt;

&lt;p&gt;
Each component may have 2 controllers - frontend and backend that work in user and admin parts of the site correspondingly.
&lt;/p&gt;

&lt;/div&gt;
&lt;!-- EDIT{&amp;quot;target&amp;quot;:&amp;quot;section&amp;quot;,&amp;quot;name&amp;quot;:&amp;quot;Controllers&amp;quot;,&amp;quot;hid&amp;quot;:&amp;quot;controllers&amp;quot;,&amp;quot;codeblockOffset&amp;quot;:0,&amp;quot;secid&amp;quot;:2,&amp;quot;range&amp;quot;:&amp;quot;488-860&amp;quot;} --&gt;
&lt;h2 class=&quot;sectionedit3&quot; id=&quot;models&quot;&gt;Models&lt;/h2&gt;
&lt;div class=&quot;level2&quot;&gt;

&lt;p&gt;
A model is a part of a component and contains the logic of extracting, editing and saving the data. The model receives the requests from a controller and returns the results from the database to it, or vice versa, saves the changes in the database.
&lt;/p&gt;

&lt;/div&gt;
&lt;!-- EDIT{&amp;quot;target&amp;quot;:&amp;quot;section&amp;quot;,&amp;quot;name&amp;quot;:&amp;quot;Models&amp;quot;,&amp;quot;hid&amp;quot;:&amp;quot;models&amp;quot;,&amp;quot;codeblockOffset&amp;quot;:0,&amp;quot;secid&amp;quot;:3,&amp;quot;range&amp;quot;:&amp;quot;861-1130&amp;quot;} --&gt;
&lt;h2 class=&quot;sectionedit4&quot; id=&quot;templates&quot;&gt;Templates&lt;/h2&gt;
&lt;div class=&quot;level2&quot;&gt;

&lt;p&gt;
Templates are meant for formatting the data before displaying it to a user. The template contains an &lt;abbr title=&quot;HyperText Markup Language&quot;&gt;HTML&lt;/abbr&gt;-markup and a minimum of code - only to the extent necessary to format the output. The data is passed to the template by a controller.
&lt;/p&gt;

&lt;/div&gt;
&lt;!-- EDIT{&amp;quot;target&amp;quot;:&amp;quot;section&amp;quot;,&amp;quot;name&amp;quot;:&amp;quot;Templates&amp;quot;,&amp;quot;hid&amp;quot;:&amp;quot;templates&amp;quot;,&amp;quot;codeblockOffset&amp;quot;:0,&amp;quot;secid&amp;quot;:4,&amp;quot;range&amp;quot;:&amp;quot;1131-1394&amp;quot;} --&gt;
&lt;h2 class=&quot;sectionedit5&quot; id=&quot;work-scheme&quot;&gt;Work Scheme&lt;/h2&gt;
&lt;div class=&quot;level2&quot;&gt;

&lt;p&gt;
Each user’s request (opening a page in a browser) initiates the following working process:
&lt;/p&gt;
&lt;ol&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;strong&gt;index.php&lt;/strong&gt; file is launched;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;strong&gt;Router&lt;/strong&gt; defines which &lt;strong&gt;component&lt;/strong&gt; was requested and launches its controller;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;strong&gt;Controller&lt;/strong&gt; receives the request parameters from a &lt;abbr title=&quot;Uniform Resource Locator&quot;&gt;URL&lt;/abbr&gt; or a form filled by a user;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;strong&gt;Controller&lt;/strong&gt; receives (or saves) the data via model;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;strong&gt;Controller&lt;/strong&gt; processes the data in a proper way;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;strong&gt;Controller&lt;/strong&gt; requests the template and passes the received (or processed) data into it;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;strong&gt;Template&lt;/strong&gt; forms the final &lt;abbr title=&quot;HyperText Markup Language&quot;&gt;HTML&lt;/abbr&gt;-page that is returned to a user.&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;
Thus, the main logic (a greater part of the code) is located inside the controller.
&lt;/p&gt;

&lt;p&gt;
In the next documentation sections, we are going to consider the structure of controllers, models and templates in more detail.
&lt;/p&gt;
&lt;hr /&gt;

&lt;p&gt;
&lt;a href=&quot;https://docs.instantcms.ru/en/dev/start&quot; class=&quot;wikilink2&quot; title=&quot;en:dev:start&quot; rel=&quot;nofollow&quot; data-wiki-id=&quot;en:dev:start&quot;&gt;Back to Contents&lt;/a&gt;
&lt;/p&gt;

&lt;/div&gt;
&lt;!-- EDIT{&amp;quot;target&amp;quot;:&amp;quot;section&amp;quot;,&amp;quot;name&amp;quot;:&amp;quot;Work Scheme&amp;quot;,&amp;quot;hid&amp;quot;:&amp;quot;work-scheme&amp;quot;,&amp;quot;codeblockOffset&amp;quot;:0,&amp;quot;secid&amp;quot;:5,&amp;quot;range&amp;quot;:&amp;quot;1395-&amp;quot;} --&gt;</description>
    </item>
    <item rdf:about="https://docs.instantcms.ru/en/dev/packages?rev=1680385881">
        <dc:format>text/html</dc:format>
        <dc:date>2023-04-01T21:51:21+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>CMS Extension Package Creation</title>
        <link>https://docs.instantcms.ru/en/dev/packages?rev=1680385881</link>
        <description>
&lt;h1 class=&quot;sectionedit1&quot; id=&quot;cms-extension-package-creation&quot;&gt;CMS Extension Package Creation&lt;/h1&gt;
&lt;div class=&quot;level1&quot;&gt;

&lt;p&gt;
InstantCMS 2 uses the mechanism of packages to install extensions (components, widgets, templates, patches and so on) and updates. 
A package consists of certain structure zip-archived files. The file can have the zip or icp extension.
&lt;/p&gt;

&lt;/div&gt;
&lt;!-- EDIT{&amp;quot;target&amp;quot;:&amp;quot;section&amp;quot;,&amp;quot;name&amp;quot;:&amp;quot;CMS Extension Package Creation&amp;quot;,&amp;quot;hid&amp;quot;:&amp;quot;cms-extension-package-creation&amp;quot;,&amp;quot;codeblockOffset&amp;quot;:0,&amp;quot;secid&amp;quot;:1,&amp;quot;range&amp;quot;:&amp;quot;1-283&amp;quot;} --&gt;
&lt;h1 class=&quot;sectionedit2&quot; id=&quot;package-types&quot;&gt;Package Types&lt;/h1&gt;
&lt;div class=&quot;level1&quot;&gt;

&lt;p&gt;
The packages can be of several types according to which the &lt;abbr title=&quot;Content Management System&quot;&gt;CMS&lt;/abbr&gt; performs certain actions.
&lt;/p&gt;

&lt;/div&gt;
&lt;!-- EDIT{&amp;quot;target&amp;quot;:&amp;quot;section&amp;quot;,&amp;quot;name&amp;quot;:&amp;quot;Package Types&amp;quot;,&amp;quot;hid&amp;quot;:&amp;quot;package-types&amp;quot;,&amp;quot;codeblockOffset&amp;quot;:0,&amp;quot;secid&amp;quot;:2,&amp;quot;range&amp;quot;:&amp;quot;284-401&amp;quot;} --&gt;
&lt;h2 class=&quot;sectionedit3&quot; id=&quot;component-installation-package&quot;&gt;Component Installation Package&lt;/h2&gt;
&lt;div class=&quot;level2&quot;&gt;

&lt;p&gt;
Such package implies that the component installation process will be performed. In other words, it is assumed that the component has not been installed before. With this type of package, the &lt;abbr title=&quot;Content Management System&quot;&gt;CMS&lt;/abbr&gt; fills the cms_controllers table itself.
&lt;/p&gt;

&lt;/div&gt;
&lt;!-- EDIT{&amp;quot;target&amp;quot;:&amp;quot;section&amp;quot;,&amp;quot;name&amp;quot;:&amp;quot;Component Installation Package&amp;quot;,&amp;quot;hid&amp;quot;:&amp;quot;component-installation-package&amp;quot;,&amp;quot;codeblockOffset&amp;quot;:0,&amp;quot;secid&amp;quot;:3,&amp;quot;range&amp;quot;:&amp;quot;402-680&amp;quot;} --&gt;
&lt;h2 class=&quot;sectionedit4&quot; id=&quot;component-update-package&quot;&gt;Component Update Package&lt;/h2&gt;
&lt;div class=&quot;level2&quot;&gt;

&lt;p&gt;
Such package is assumed to contain only the previous version update files. You can install the package only if the updatable component has already been installed. The installer will automatically increase the component version and update the option array in the cms_controllers table.
&lt;/p&gt;

&lt;/div&gt;
&lt;!-- EDIT{&amp;quot;target&amp;quot;:&amp;quot;section&amp;quot;,&amp;quot;name&amp;quot;:&amp;quot;Component Update Package&amp;quot;,&amp;quot;hid&amp;quot;:&amp;quot;component-update-package&amp;quot;,&amp;quot;codeblockOffset&amp;quot;:0,&amp;quot;secid&amp;quot;:4,&amp;quot;range&amp;quot;:&amp;quot;681-1003&amp;quot;} --&gt;
&lt;h2 class=&quot;sectionedit5&quot; id=&quot;widget-installation-package&quot;&gt;Widget Installation Package&lt;/h2&gt;
&lt;div class=&quot;level2&quot;&gt;

&lt;p&gt;
This package implies that the installable extension is a widget. The &lt;abbr title=&quot;Content Management System&quot;&gt;CMS&lt;/abbr&gt; will itself add an entry to the cms_widget table on the basis of the manifest file.
&lt;/p&gt;

&lt;/div&gt;
&lt;!-- EDIT{&amp;quot;target&amp;quot;:&amp;quot;section&amp;quot;,&amp;quot;name&amp;quot;:&amp;quot;Widget Installation Package&amp;quot;,&amp;quot;hid&amp;quot;:&amp;quot;widget-installation-package&amp;quot;,&amp;quot;codeblockOffset&amp;quot;:0,&amp;quot;secid&amp;quot;:5,&amp;quot;range&amp;quot;:&amp;quot;1004-1201&amp;quot;} --&gt;
&lt;h2 class=&quot;sectionedit6&quot; id=&quot;widget-update-package&quot;&gt;Widget Update Package&lt;/h2&gt;
&lt;div class=&quot;level2&quot;&gt;

&lt;p&gt;
The algorithm of actions is similar to the component update package, the only difference being that the cms_widgets table is used to edit the data.
&lt;/p&gt;

&lt;/div&gt;
&lt;!-- EDIT{&amp;quot;target&amp;quot;:&amp;quot;section&amp;quot;,&amp;quot;name&amp;quot;:&amp;quot;Widget Update Package&amp;quot;,&amp;quot;hid&amp;quot;:&amp;quot;widget-update-package&amp;quot;,&amp;quot;codeblockOffset&amp;quot;:0,&amp;quot;secid&amp;quot;:6,&amp;quot;range&amp;quot;:&amp;quot;1202-1384&amp;quot;} --&gt;
&lt;h2 class=&quot;sectionedit7&quot; id=&quot;common-purpose-package&quot;&gt;Common Purpose Package&lt;/h2&gt;
&lt;div class=&quot;level2&quot;&gt;

&lt;p&gt;
The engine will recognize such package if the [install] or [update] blocks are missing in the manifest file (see below). When installing such a package, the &lt;abbr title=&quot;Content Management System&quot;&gt;CMS&lt;/abbr&gt; will perform nothing in respect of automatic entry adding to the cms_controllers and cms_widgets tables. In this case, the extension developer should take care of it.
&lt;/p&gt;

&lt;/div&gt;
&lt;!-- EDIT{&amp;quot;target&amp;quot;:&amp;quot;section&amp;quot;,&amp;quot;name&amp;quot;:&amp;quot;Common Purpose Package&amp;quot;,&amp;quot;hid&amp;quot;:&amp;quot;common-purpose-package&amp;quot;,&amp;quot;codeblockOffset&amp;quot;:0,&amp;quot;secid&amp;quot;:7,&amp;quot;range&amp;quot;:&amp;quot;1385-1748&amp;quot;} --&gt;
&lt;h1 class=&quot;sectionedit8&quot; id=&quot;package-structure&quot;&gt;Package Structure&lt;/h1&gt;
&lt;div class=&quot;level1&quot;&gt;

&lt;p&gt;
Inside the archive, the file tree view is generally the following:
&lt;/p&gt;

&lt;p&gt;
&lt;img src=&quot;https://docs.instantcms.ru/_media/dev/%D0%B2%D1%8B%D0%B4%D0%B5%D0%BB%D0%B5%D0%BD%D0%B8%D0%B5_015.png&quot; class=&quot;media&quot; loading=&quot;lazy&quot; alt=&quot;&quot; /&gt;
&lt;/p&gt;

&lt;p&gt;
The tree must have:
&lt;/p&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; manifest.LANGUAGE.ini file&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;
The following files are optional in the archive:
&lt;/p&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; package folder;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; install.sql file;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; icon.png file;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; install.php file;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; the manifest.LANGUAGE.ini files in languages other than Russian.&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;/div&gt;
&lt;!-- EDIT{&amp;quot;target&amp;quot;:&amp;quot;section&amp;quot;,&amp;quot;name&amp;quot;:&amp;quot;Package Structure&amp;quot;,&amp;quot;hid&amp;quot;:&amp;quot;package-structure&amp;quot;,&amp;quot;codeblockOffset&amp;quot;:0,&amp;quot;secid&amp;quot;:8,&amp;quot;range&amp;quot;:&amp;quot;1749-2149&amp;quot;} --&gt;
&lt;h2 class=&quot;sectionedit9&quot; id=&quot;package-folder-structure&quot;&gt;Package Folder Structure&lt;/h2&gt;
&lt;div class=&quot;level2&quot;&gt;

&lt;p&gt;
The structure of the package folder fully coinsides with the folder structure on the site. Hence, the entire folder structure of your component is copied to it, as it is on the site, starting from its root.
&lt;/p&gt;

&lt;/div&gt;
&lt;!-- EDIT{&amp;quot;target&amp;quot;:&amp;quot;section&amp;quot;,&amp;quot;name&amp;quot;:&amp;quot;Package Folder Structure&amp;quot;,&amp;quot;hid&amp;quot;:&amp;quot;package-folder-structure&amp;quot;,&amp;quot;codeblockOffset&amp;quot;:0,&amp;quot;secid&amp;quot;:9,&amp;quot;range&amp;quot;:&amp;quot;2150-2394&amp;quot;} --&gt;
&lt;h2 class=&quot;sectionedit10&quot; id=&quot;extension-icon-file&quot;&gt;Extension Icon File&lt;/h2&gt;
&lt;div class=&quot;level2&quot;&gt;

&lt;p&gt;
The file should be located in the archive root and have the title spesified in the manifest file. There are no restrictions on the file type and its size. However, you should certainly take into account that huge photos will distract the appearance of the package info page.
&lt;/p&gt;

&lt;/div&gt;
&lt;!-- EDIT{&amp;quot;target&amp;quot;:&amp;quot;section&amp;quot;,&amp;quot;name&amp;quot;:&amp;quot;Extension Icon File&amp;quot;,&amp;quot;hid&amp;quot;:&amp;quot;extension-icon-file&amp;quot;,&amp;quot;codeblockOffset&amp;quot;:0,&amp;quot;secid&amp;quot;:10,&amp;quot;range&amp;quot;:&amp;quot;2395-2702&amp;quot;} --&gt;
&lt;h2 class=&quot;sectionedit11&quot; id=&quot;installsql-file&quot;&gt;install.sql file&lt;/h2&gt;
&lt;div class=&quot;level2&quot;&gt;

&lt;p&gt;
This file contains the description of all required sql requests that fill tables or create new ones for your extension.
In sql requests, the table prefix should be substituted by the {#} symbol. For example, if an original request has the following view:
&lt;/p&gt;
&lt;pre class=&quot;code sql&quot;&gt;&lt;span class=&quot;kw1&quot;&gt;INSERT&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;INTO&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;`cms_controllers`&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;`title`&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;`name`&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;`is_enabled`&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;`options`&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;`author`&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;`url`&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;`version`&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;`is_backend`&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;VALUES&lt;/span&gt;
&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;'Open Graph protocol'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;'opengraph'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;'---&lt;span class=&quot;es0&quot;&gt;\n&lt;/span&gt;enabled_ctypes:&lt;span class=&quot;es0&quot;&gt;\n&lt;/span&gt;is_https_available: null&lt;span class=&quot;es0&quot;&gt;\n&lt;/span&gt;default_image:&lt;span class=&quot;es0&quot;&gt;\n&lt;/span&gt;'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;'InstantMedia Team'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;'http://www.instantmedia.ru/'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;'1.1.0'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;;&lt;/pre&gt;

&lt;p&gt;
then, in this file, the request should have the following view:
&lt;/p&gt;
&lt;pre class=&quot;code sql&quot;&gt;&lt;span class=&quot;kw1&quot;&gt;INSERT&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;INTO&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;`{#}controllers`&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;`title`&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;`name`&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;`is_enabled`&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;`options`&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;`author`&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;`url`&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;`version`&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;`is_backend`&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;VALUES&lt;/span&gt;
&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;'Open Graph protocol'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;'opengraph'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;'---&lt;span class=&quot;es0&quot;&gt;\n&lt;/span&gt;enabled_ctypes:&lt;span class=&quot;es0&quot;&gt;\n&lt;/span&gt;is_https_available: null&lt;span class=&quot;es0&quot;&gt;\n&lt;/span&gt;default_image:&lt;span class=&quot;es0&quot;&gt;\n&lt;/span&gt;'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;'InstantMedia Team'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;'http://www.instantmedia.ru/'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;'1.1.0'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;;&lt;/pre&gt;

&lt;p&gt;
Please note that in this file, in InstantCMS versions higher than 2.3.0, there is no need to write sql requests that add entries to the cms_widgets and cms_controllers tables; it will be enough if you specify the extension type in the manifest file. When installing an extension, the engine will itself add proper entries to these tables on the basis of the data specified in the manifest file and will futher automatically monitor the version when installing update packages.
&lt;/p&gt;

&lt;/div&gt;
&lt;!-- EDIT{&amp;quot;target&amp;quot;:&amp;quot;section&amp;quot;,&amp;quot;name&amp;quot;:&amp;quot;install.sql file&amp;quot;,&amp;quot;hid&amp;quot;:&amp;quot;installsql-file&amp;quot;,&amp;quot;codeblockOffset&amp;quot;:0,&amp;quot;secid&amp;quot;:11,&amp;quot;range&amp;quot;:&amp;quot;2703-4154&amp;quot;} --&gt;
&lt;h2 class=&quot;sectionedit12&quot; id=&quot;installphp-file&quot;&gt;install.php file&lt;/h2&gt;
&lt;div class=&quot;level2&quot;&gt;

&lt;p&gt;
The install_package function without arguments should be defined in this file. Inside the function, you can perform any actions by requesting proper objects of system classes. Surely, you can create any number of custom functions in this file and request them from the install_package function.
The install_package function should return:
&lt;/p&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; if everything specified in it has been successfully performed;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; if an error occurred when executing the code;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; an error text that will be displayed to a user when installing an extension&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;
In case of the false response or an error text, the engine will not add entries to the cms_widgets and cms_controllers tables and the extension will be considered as not installed.
&lt;/p&gt;

&lt;p&gt;
Additionally, the function called «after_install_package», which is requested when an extension has already been successfully installed, can be defined in this file. This function is optional.
&lt;/p&gt;

&lt;/div&gt;
&lt;!-- EDIT{&amp;quot;target&amp;quot;:&amp;quot;section&amp;quot;,&amp;quot;name&amp;quot;:&amp;quot;install.php file&amp;quot;,&amp;quot;hid&amp;quot;:&amp;quot;installphp-file&amp;quot;,&amp;quot;codeblockOffset&amp;quot;:2,&amp;quot;secid&amp;quot;:12,&amp;quot;range&amp;quot;:&amp;quot;4155-5096&amp;quot;} --&gt;
&lt;h2 class=&quot;sectionedit13&quot; id=&quot;manifest-ini-file&quot;&gt;manifest.*.ini file&lt;/h2&gt;
&lt;div class=&quot;level2&quot;&gt;

&lt;p&gt;
This file has a common ini file syntax, for example, like php.ini.
The file title should have the following structure:
&lt;/p&gt;
&lt;pre class=&quot;code&quot;&gt;manifest.{language name}.ini&lt;/pre&gt;

&lt;p&gt;
In other words, you can create a custom manifest file for each of them depending on the languages your extension supports. The manifest.ru.ini file will be used by default. For example, for English localization, the file title will be manifest.en.ini.
&lt;/p&gt;

&lt;p&gt;
You can indicate the following blocks in the file:
&lt;/p&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; [info]&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; [version]&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; [depends]&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; [author]&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; [description]&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;
in case of a typified package too:
&lt;/p&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; [install] or&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; [update]&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;/div&gt;
&lt;!-- EDIT{&amp;quot;target&amp;quot;:&amp;quot;section&amp;quot;,&amp;quot;name&amp;quot;:&amp;quot;manifest.*.ini file&amp;quot;,&amp;quot;hid&amp;quot;:&amp;quot;manifest-ini-file&amp;quot;,&amp;quot;codeblockOffset&amp;quot;:2,&amp;quot;secid&amp;quot;:13,&amp;quot;range&amp;quot;:&amp;quot;5097-5721&amp;quot;} --&gt;
&lt;h3 class=&quot;sectionedit14&quot; id=&quot;info-block&quot;&gt;[info] block&lt;/h3&gt;
&lt;div class=&quot;level3&quot;&gt;

&lt;p&gt;
This block is mandatory
&lt;/p&gt;
&lt;pre class=&quot;code&quot;&gt;title = &amp;quot;your extension title, not more than 64 symbols&amp;quot;
image = &amp;quot;an extension icon title along with the file extension, for example, icon.png&amp;quot;&lt;/pre&gt;

&lt;/div&gt;
&lt;!-- EDIT{&amp;quot;target&amp;quot;:&amp;quot;section&amp;quot;,&amp;quot;name&amp;quot;:&amp;quot;[info] block&amp;quot;,&amp;quot;hid&amp;quot;:&amp;quot;info-block&amp;quot;,&amp;quot;codeblockOffset&amp;quot;:2,&amp;quot;secid&amp;quot;:14,&amp;quot;range&amp;quot;:&amp;quot;5722-5919&amp;quot;} --&gt;
&lt;h3 class=&quot;sectionedit15&quot; id=&quot;version-block&quot;&gt;[version] block&lt;/h3&gt;
&lt;div class=&quot;level3&quot;&gt;

&lt;p&gt;
This block is mandatory
&lt;/p&gt;
&lt;pre class=&quot;code&quot;&gt;major = &amp;quot;the first number of the version&amp;quot;
minor = &amp;quot;the second number of the version&amp;quot;
build = &amp;quot;the third number of the version&amp;quot;
date  = &amp;quot;extension release date, for example, 20161231&amp;quot;&lt;/pre&gt;

&lt;/div&gt;
&lt;!-- EDIT{&amp;quot;target&amp;quot;:&amp;quot;section&amp;quot;,&amp;quot;name&amp;quot;:&amp;quot;[version] block&amp;quot;,&amp;quot;hid&amp;quot;:&amp;quot;version-block&amp;quot;,&amp;quot;codeblockOffset&amp;quot;:2,&amp;quot;secid&amp;quot;:15,&amp;quot;range&amp;quot;:&amp;quot;5920-6160&amp;quot;} --&gt;
&lt;h3 class=&quot;sectionedit16&quot; id=&quot;depends-block&quot;&gt;[depends] block&lt;/h3&gt;
&lt;div class=&quot;level3&quot;&gt;

&lt;p&gt;
This block is optional
&lt;/p&gt;
&lt;pre class=&quot;code&quot;&gt;core = &amp;quot;an InstantCMS version older which the extension will not work&amp;quot;
package = &amp;quot;an already installed extension’s version&amp;quot;&lt;/pre&gt;

&lt;p&gt;
for example,
&lt;/p&gt;
&lt;pre class=&quot;code&quot;&gt;core = &amp;quot;2.4.0&amp;quot;
package = &amp;quot;1.5.7&amp;quot;&lt;/pre&gt;

&lt;p&gt;
The package option is required only if the package is of the «component update» or «widget update» type. If it is specified, the update will not be installed, provided that an already installed extension’s version is older than the one specified here. It is useful to know for sure that the update, for example, under 2.0.5 should necessarily be installed over version 2.0.4.
&lt;/p&gt;

&lt;p&gt;
&lt;strong&gt;Parameters that are supported starting from InstantCMS version 2.6.0.&lt;/strong&gt;
&lt;/p&gt;
&lt;pre class=&quot;code&quot;&gt;dependent_type = &amp;quot;an extension type on which the installable depends and which should be already installed&amp;quot;
dependent_name = &amp;quot;dependent extension title&amp;quot;
dependent_controller = &amp;quot;dependent extension’s controller title&amp;quot;
dependent_version = &amp;quot;a dependent extension’s version, older which the current package will not be installed&amp;quot;
dependent_url = &amp;quot;a link to the dependent controller page&amp;quot;
dependent_title = &amp;quot;dependent controller title&amp;quot;&lt;/pre&gt;

&lt;p&gt;
By specifying the parameters listed above, you can distribute packages that will not be installed in the Control panel, if conditions do not meet. For example, you created some component. You distribute it. Then you decide to create a widget for it. Specify your component availability in the dependencies of the widget installation package. For example, the parameters of the widget dependent on a controller can have the following view:
&lt;/p&gt;
&lt;pre class=&quot;code&quot;&gt;dependent_type = &amp;quot;component&amp;quot;
dependent_name = &amp;quot;video&amp;quot;
dependent_version = &amp;quot;2.2&amp;quot;
dependent_url = &amp;quot;http://instantcms.ru/addons/instantvideo2.html&amp;quot;
dependent_title = &amp;quot;InstantVideo2&amp;quot;&lt;/pre&gt;

&lt;p&gt;
In this case, if the InstantVideo2 component is not installed or is installed but is older than version 2.2, the widget package installation will fail.
&lt;/p&gt;

&lt;p&gt;
If your extension depends on the availability of an installed widget (for example, your package distributes an additional template of it), the parameters will be as follows:
&lt;/p&gt;
&lt;pre class=&quot;code&quot;&gt;dependent_type = &amp;quot;widget&amp;quot;
dependent_name = &amp;quot;promo&amp;quot;
dependent_controller = &amp;quot;video&amp;quot;
dependent_version = &amp;quot;2.0&amp;quot;
dependent_url = &amp;quot;http://instantcms.ru/addons/instantvideo2.html&amp;quot;
dependent_title = &amp;quot;InstantVideo2 promo video&amp;quot;&lt;/pre&gt;

&lt;p&gt;
In this case, during installation, the extension will require the «InstantVideo2 promo video» widget whose version is not older than 2.0.
It is worth noting that the &amp;#039;&amp;#039;dependent_version&amp;#039;’ parameter is optional and the version is checked only if it exists.
&lt;/p&gt;

&lt;/div&gt;
&lt;!-- EDIT{&amp;quot;target&amp;quot;:&amp;quot;section&amp;quot;,&amp;quot;name&amp;quot;:&amp;quot;[depends] block&amp;quot;,&amp;quot;hid&amp;quot;:&amp;quot;depends-block&amp;quot;,&amp;quot;codeblockOffset&amp;quot;:2,&amp;quot;secid&amp;quot;:16,&amp;quot;range&amp;quot;:&amp;quot;6161-8744&amp;quot;} --&gt;
&lt;h3 class=&quot;sectionedit17&quot; id=&quot;author-block&quot;&gt;[author] block&lt;/h3&gt;
&lt;div class=&quot;level3&quot;&gt;

&lt;p&gt;
This block is optional but advisable for users to know whom to contact about the extension issues.
&lt;/p&gt;
&lt;pre class=&quot;code&quot;&gt;name  = &amp;quot;developer name: brand or some name, not more than 128 symbols long&amp;quot;
url   = &amp;quot;website address starting with http://, if there is one, not more than 250 symbols long&amp;quot;
email = &amp;quot;developer’s e-mail, if there is one&amp;quot;&lt;/pre&gt;

&lt;/div&gt;
&lt;!-- EDIT{&amp;quot;target&amp;quot;:&amp;quot;section&amp;quot;,&amp;quot;name&amp;quot;:&amp;quot;[author] block&amp;quot;,&amp;quot;hid&amp;quot;:&amp;quot;author-block&amp;quot;,&amp;quot;codeblockOffset&amp;quot;:2,&amp;quot;secid&amp;quot;:17,&amp;quot;range&amp;quot;:&amp;quot;8745-9096&amp;quot;} --&gt;
&lt;h3 class=&quot;sectionedit18&quot; id=&quot;description-block&quot;&gt;[description] block&lt;/h3&gt;
&lt;div class=&quot;level3&quot;&gt;

&lt;p&gt;
This block is optional
&lt;/p&gt;
&lt;pre class=&quot;code&quot;&gt;text[] = &amp;quot;Extension description&amp;quot;
text[] = &amp;quot;There can be one or&amp;quot;
text[] = &amp;quot;several strings&amp;quot;&lt;/pre&gt;

&lt;/div&gt;
&lt;!-- EDIT{&amp;quot;target&amp;quot;:&amp;quot;section&amp;quot;,&amp;quot;name&amp;quot;:&amp;quot;[description] block&amp;quot;,&amp;quot;hid&amp;quot;:&amp;quot;description-block&amp;quot;,&amp;quot;codeblockOffset&amp;quot;:2,&amp;quot;secid&amp;quot;:18,&amp;quot;range&amp;quot;:&amp;quot;9097-9246&amp;quot;} --&gt;
&lt;h3 class=&quot;sectionedit19&quot; id=&quot;install-or-update-block&quot;&gt;[install] or [update] block&lt;/h3&gt;
&lt;div class=&quot;level3&quot;&gt;

&lt;p&gt;
Only one of the specified blocks can be in the file, i.e. either [install] or [update]. With the help of them the &lt;abbr title=&quot;Content Management System&quot;&gt;CMS&lt;/abbr&gt; detects the type: installation or update.
The following options are required inside the block (identical for both types) :
&lt;/p&gt;
&lt;pre class=&quot;code&quot;&gt;type = &amp;quot;you can specify only component or widget or system&amp;quot;
name = &amp;quot;system name&amp;quot;
an option for a widget, can be empty or be missing if a widget does not need a controller&lt;/pre&gt;

&lt;p&gt;
For example, the block of the video component installation package can have the following view:
&lt;/p&gt;
&lt;pre class=&quot;code&quot;&gt;[install]
type = &amp;quot;component&amp;quot;
name = &amp;quot;video&amp;quot;&lt;/pre&gt;

&lt;p&gt;
as for the update, it will look like:
&lt;/p&gt;
&lt;pre class=&quot;code&quot;&gt;[update]
type = &amp;quot;component&amp;quot;
name = &amp;quot;video&amp;quot;&lt;/pre&gt;

&lt;p&gt;
To install a widget bound to a specific component, the options can be as follows:
&lt;/p&gt;
&lt;pre class=&quot;code&quot;&gt;[install]
type = &amp;quot;widget&amp;quot;
name = &amp;quot;related&amp;quot;
controller = &amp;quot;video&amp;quot;&lt;/pre&gt;

&lt;p&gt;
Analogously in the case of an update.
&lt;/p&gt;

&lt;/div&gt;
&lt;!-- EDIT{&amp;quot;target&amp;quot;:&amp;quot;section&amp;quot;,&amp;quot;name&amp;quot;:&amp;quot;[install] or [update] block&amp;quot;,&amp;quot;hid&amp;quot;:&amp;quot;install-or-update-block&amp;quot;,&amp;quot;codeblockOffset&amp;quot;:2,&amp;quot;secid&amp;quot;:19,&amp;quot;range&amp;quot;:&amp;quot;9247-10128&amp;quot;} --&gt;
&lt;h1 class=&quot;sectionedit20&quot; id=&quot;video-tutorial&quot;&gt;Video tutorial&lt;/h1&gt;
&lt;div class=&quot;level1&quot;&gt;

&lt;p&gt;
&lt;a href=&quot;https://docs.instantcms.ru/dev/en/video/package&quot; class=&quot;wikilink2&quot; title=&quot;dev:en:video:package&quot; rel=&quot;nofollow&quot; data-wiki-id=&quot;dev:en:video:package&quot;&gt;A Video Tutorial&lt;/a&gt; about an extension installer creation
&lt;/p&gt;

&lt;/div&gt;
&lt;!-- EDIT{&amp;quot;target&amp;quot;:&amp;quot;section&amp;quot;,&amp;quot;name&amp;quot;:&amp;quot;Video tutorial&amp;quot;,&amp;quot;hid&amp;quot;:&amp;quot;video-tutorial&amp;quot;,&amp;quot;codeblockOffset&amp;quot;:2,&amp;quot;secid&amp;quot;:20,&amp;quot;range&amp;quot;:&amp;quot;10129-10240&amp;quot;} --&gt;
&lt;h1 class=&quot;sectionedit21&quot; id=&quot;component-deletion&quot;&gt;Component Deletion&lt;/h1&gt;
&lt;div class=&quot;level1&quot;&gt;

&lt;p&gt;
The mechanism of removing custom components is available from InstantCMS version 2.4.0. By default, the deletion action deletes the component entries from the cms_controllers table.
Extension developers can supplement the mechanism in two ways by default:
&lt;/p&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; create a method called deleteController in the custom &lt;a href=&quot;https://docs.instantcms.ru/en/dev/models&quot; class=&quot;wikilink1&quot; title=&quot;en:dev:models&quot; data-wiki-id=&quot;en:dev:models&quot;&gt;Model&lt;/a&gt; and describe the removal instructions there, opposite to the ones performed during installation;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; create the «delete_component» special action in your controller’s &lt;a href=&quot;https://docs.instantcms.ru/dev/en/controllers/backend/controller&quot; class=&quot;wikilink2&quot; title=&quot;dev:en:controllers:backend:controller&quot; rel=&quot;nofollow&quot; data-wiki-id=&quot;dev:en:controllers:backend:controller&quot;&gt;Backend&lt;/a&gt; and similarly describe the actions to delete the component data.&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;
You can choose not to supplement and not to implement the removal mechanism if your component does not need it. In this case, an entry from the cms_controllers table will simply be deleted upon removal.
&lt;/p&gt;

&lt;p&gt;
As for the model method, the code may be as follows:
&lt;/p&gt;
&lt;pre class=&quot;code php&quot;&gt;&lt;span class=&quot;kw2&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;kw2&quot;&gt;function&lt;/span&gt; deleteController&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$id&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
&amp;nbsp;
    &lt;span class=&quot;co1&quot;&gt;// here you write some code that, for instance, deletes tables created by the component during installation&lt;/span&gt;
    &lt;span class=&quot;co1&quot;&gt;// delete entries concerning integration with other components, for example,&lt;/span&gt;
    &lt;span class=&quot;co1&quot;&gt;// from the activity feed, rss and other components you use&lt;/span&gt;
&amp;nbsp;
&amp;nbsp;
    &lt;span class=&quot;co1&quot;&gt;// you must request the parent method to delete an entry from the cms_controllers table&lt;/span&gt;
    &lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; parent&lt;span class=&quot;sy0&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;me2&quot;&gt;deleteController&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$id&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/pre&gt;

&lt;p&gt;
Use the controller backend action, if you want a user to perform any action when deleting a component.
The action is created as a standard action of the &lt;a href=&quot;https://docs.instantcms.ru/dev/en/controllers/backend/controller&quot; class=&quot;wikilink2&quot; title=&quot;dev:en:controllers:backend:controller&quot; rel=&quot;nofollow&quot; data-wiki-id=&quot;dev:en:controllers:backend:controller&quot;&gt;Backend Controller&lt;/a&gt;. The action must be called «delete_component».  The parameters are not passed into it.
As a result, apart from actions needed for your component, an entry from the cms_controllers table should be deleted.
&lt;/p&gt;
&lt;pre class=&quot;code php&quot;&gt;&lt;span class=&quot;re0&quot;&gt;$this&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;me1&quot;&gt;model&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;me1&quot;&gt;deleteController&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$controller_id&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;
&lt;hr /&gt;

&lt;p&gt;
&lt;a href=&quot;https://docs.instantcms.ru/dev/en/start&quot; class=&quot;wikilink2&quot; title=&quot;dev:en:start&quot; rel=&quot;nofollow&quot; data-wiki-id=&quot;dev:en:start&quot;&gt;Back to Contents&lt;/a&gt;
&lt;/p&gt;

&lt;/div&gt;
&lt;!-- EDIT{&amp;quot;target&amp;quot;:&amp;quot;section&amp;quot;,&amp;quot;name&amp;quot;:&amp;quot;Component Deletion&amp;quot;,&amp;quot;hid&amp;quot;:&amp;quot;component-deletion&amp;quot;,&amp;quot;codeblockOffset&amp;quot;:2,&amp;quot;secid&amp;quot;:21,&amp;quot;range&amp;quot;:&amp;quot;10241-&amp;quot;} --&gt;</description>
    </item>
    <item rdf:about="https://docs.instantcms.ru/en/dev/templates?rev=1490304387">
        <dc:format>text/html</dc:format>
        <dc:date>2017-03-23T21:26:27+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Templates</title>
        <link>https://docs.instantcms.ru/en/dev/templates?rev=1490304387</link>
        <description>
&lt;h1 class=&quot;sectionedit1&quot; id=&quot;templates&quot;&gt;Templates&lt;/h1&gt;
&lt;div class=&quot;level1&quot;&gt;

&lt;p&gt;
This section contains documentation on working with InstantCMS templates. Templates are sets of files that control how your site looks in a browser. These files generate an &lt;abbr title=&quot;HyperText Markup Language&quot;&gt;HTML&lt;/abbr&gt;-code.
&lt;/p&gt;

&lt;p&gt;
The description of how to work with templates from controllers and widgets is found &lt;a href=&quot;https://docs.instantcms.ru/en/dev/widgets&quot; class=&quot;wikilink1&quot; title=&quot;en:dev:widgets&quot; data-wiki-id=&quot;en:dev:widgets&quot;&gt;here&lt;/a&gt; and &lt;a href=&quot;https://docs.instantcms.ru/en/dev/controllers/templates&quot; class=&quot;wikilink1&quot; title=&quot;en:dev:controllers:templates&quot; data-wiki-id=&quot;en:dev:controllers:templates&quot;&gt;here&lt;/a&gt; respectively.
&lt;/p&gt;

&lt;/div&gt;
&lt;!-- EDIT{&amp;quot;target&amp;quot;:&amp;quot;section&amp;quot;,&amp;quot;name&amp;quot;:&amp;quot;Templates&amp;quot;,&amp;quot;hid&amp;quot;:&amp;quot;templates&amp;quot;,&amp;quot;codeblockOffset&amp;quot;:0,&amp;quot;secid&amp;quot;:1,&amp;quot;range&amp;quot;:&amp;quot;1-378&amp;quot;} --&gt;
&lt;h2 class=&quot;sectionedit2&quot; id=&quot;section-contents&quot;&gt;Section Contents&lt;/h2&gt;
&lt;div class=&quot;level2&quot;&gt;
&lt;ol&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;https://docs.instantcms.ru/en/dev/templates/overview&quot; class=&quot;wikilink1&quot; title=&quot;en:dev:templates:overview&quot; data-wiki-id=&quot;en:dev:templates:overview&quot;&gt;Introduction&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;https://docs.instantcms.ru/en/dev/templates/css-js&quot; class=&quot;wikilink1&quot; title=&quot;en:dev:templates:css-js&quot; data-wiki-id=&quot;en:dev:templates:css-js&quot;&gt;Linking CSS and Javascript files&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;https://docs.instantcms.ru/en/dev/templates/inherits&quot; class=&quot;wikilink1&quot; title=&quot;en:dev:templates:inherits&quot; data-wiki-id=&quot;en:dev:templates:inherits&quot;&gt;Inheritance mechanism of templates&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;https://docs.instantcms.ru/en/dev/templates/page-params&quot; class=&quot;wikilink1&quot; title=&quot;en:dev:templates:page-params&quot; data-wiki-id=&quot;en:dev:templates:page-params&quot;&gt;SEO tags and other head entries&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;https://docs.instantcms.ru/en/dev/templates/layouts&quot; class=&quot;wikilink1&quot; title=&quot;en:dev:templates:layouts&quot; data-wiki-id=&quot;en:dev:templates:layouts&quot;&gt;Template layouts&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;https://docs.instantcms.ru/en/dev/templates/helpers&quot; class=&quot;wikilink1&quot; title=&quot;en:dev:templates:helpers&quot; data-wiki-id=&quot;en:dev:templates:helpers&quot;&gt;Using helper functions&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;https://docs.instantcms.ru/en/dev/templates/options&quot; class=&quot;wikilink1&quot; title=&quot;en:dev:templates:options&quot; data-wiki-id=&quot;en:dev:templates:options&quot;&gt;Creating template options&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;https://docs.instantcms.ru/en/dev/templates/scheme&quot; class=&quot;wikilink1&quot; title=&quot;en:dev:templates:scheme&quot; data-wiki-id=&quot;en:dev:templates:scheme&quot;&gt;Creating a position layout file&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;https://docs.instantcms.ru/en/dev/templates/create_new&quot; class=&quot;wikilink2&quot; title=&quot;en:dev:templates:create_new&quot; rel=&quot;nofollow&quot; data-wiki-id=&quot;en:dev:templates:create_new&quot;&gt;Creating a template&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;/div&gt;
&lt;!-- EDIT{&amp;quot;target&amp;quot;:&amp;quot;section&amp;quot;,&amp;quot;name&amp;quot;:&amp;quot;Section Contents&amp;quot;,&amp;quot;hid&amp;quot;:&amp;quot;section-contents&amp;quot;,&amp;quot;codeblockOffset&amp;quot;:0,&amp;quot;secid&amp;quot;:2,&amp;quot;range&amp;quot;:&amp;quot;379-952&amp;quot;} --&gt;
&lt;h2 class=&quot;sectionedit3&quot; id=&quot;useful-resources&quot;&gt;Useful Resources&lt;/h2&gt;
&lt;div class=&quot;level2&quot;&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;http://htmlbook.ru/html&quot; class=&quot;urlextern&quot; title=&quot;http://htmlbook.ru/html&quot; rel=&quot;ugc nofollow&quot;&gt;HTML Guide&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;http://htmlbook.ru/css/&quot; class=&quot;urlextern&quot; title=&quot;http://htmlbook.ru/css/&quot; rel=&quot;ugc nofollow&quot;&gt;CSS Guide&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;http://jquery.page2page.ru/&quot; class=&quot;urlextern&quot; title=&quot;http://jquery.page2page.ru/&quot; rel=&quot;ugc nofollow&quot;&gt;jQuery Guide&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;http://javascript.ru/&quot; class=&quot;urlextern&quot; title=&quot;http://javascript.ru/&quot; rel=&quot;ugc nofollow&quot;&gt;Javascript Guide&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;hr /&gt;

&lt;p&gt;
Back to previous contents &lt;a href=&quot;https://docs.instantcms.ru/en/dev/start&quot; class=&quot;wikilink2&quot; title=&quot;en:dev:start&quot; rel=&quot;nofollow&quot; data-wiki-id=&quot;en:dev:start&quot;&gt;For Developers&lt;/a&gt;
&lt;/p&gt;

&lt;/div&gt;
&lt;!-- EDIT{&amp;quot;target&amp;quot;:&amp;quot;section&amp;quot;,&amp;quot;name&amp;quot;:&amp;quot;Useful Resources&amp;quot;,&amp;quot;hid&amp;quot;:&amp;quot;useful-resources&amp;quot;,&amp;quot;codeblockOffset&amp;quot;:0,&amp;quot;secid&amp;quot;:3,&amp;quot;range&amp;quot;:&amp;quot;953-&amp;quot;} --&gt;</description>
    </item>
    <item rdf:about="https://docs.instantcms.ru/en/dev/widgets?rev=1491728708">
        <dc:format>text/html</dc:format>
        <dc:date>2017-04-09T09:05:08+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Widgets</title>
        <link>https://docs.instantcms.ru/en/dev/widgets?rev=1491728708</link>
        <description>
&lt;h1 class=&quot;sectionedit1&quot; id=&quot;widgets&quot;&gt;Widgets&lt;/h1&gt;
&lt;div class=&quot;level1&quot;&gt;

&lt;p&gt;
Widgets are small blocks that are displayed on the site pages. They can be displayed in a sidebar, header, footer or page body. Find a detailed widget description &lt;a href=&quot;https://docs.instantcms.ru/en/manual/widgets&quot; class=&quot;wikilink1&quot; title=&quot;en:manual:widgets&quot; data-wiki-id=&quot;en:manual:widgets&quot;&gt;here&lt;/a&gt;.
&lt;/p&gt;

&lt;/div&gt;
&lt;!-- EDIT{&amp;quot;target&amp;quot;:&amp;quot;section&amp;quot;,&amp;quot;name&amp;quot;:&amp;quot;Widgets&amp;quot;,&amp;quot;hid&amp;quot;:&amp;quot;widgets&amp;quot;,&amp;quot;codeblockOffset&amp;quot;:0,&amp;quot;secid&amp;quot;:1,&amp;quot;range&amp;quot;:&amp;quot;1-216&amp;quot;} --&gt;
&lt;h2 class=&quot;sectionedit2&quot; id=&quot;video&quot;&gt;Video&lt;/h2&gt;
&lt;div class=&quot;level2&quot;&gt;

&lt;p&gt;
You can watch a real time &lt;a href=&quot;https://docs.instantcms.ru/en/dev/video/widget&quot; class=&quot;wikilink2&quot; title=&quot;en:dev:video:widget&quot; rel=&quot;nofollow&quot; data-wiki-id=&quot;en:dev:video:widget&quot;&gt;Video Tutorial&lt;/a&gt; of how to create a useful widget with the most detailed description of its inner structure.
&lt;/p&gt;

&lt;/div&gt;
&lt;!-- EDIT{&amp;quot;target&amp;quot;:&amp;quot;section&amp;quot;,&amp;quot;name&amp;quot;:&amp;quot;Video&amp;quot;,&amp;quot;hid&amp;quot;:&amp;quot;video&amp;quot;,&amp;quot;codeblockOffset&amp;quot;:0,&amp;quot;secid&amp;quot;:2,&amp;quot;range&amp;quot;:&amp;quot;217-394&amp;quot;} --&gt;
&lt;h2 class=&quot;sectionedit3&quot; id=&quot;introduction&quot;&gt;Introduction&lt;/h2&gt;
&lt;div class=&quot;level2&quot;&gt;

&lt;p&gt;
Each widget consists of several files. The main logic is located in the file with the &lt;strong&gt;widget class&lt;/strong&gt;. Text messages are located in the &lt;strong&gt;language file&lt;/strong&gt;. Its appearance is defined in the widget &lt;strong&gt;template&lt;/strong&gt;.  
&lt;/p&gt;

&lt;p&gt;
The widgets are devided into two types depending on whether a particular widget belongs to any component or is independent:
&lt;/p&gt;
&lt;div class=&quot;table sectionedit4&quot;&gt;&lt;table class=&quot;inline&quot;&gt;
	&lt;thead&gt;
	&lt;tr class=&quot;row0&quot;&gt;
		&lt;th class=&quot;col0&quot;&gt;Type&lt;/th&gt;&lt;th class=&quot;col1&quot;&gt;Description&lt;/th&gt;&lt;th class=&quot;col2&quot;&gt;Examples&lt;/th&gt;
	&lt;/tr&gt;
	&lt;/thead&gt;
	&lt;tr class=&quot;row1&quot;&gt;
		&lt;td class=&quot;col0&quot;&gt;&lt;strong&gt;General&lt;/strong&gt;&lt;/td&gt;&lt;td class=&quot;col1&quot;&gt;An independent widget which is not logically bound to any of the components and is available separately&lt;/td&gt;&lt;td class=&quot;col2&quot;&gt;Menu, Text block, Weather forecast&lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr class=&quot;row2&quot;&gt;
		&lt;td class=&quot;col0&quot;&gt;&lt;strong&gt;Component widget&lt;/strong&gt;&lt;/td&gt;&lt;td class=&quot;col1&quot;&gt; It is referred to some component, uses its model to get data, is available with this component&lt;/td&gt;&lt;td class=&quot;col2&quot;&gt;Content list, Comment list, Login form&lt;/td&gt;
	&lt;/tr&gt;
&lt;/table&gt;&lt;/div&gt;
&lt;!-- EDIT{&amp;quot;target&amp;quot;:&amp;quot;table&amp;quot;,&amp;quot;name&amp;quot;:&amp;quot;&amp;quot;,&amp;quot;hid&amp;quot;:&amp;quot;table&amp;quot;,&amp;quot;secid&amp;quot;:4,&amp;quot;range&amp;quot;:&amp;quot;759-1097&amp;quot;} --&gt;
&lt;p&gt;
The widget type does not fundamentally influence its implementation but only defines where (in what folders) the widget files will be located and how its class will be called. 
&lt;/p&gt;

&lt;p&gt;
The type also determines on which palette tab this widget will be displayed in the control panel:
&lt;/p&gt;

&lt;p&gt;
&lt;img src=&quot;https://docs.instantcms.ru/_media/dev/controllers/backend/widgets_palette.png&quot; class=&quot;media&quot; loading=&quot;lazy&quot; alt=&quot;&quot; /&gt;
&lt;/p&gt;

&lt;p&gt;
Common widgets are displayed on the same-name tab, while component widgets are displayed on the tabs with the title of a bound component.
&lt;/p&gt;

&lt;p&gt;
In each section, the differing moments will be separately described for each of the types.
&lt;/p&gt;

&lt;/div&gt;
&lt;!-- EDIT{&amp;quot;target&amp;quot;:&amp;quot;section&amp;quot;,&amp;quot;name&amp;quot;:&amp;quot;Introduction&amp;quot;,&amp;quot;hid&amp;quot;:&amp;quot;introduction&amp;quot;,&amp;quot;codeblockOffset&amp;quot;:0,&amp;quot;secid&amp;quot;:3,&amp;quot;range&amp;quot;:&amp;quot;395-1664&amp;quot;} --&gt;
&lt;h2 class=&quot;sectionedit5&quot; id=&quot;registering-in-the-database&quot;&gt;Registering in the Database&lt;/h2&gt;
&lt;div class=&quot;level2&quot;&gt;

&lt;p&gt;
Register the widget in the database to make the widget appear in the control panel and available on the site. Do this by adding a row to the &lt;strong&gt;widgets&lt;/strong&gt; table with the following fields:
&lt;/p&gt;
&lt;div class=&quot;table sectionedit6&quot;&gt;&lt;table class=&quot;inline&quot;&gt;
	&lt;thead&gt;
	&lt;tr class=&quot;row0&quot;&gt;
		&lt;th class=&quot;col0&quot;&gt;Field&lt;/th&gt;&lt;th class=&quot;col1&quot;&gt;Description&lt;/th&gt;&lt;th class=&quot;col2&quot;&gt;Example&lt;/th&gt;
	&lt;/tr&gt;
	&lt;/thead&gt;
	&lt;tr class=&quot;row1&quot;&gt;
		&lt;td class=&quot;col0&quot;&gt;&lt;strong&gt;controller&lt;/strong&gt;&lt;/td&gt;&lt;td class=&quot;col1&quot;&gt;Bound component title. Leave empty for common widgets (null)&lt;/td&gt;&lt;td class=&quot;col2&quot;&gt;comments&lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr class=&quot;row2&quot;&gt;
		&lt;td class=&quot;col0&quot;&gt;&lt;strong&gt;name&lt;/strong&gt;&lt;/td&gt;&lt;td class=&quot;col1&quot;&gt;Widget title. Used in the folder and class titles&lt;/td&gt;&lt;td class=&quot;col2&quot;&gt;list&lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr class=&quot;row3&quot;&gt;
		&lt;td class=&quot;col0&quot;&gt;&lt;strong&gt;title&lt;/strong&gt;&lt;/td&gt;&lt;td class=&quot;col1&quot;&gt;Widget title. Can be overridden by a user in the control panel&lt;/td&gt;&lt;td class=&quot;col2&quot;&gt;List of comments&lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr class=&quot;row4&quot;&gt;
		&lt;td class=&quot;col0&quot;&gt;&lt;strong&gt;author&lt;/strong&gt;&lt;/td&gt;&lt;td class=&quot;col1&quot;&gt;Author’s name or title&lt;/td&gt;&lt;td class=&quot;col2&quot;&gt;InstantSoft&lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr class=&quot;row5&quot;&gt;
		&lt;td class=&quot;col0&quot;&gt;&lt;strong&gt;url&lt;/strong&gt;&lt;/td&gt;&lt;td class=&quot;col1&quot;&gt;A link to the author’s site or widget&lt;/td&gt;&lt;td class=&quot;col2&quot;&gt;&lt;a href=&quot;http://instantsoft.ru&quot; class=&quot;urlextern&quot; title=&quot;http://instantsoft.ru&quot; rel=&quot;ugc nofollow&quot;&gt;http://instantsoft.ru&lt;/a&gt;&lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr class=&quot;row6&quot;&gt;
		&lt;td class=&quot;col0&quot;&gt;&lt;strong&gt;version&lt;/strong&gt;&lt;/td&gt;&lt;td class=&quot;col1&quot;&gt;Installed widget version&lt;/td&gt;&lt;td class=&quot;col2&quot;&gt;1.0&lt;/td&gt;
	&lt;/tr&gt;
&lt;/table&gt;&lt;/div&gt;
&lt;!-- EDIT{&amp;quot;target&amp;quot;:&amp;quot;table&amp;quot;,&amp;quot;name&amp;quot;:&amp;quot;&amp;quot;,&amp;quot;hid&amp;quot;:&amp;quot;table1&amp;quot;,&amp;quot;secid&amp;quot;:6,&amp;quot;range&amp;quot;:&amp;quot;1893-2330&amp;quot;} --&gt;
&lt;p&gt;
After adding a widget to the database, you can bind it to the site pages in the control panel. However, you should create its class to display it on the site.
&lt;/p&gt;

&lt;/div&gt;
&lt;!-- EDIT{&amp;quot;target&amp;quot;:&amp;quot;section&amp;quot;,&amp;quot;name&amp;quot;:&amp;quot;Registering in the Database&amp;quot;,&amp;quot;hid&amp;quot;:&amp;quot;registering-in-the-database&amp;quot;,&amp;quot;codeblockOffset&amp;quot;:0,&amp;quot;secid&amp;quot;:5,&amp;quot;range&amp;quot;:&amp;quot;1665-2490&amp;quot;} --&gt;
&lt;h2 class=&quot;sectionedit7&quot; id=&quot;main-widget-file&quot;&gt;Main Widget File&lt;/h2&gt;
&lt;div class=&quot;level2&quot;&gt;

&lt;p&gt;
File location depends on the widget type.
&lt;/p&gt;

&lt;p&gt;
&lt;strong&gt;For common widgets:&lt;/strong&gt; &lt;code&gt;/system/widgets/{widget title}/widget.php&lt;/code&gt;
&lt;/p&gt;

&lt;p&gt;
For example: &lt;code&gt;/system/widgets/menu/widget.php&lt;/code&gt;
&lt;/p&gt;

&lt;p&gt;
&lt;strong&gt;For component widget:&lt;/strong&gt; &lt;code&gt;/system/controllers/{component}/widgets/{widget title}/widget.php&lt;/code&gt;
&lt;/p&gt;

&lt;p&gt;
For example: /system/controllers/comments/widgets/list/widget.php
&lt;/p&gt;

&lt;/div&gt;
&lt;!-- EDIT{&amp;quot;target&amp;quot;:&amp;quot;section&amp;quot;,&amp;quot;name&amp;quot;:&amp;quot;Main Widget File&amp;quot;,&amp;quot;hid&amp;quot;:&amp;quot;main-widget-file&amp;quot;,&amp;quot;codeblockOffset&amp;quot;:0,&amp;quot;secid&amp;quot;:7,&amp;quot;range&amp;quot;:&amp;quot;2491-2848&amp;quot;} --&gt;
&lt;h2 class=&quot;sectionedit8&quot; id=&quot;widget-class&quot;&gt;Widget Class&lt;/h2&gt;
&lt;div class=&quot;level2&quot;&gt;

&lt;p&gt;
The widget class is defined in the main file, the title of which depends on the type too:
&lt;/p&gt;

&lt;p&gt;
&lt;strong&gt;For common widgets:&lt;/strong&gt; &lt;code&gt;widget{WidgetTitle}&lt;/code&gt;
&lt;/p&gt;

&lt;p&gt;
For example: &lt;code&gt;widgetMenu&lt;/code&gt;
&lt;/p&gt;

&lt;p&gt;
&lt;strong&gt;For component widget:&lt;/strong&gt; &lt;code&gt;widget{Component}{WidgetTitle}&lt;/code&gt;
&lt;/p&gt;

&lt;p&gt;
For example: &lt;code&gt;widgetCommentsList&lt;/code&gt;
&lt;/p&gt;

&lt;p&gt;
The class should be inherited from the &lt;strong&gt;cmsWidget&lt;/strong&gt; system class and have the &lt;strong&gt;run()&lt;/strong&gt; public method. This method should return an array (may be empty) or &lt;em&gt;false&lt;/em&gt;. If we return an array, its contents will be passed to the widget’s template. The array keys will turn into separate variables in the template. If we return &lt;em&gt;false&lt;/em&gt;, the widget will not be displayed on the page.
&lt;/p&gt;

&lt;p&gt;
An example of the “Authorization” widget class:
&lt;/p&gt;
&lt;pre class=&quot;code php&quot;&gt;&lt;span class=&quot;co1&quot;&gt;//system/widgets/auth/widget.php&lt;/span&gt;
&lt;span class=&quot;kw2&quot;&gt;class&lt;/span&gt; widgetAuth &lt;span class=&quot;kw2&quot;&gt;extends&lt;/span&gt; cmsWidget &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
&amp;nbsp;
    &lt;span class=&quot;co1&quot;&gt;//we disable widget caching&lt;/span&gt;
    &lt;span class=&quot;kw2&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;$is_cacheable&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;kw4&quot;&gt;false&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
    &lt;span class=&quot;kw2&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;kw2&quot;&gt;function&lt;/span&gt; run&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
&amp;nbsp;
        &lt;span class=&quot;co1&quot;&gt;// if a user is already authorized,&lt;/span&gt;
        &lt;span class=&quot;co1&quot;&gt;// we return false to hide the widget &lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cmsUser&lt;span class=&quot;sy0&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;me2&quot;&gt;isLogged&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;kw4&quot;&gt;false&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
&amp;nbsp;
        &lt;span class=&quot;co1&quot;&gt;// otherwise, we return an empty array to output &lt;/span&gt;
        &lt;span class=&quot;co1&quot;&gt;// the widget template&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; &lt;a href=&quot;http://www.php.net/array&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;array&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
    &lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/pre&gt;

&lt;p&gt;
This widget does not contain any particular logic, its main task is to display the login form, which is described in the template. There is no need to pass any additional data to the template, for this reason, an empty array is returned.
&lt;/p&gt;

&lt;p&gt;
Other methods can be defined in the class, at your discretion.
&lt;/p&gt;

&lt;/div&gt;
&lt;!-- EDIT{&amp;quot;target&amp;quot;:&amp;quot;section&amp;quot;,&amp;quot;name&amp;quot;:&amp;quot;Widget Class&amp;quot;,&amp;quot;hid&amp;quot;:&amp;quot;widget-class&amp;quot;,&amp;quot;codeblockOffset&amp;quot;:0,&amp;quot;secid&amp;quot;:8,&amp;quot;range&amp;quot;:&amp;quot;2849-4341&amp;quot;} --&gt;
&lt;h2 class=&quot;sectionedit9&quot; id=&quot;language-file&quot;&gt;Language File&lt;/h2&gt;
&lt;div class=&quot;level2&quot;&gt;

&lt;p&gt;
If a widget, its options or a template outputs some preset text messages, place them in the language file. File location depends on the widget type.
&lt;/p&gt;

&lt;p&gt;
&lt;strong&gt;For common widgets:&lt;/strong&gt; &lt;code&gt;/system/languages/{languages}/widgets/{widget_title}.php&lt;/code&gt;
&lt;/p&gt;

&lt;p&gt;
For example: &lt;code&gt;/system/languages/ru/widgets/menu.php&lt;/code&gt;
&lt;/p&gt;

&lt;p&gt;
&lt;strong&gt;For component widget&lt;/strong&gt;: &lt;code&gt;/system/languages/{language}/controllers/{component}/widgets/{widget_title}.php&lt;/code&gt;
&lt;/p&gt;

&lt;p&gt;
For example: &lt;code&gt;/system/languages/ru/controllers/comments/widgets/list.php&lt;/code&gt;
&lt;/p&gt;

&lt;/div&gt;
&lt;!-- EDIT{&amp;quot;target&amp;quot;:&amp;quot;section&amp;quot;,&amp;quot;name&amp;quot;:&amp;quot;Language File&amp;quot;,&amp;quot;hid&amp;quot;:&amp;quot;language-file&amp;quot;,&amp;quot;codeblockOffset&amp;quot;:1,&amp;quot;secid&amp;quot;:9,&amp;quot;range&amp;quot;:&amp;quot;4342-4848&amp;quot;} --&gt;
&lt;h3 class=&quot;sectionedit10&quot; id=&quot;language-constants&quot;&gt;Language constants&lt;/h3&gt;
&lt;div class=&quot;level3&quot;&gt;

&lt;p&gt;
Inside the language file, the constants are defined in the same &lt;a href=&quot;https://docs.instantcms.ru/en/dev/controllers/language#file-contents&quot; class=&quot;wikilink1&quot; title=&quot;en:dev:controllers:language&quot; data-wiki-id=&quot;en:dev:controllers:language&quot;&gt;way&lt;/a&gt; as the controllers. The scheme of naming the constants depends on a widget type.
&lt;/p&gt;

&lt;p&gt;
&lt;strong&gt;For common widgets:&lt;/strong&gt; &lt;code&gt;LANG_WD_{WIDGET}_{MESSAGE}&lt;/code&gt;
&lt;/p&gt;

&lt;p&gt;
For example: &lt;code&gt;LANG_WD_MENU_MAX_ITEMS&lt;/code&gt;
&lt;/p&gt;

&lt;p&gt;
&lt;strong&gt;For component widget&lt;/strong&gt;: &lt;code&gt;LANG_WD_{COMPONENT}_{WIDGET}_{MESSAGE}&lt;/code&gt;
&lt;/p&gt;

&lt;p&gt;
For example: &lt;code&gt;LANG_WD_COMMENTS_LIST_SHOW_TEXT&lt;/code&gt;
&lt;/p&gt;

&lt;p&gt;
A sample fragment of the English language file for the “Comment list” widget of the “Comments” component:
&lt;/p&gt;
&lt;pre class=&quot;code php&quot;&gt;&lt;a href=&quot;http://www.php.net/define&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;define&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'LANG_WD_COMMENTS_LIST_SHOW_TEXT'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt;    &lt;span class=&quot;st_h&quot;&gt;'Show comment text'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&lt;a href=&quot;http://www.php.net/define&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;define&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'LANG_WD_COMMENTS_LIST_SHOW_AVATARS'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;st_h&quot;&gt;'Show authors’ avatars'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;!-- EDIT{&amp;quot;target&amp;quot;:&amp;quot;section&amp;quot;,&amp;quot;name&amp;quot;:&amp;quot;Language constants&amp;quot;,&amp;quot;hid&amp;quot;:&amp;quot;language-constants&amp;quot;,&amp;quot;codeblockOffset&amp;quot;:1,&amp;quot;secid&amp;quot;:10,&amp;quot;range&amp;quot;:&amp;quot;4849-5566&amp;quot;} --&gt;
&lt;h2 class=&quot;sectionedit11&quot; id=&quot;widget-settings&quot;&gt;Widget Settings&lt;/h2&gt;
&lt;div class=&quot;level2&quot;&gt;

&lt;p&gt;
When a widget is added to a page, in the Control panel, a pop-up window with its customization form appears. There are two tabs in this window - “General” and “Access”. The widget can add additional tabs with fields to customize the options. 
&lt;/p&gt;

&lt;p&gt;
&lt;img src=&quot;https://docs.instantcms.ru/_media/dev/controllers/backend/widget_opts.png&quot; class=&quot;media&quot; loading=&quot;lazy&quot; alt=&quot;&quot; /&gt;
&lt;/p&gt;

&lt;p&gt;
For this, the widget should have the form description file.
&lt;/p&gt;

&lt;p&gt;
The form’s file is called &lt;code&gt;options.form.php&lt;/code&gt; and is located in the same folder as the main file of the widget (&lt;code&gt;widget.php&lt;/code&gt;). Inside, you should describe the &lt;a href=&quot;https://docs.instantcms.ru/en/dev/forms&quot; class=&quot;wikilink1&quot; title=&quot;en:dev:forms&quot; data-wiki-id=&quot;en:dev:forms&quot;&gt;form&lt;/a&gt; that contains fields to customize the widget options. The title of the form class depends on the widget type.
&lt;/p&gt;

&lt;p&gt;
&lt;strong&gt;For common widgets:&lt;/strong&gt; &lt;code&gt;formWidget{WidgetTitle}Options&lt;/code&gt;
&lt;/p&gt;

&lt;p&gt;
For example – &lt;code&gt;formWidgetMenuOptions&lt;/code&gt;
&lt;/p&gt;

&lt;p&gt;
&lt;strong&gt;For component widget:&lt;/strong&gt; &lt;code&gt;formWidget{Component }{WidgetTitle}Options&lt;/code&gt;
&lt;/p&gt;

&lt;p&gt;
For example – &lt;code&gt;formWidgetCommentsListOptions&lt;/code&gt;
&lt;/p&gt;

&lt;p&gt;
Inside the form, one or several field sets (fieldsets) are described. Each set must have a title, because each set turns into a separate tab in the widget customization window.
&lt;/p&gt;

&lt;p&gt;
&lt;img src=&quot;https://docs.instantcms.ru/lib/images/smileys/exclaim.svg&quot; class=&quot;icon smiley&quot; alt=&quot;:!:&quot; /&gt; Field titles should be as follows: &lt;code&gt;options:{option_title}&lt;/code&gt;, for example, &lt;code&gt;options:show_text&lt;/code&gt;. The &lt;code&gt;options:&lt;/code&gt; prefix is required!
&lt;/p&gt;

&lt;p&gt;
A sample class of the “Comment list” widget’s customization form, which you can see on the screenshot above:
&lt;/p&gt;
&lt;pre class=&quot;code php&quot;&gt;&lt;span class=&quot;kw2&quot;&gt;class&lt;/span&gt; formWidgetCommentsListOptions &lt;span class=&quot;kw2&quot;&gt;extends&lt;/span&gt; cmsForm &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
    &lt;span class=&quot;kw2&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;kw2&quot;&gt;function&lt;/span&gt; init&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; &lt;a href=&quot;http://www.php.net/array&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;array&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;
            &lt;a href=&quot;http://www.php.net/array&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;array&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;
                &lt;span class=&quot;st_h&quot;&gt;'type'&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&amp;gt;&lt;/span&gt; &lt;span class=&quot;st_h&quot;&gt;'fieldset'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt;
                &lt;span class=&quot;st_h&quot;&gt;'title'&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&amp;gt;&lt;/span&gt; LANG_OPTIONS&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt;
                &lt;span class=&quot;st_h&quot;&gt;'childs'&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&amp;gt;&lt;/span&gt; &lt;a href=&quot;http://www.php.net/array&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;array&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;
                    &lt;span class=&quot;kw2&quot;&gt;new&lt;/span&gt; fieldCheckbox&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'options:show_avatars'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; &lt;a href=&quot;http://www.php.net/array&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;array&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;
                        &lt;span class=&quot;st_h&quot;&gt;'title'&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&amp;gt;&lt;/span&gt; LANG_WD_COMMENTS_LIST_SHOW_AVATARS&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt;
                        &lt;span class=&quot;st_h&quot;&gt;'default'&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&amp;gt;&lt;/span&gt; &lt;span class=&quot;kw4&quot;&gt;true&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt;
                    &lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt;
                    &lt;span class=&quot;kw2&quot;&gt;new&lt;/span&gt; fieldCheckbox&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'options:show_text'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; &lt;a href=&quot;http://www.php.net/array&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;array&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;
                        &lt;span class=&quot;st_h&quot;&gt;'title'&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&amp;gt;&lt;/span&gt; LANG_WD_COMMENTS_LIST_SHOW_TEXT&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt;
                        &lt;span class=&quot;st_h&quot;&gt;'default'&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&amp;gt;&lt;/span&gt; &lt;span class=&quot;kw4&quot;&gt;false&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt;
                    &lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt;
                    &lt;span class=&quot;kw2&quot;&gt;new&lt;/span&gt; fieldNumber&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'options:limit'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; &lt;a href=&quot;http://www.php.net/array&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;array&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;
                        &lt;span class=&quot;st_h&quot;&gt;'title'&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&amp;gt;&lt;/span&gt; LANG_LIST_LIMIT&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt;
                        &lt;span class=&quot;st_h&quot;&gt;'default'&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&amp;gt;&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;10&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt;
                        &lt;span class=&quot;st_h&quot;&gt;'rules'&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&amp;gt;&lt;/span&gt; &lt;a href=&quot;http://www.php.net/array&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;array&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;
                            &lt;a href=&quot;http://www.php.net/array&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;array&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'required'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                        &lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                    &lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt;
                &lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
            &lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt;
        &lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
    &lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;!-- EDIT{&amp;quot;target&amp;quot;:&amp;quot;section&amp;quot;,&amp;quot;name&amp;quot;:&amp;quot;Widget Settings&amp;quot;,&amp;quot;hid&amp;quot;:&amp;quot;widget-settings&amp;quot;,&amp;quot;codeblockOffset&amp;quot;:2,&amp;quot;secid&amp;quot;:11,&amp;quot;range&amp;quot;:&amp;quot;5567-7929&amp;quot;} --&gt;
&lt;h2 class=&quot;sectionedit12&quot; id=&quot;getting-settings&quot;&gt;Getting Settings&lt;/h2&gt;
&lt;div class=&quot;level2&quot;&gt;

&lt;p&gt;
The values of options specified in the widget settings can be got in the main widget class with the help of the &lt;strong&gt;getOption($option[, $default])&lt;/strong&gt; custom method, where $option is an option’s title, $default - a default value (&lt;em&gt;false&lt;/em&gt;, if not specified):
&lt;/p&gt;
&lt;pre class=&quot;code php&quot;&gt;&lt;span class=&quot;re0&quot;&gt;$limit&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;$this&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;me1&quot;&gt;getOption&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'limit'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;10&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;

&lt;p&gt;
Please note that the «options:» prefix is not used in this case.
&lt;/p&gt;

&lt;/div&gt;
&lt;!-- EDIT{&amp;quot;target&amp;quot;:&amp;quot;section&amp;quot;,&amp;quot;name&amp;quot;:&amp;quot;Getting Settings&amp;quot;,&amp;quot;hid&amp;quot;:&amp;quot;getting-settings&amp;quot;,&amp;quot;codeblockOffset&amp;quot;:3,&amp;quot;secid&amp;quot;:12,&amp;quot;range&amp;quot;:&amp;quot;7930-8341&amp;quot;} --&gt;
&lt;h2 class=&quot;sectionedit13&quot; id=&quot;widget-templates&quot;&gt;Widget Templates&lt;/h2&gt;
&lt;div class=&quot;level2&quot;&gt;

&lt;p&gt;
The widget should have at least one template.
&lt;/p&gt;

&lt;p&gt;
The location of the template file depends on the widget type.
&lt;/p&gt;

&lt;p&gt;
&lt;strong&gt;For common widgets:&lt;/strong&gt; &lt;code&gt;/templates/{theme}/widgets/{widget}/{widget}.tpl.php&lt;/code&gt;
&lt;/p&gt;

&lt;p&gt;
For example: &lt;code&gt;/templates/default/widgets/menu/menu.tpl.php&lt;/code&gt;
&lt;/p&gt;

&lt;p&gt;
&lt;strong&gt;For component widget:&lt;/strong&gt; &lt;code&gt;/templates/{theme}/controllers/{component}/widgets/{widget}/{widget}.tpl.php&lt;/code&gt;
&lt;/p&gt;

&lt;p&gt;
For example: &lt;code&gt;/templates/default/controllers/comments/widgets/list/list.tpl.php&lt;/code&gt;
&lt;/p&gt;

&lt;/div&gt;
&lt;!-- EDIT{&amp;quot;target&amp;quot;:&amp;quot;section&amp;quot;,&amp;quot;name&amp;quot;:&amp;quot;Widget Templates&amp;quot;,&amp;quot;hid&amp;quot;:&amp;quot;widget-templates&amp;quot;,&amp;quot;codeblockOffset&amp;quot;:4,&amp;quot;secid&amp;quot;:13,&amp;quot;range&amp;quot;:&amp;quot;8342-8818&amp;quot;} --&gt;
&lt;h3 class=&quot;sectionedit14&quot; id=&quot;passing-data-to-a-template&quot;&gt;Passing data to a template&lt;/h3&gt;
&lt;div class=&quot;level3&quot;&gt;

&lt;p&gt;
As described above, the &lt;strong&gt;run()&lt;/strong&gt; method in the widget class can return an array containing titles and values of the variables available in the template.
&lt;/p&gt;

&lt;p&gt;
Widget’s sample class:
&lt;/p&gt;
&lt;pre class=&quot;code php&quot;&gt;&lt;span class=&quot;kw2&quot;&gt;class&lt;/span&gt; widgetExample &lt;span class=&quot;kw2&quot;&gt;extends&lt;/span&gt; cmsWidget &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
    &lt;span class=&quot;kw2&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;kw2&quot;&gt;function&lt;/span&gt; run&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
&amp;nbsp;
	&lt;span class=&quot;re0&quot;&gt;$nickname&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; cmsUser&lt;span class=&quot;sy0&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;me2&quot;&gt;get&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'nickname'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;		
	&lt;span class=&quot;re0&quot;&gt;$date&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;a href=&quot;http://www.php.net/date&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;date&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'d.m.Y'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
	&lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; &lt;a href=&quot;http://www.php.net/array&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;array&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;
		&lt;span class=&quot;st_h&quot;&gt;'name'&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&amp;gt;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;$nickname&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt;
		&lt;span class=&quot;st_h&quot;&gt;'today'&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&amp;gt;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;$date&lt;/span&gt;
	&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
    &lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/pre&gt;

&lt;p&gt;
Sample template for this widget:
&lt;/p&gt;
&lt;pre class=&quot;code php&quot;&gt;&amp;lt;h3&amp;gt;Hi, &lt;span class=&quot;kw2&quot;&gt;&amp;lt;?php&lt;/span&gt; html&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$name&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt; &lt;span class=&quot;sy1&quot;&gt;?&amp;gt;&lt;/span&gt;!&amp;lt;/h3&amp;gt;
&amp;lt;p&amp;gt;Today &lt;span class=&quot;kw2&quot;&gt;&amp;lt;?php&lt;/span&gt; html&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$today&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt; &lt;span class=&quot;sy1&quot;&gt;?&amp;gt;&lt;/span&gt;&amp;lt;/p&amp;gt;&lt;/pre&gt;

&lt;p&gt;
&lt;em&gt;(In this example, the text is hard-coded; you should use language constants in real templates)&lt;/em&gt;
&lt;/p&gt;

&lt;/div&gt;
&lt;!-- EDIT{&amp;quot;target&amp;quot;:&amp;quot;section&amp;quot;,&amp;quot;name&amp;quot;:&amp;quot;Passing data to a template&amp;quot;,&amp;quot;hid&amp;quot;:&amp;quot;passing-data-to-a-template&amp;quot;,&amp;quot;codeblockOffset&amp;quot;:4,&amp;quot;secid&amp;quot;:14,&amp;quot;range&amp;quot;:&amp;quot;8819-9485&amp;quot;} --&gt;
&lt;h2 class=&quot;sectionedit15&quot; id=&quot;widget-wrapper&quot;&gt;Widget Wrapper&lt;/h2&gt;
&lt;div class=&quot;level2&quot;&gt;

&lt;p&gt;
When a widget is output on a page, the widget template is wrapped (placed inside) with one more template – a wrapper. There can be several wrappers stored in the &lt;code&gt;/templates/{theme}/widgets&lt;/code&gt; folder. For examlpe, the &lt;strong&gt;default&lt;/strong&gt; theme has three available wrappers:
&lt;/p&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;strong&gt;wrapper.tpl.php&lt;/strong&gt; – default for all widgets. Contains the output of the widget’s title and body, in which its work result is placed;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;strong&gt;wrapper_plain.tpl.php&lt;/strong&gt; – an “empty” wrapper, simply outputs the widget body, doesn&amp;#039;t add any additional tags around;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;strong&gt;wrapper_tabbed.tpl.php&lt;/strong&gt; – a wrapper that allows to output several widgets at once (each on a separate tab).&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;
Either the widget itself (see below) or the main site template defines which wrapper to use.
&lt;/p&gt;

&lt;/div&gt;
&lt;!-- EDIT{&amp;quot;target&amp;quot;:&amp;quot;section&amp;quot;,&amp;quot;name&amp;quot;:&amp;quot;Widget Wrapper&amp;quot;,&amp;quot;hid&amp;quot;:&amp;quot;widget-wrapper&amp;quot;,&amp;quot;codeblockOffset&amp;quot;:6,&amp;quot;secid&amp;quot;:15,&amp;quot;range&amp;quot;:&amp;quot;9486-10262&amp;quot;} --&gt;
&lt;h2 class=&quot;sectionedit16&quot; id=&quot;widget-properties-and-methods&quot;&gt;Widget Properties and Methods&lt;/h2&gt;
&lt;div class=&quot;level2&quot;&gt;

&lt;p&gt;
The &lt;strong&gt;cmsWidget&lt;/strong&gt; system class, from which each widget is inherited, contains several useful properties and methods that allow to edit the widget output from its code.
&lt;/p&gt;

&lt;/div&gt;
&lt;!-- EDIT{&amp;quot;target&amp;quot;:&amp;quot;section&amp;quot;,&amp;quot;name&amp;quot;:&amp;quot;Widget Properties and Methods&amp;quot;,&amp;quot;hid&amp;quot;:&amp;quot;widget-properties-and-methods&amp;quot;,&amp;quot;codeblockOffset&amp;quot;:6,&amp;quot;secid&amp;quot;:16,&amp;quot;range&amp;quot;:&amp;quot;10263-10474&amp;quot;} --&gt;
&lt;h3 class=&quot;sectionedit17&quot; id=&quot;title&quot;&gt;Title&lt;/h3&gt;
&lt;div class=&quot;level3&quot;&gt;

&lt;p&gt;
Editing the widget title:
&lt;/p&gt;
&lt;pre class=&quot;code php&quot;&gt;&lt;span class=&quot;re0&quot;&gt;$this&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;me1&quot;&gt;title&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;st_h&quot;&gt;'New title'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;

&lt;p&gt;
Disabling the widget title:
&lt;/p&gt;
&lt;pre class=&quot;code php&quot;&gt;&lt;span class=&quot;re0&quot;&gt;$this&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;me1&quot;&gt;is_title&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;kw4&quot;&gt;false&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;!-- EDIT{&amp;quot;target&amp;quot;:&amp;quot;section&amp;quot;,&amp;quot;name&amp;quot;:&amp;quot;Title&amp;quot;,&amp;quot;hid&amp;quot;:&amp;quot;title&amp;quot;,&amp;quot;codeblockOffset&amp;quot;:6,&amp;quot;secid&amp;quot;:17,&amp;quot;range&amp;quot;:&amp;quot;10475-10634&amp;quot;} --&gt;
&lt;h3 class=&quot;sectionedit18&quot; id=&quot;position-changing&quot;&gt;Position changing&lt;/h3&gt;
&lt;div class=&quot;level3&quot;&gt;

&lt;p&gt;
The widget can reposition itself to another place in the template:
&lt;/p&gt;
&lt;pre class=&quot;code php&quot;&gt;&lt;span class=&quot;re0&quot;&gt;$this&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;me1&quot;&gt;position&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;st_h&quot;&gt;'sidebar'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;!-- EDIT{&amp;quot;target&amp;quot;:&amp;quot;section&amp;quot;,&amp;quot;name&amp;quot;:&amp;quot;Position changing&amp;quot;,&amp;quot;hid&amp;quot;:&amp;quot;position-changing&amp;quot;,&amp;quot;codeblockOffset&amp;quot;:8,&amp;quot;secid&amp;quot;:18,&amp;quot;range&amp;quot;:&amp;quot;10635-10780&amp;quot;} --&gt;
&lt;h3 class=&quot;sectionedit19&quot; id=&quot;links-in-header&quot;&gt;Links in header&lt;/h3&gt;
&lt;div class=&quot;level3&quot;&gt;

&lt;p&gt;
The widget header can have one or several links:
&lt;/p&gt;

&lt;p&gt;
&lt;img src=&quot;https://docs.instantcms.ru/_media/manual/widgets/widget_links.png&quot; class=&quot;media&quot; loading=&quot;lazy&quot; alt=&quot;&quot; /&gt;
&lt;/p&gt;

&lt;p&gt;
They are &lt;a href=&quot;https://docs.instantcms.ru/en/manual/widgets/config#links-in-widget-header&quot; class=&quot;wikilink1&quot; title=&quot;en:manual:widgets:config&quot; data-wiki-id=&quot;en:manual:widgets:config&quot;&gt;tuned&lt;/a&gt; in the Control panel, but the widget can dinamically form them from the code:
&lt;/p&gt;
&lt;pre class=&quot;code php&quot;&gt;&lt;span class=&quot;co1&quot;&gt;// an array of links in the format: Title|URL&lt;/span&gt;
&lt;span class=&quot;re0&quot;&gt;$links&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;a href=&quot;http://www.php.net/array&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;array&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;
    ‘Yandex&lt;span class=&quot;sy0&quot;&gt;|&lt;/span&gt;http&lt;span class=&quot;sy0&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;co1&quot;&gt;//ya.ru',&lt;/span&gt;
    &lt;span class=&quot;st_h&quot;&gt;'Google|http://google.com'&lt;/span&gt;
&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;co1&quot;&gt;// we add links to the widget header&lt;/span&gt;
&lt;span class=&quot;re0&quot;&gt;$this&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;me1&quot;&gt;links&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;a href=&quot;http://www.php.net/implode&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;implode&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;&lt;span class=&quot;es1&quot;&gt;\n&lt;/span&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;$links&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;

&lt;p&gt;
In this example, the links specified in the settings will be replaced by the ones described in the code. Replace the last string, if you need them not to be replaced but supplemented:
&lt;/p&gt;
&lt;pre class=&quot;code php&quot;&gt;&lt;span class=&quot;re0&quot;&gt;$this&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;me1&quot;&gt;links&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;.=&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;&lt;span class=&quot;es1&quot;&gt;\n&lt;/span&gt;&amp;quot;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt; &lt;a href=&quot;http://www.php.net/implode&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;implode&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;&lt;span class=&quot;es1&quot;&gt;\n&lt;/span&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;$links&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;!-- EDIT{&amp;quot;target&amp;quot;:&amp;quot;section&amp;quot;,&amp;quot;name&amp;quot;:&amp;quot;Links in header&amp;quot;,&amp;quot;hid&amp;quot;:&amp;quot;links-in-header&amp;quot;,&amp;quot;codeblockOffset&amp;quot;:9,&amp;quot;secid&amp;quot;:19,&amp;quot;range&amp;quot;:&amp;quot;10781-11521&amp;quot;} --&gt;
&lt;h3 class=&quot;sectionedit20&quot; id=&quot;caching&quot;&gt;Caching&lt;/h3&gt;
&lt;div class=&quot;level3&quot;&gt;

&lt;p&gt;
The output of widgets is cached, if caching is enabled in the site settings. However, it may be undesirable for some widgets (for example, for those displaying different content to each user).
&lt;/p&gt;

&lt;p&gt;
Disabling caching
&lt;/p&gt;
&lt;pre class=&quot;code php&quot;&gt;&lt;span class=&quot;re0&quot;&gt;$this&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;me1&quot;&gt;disableCache&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;

&lt;p&gt;
Caching can be permanently disabled, for this, the widget class should override the &lt;strong&gt;$is_cacheable&lt;/strong&gt; property by the &lt;em&gt;false&lt;/em&gt; value:
&lt;/p&gt;
&lt;pre class=&quot;code php&quot;&gt;&lt;span class=&quot;kw2&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;$is_cacheable&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;kw4&quot;&gt;false&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;

&lt;p&gt;
(&lt;em&gt;This string is added inside the class but outside the run() method&lt;/em&gt;)
&lt;/p&gt;

&lt;/div&gt;
&lt;!-- EDIT{&amp;quot;target&amp;quot;:&amp;quot;section&amp;quot;,&amp;quot;name&amp;quot;:&amp;quot;Caching&amp;quot;,&amp;quot;hid&amp;quot;:&amp;quot;caching&amp;quot;,&amp;quot;codeblockOffset&amp;quot;:11,&amp;quot;secid&amp;quot;:20,&amp;quot;range&amp;quot;:&amp;quot;11522-12049&amp;quot;} --&gt;
&lt;h3 class=&quot;sectionedit21&quot; id=&quot;adding-a-css-class&quot;&gt;Adding a CSS-class&lt;/h3&gt;
&lt;div class=&quot;level3&quot;&gt;

&lt;p&gt;
The widget can add a &lt;abbr title=&quot;Cascading Style Sheets&quot;&gt;CSS&lt;/abbr&gt;-class to its body wrapper:
&lt;/p&gt;
&lt;pre class=&quot;code php&quot;&gt;&lt;span class=&quot;re0&quot;&gt;$this&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;me1&quot;&gt;css_class&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;st_h&quot;&gt;'my-class'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;!-- EDIT{&amp;quot;target&amp;quot;:&amp;quot;section&amp;quot;,&amp;quot;name&amp;quot;:&amp;quot;Adding a CSS-class&amp;quot;,&amp;quot;hid&amp;quot;:&amp;quot;adding-a-css-class&amp;quot;,&amp;quot;codeblockOffset&amp;quot;:13,&amp;quot;secid&amp;quot;:21,&amp;quot;range&amp;quot;:&amp;quot;12050-12180&amp;quot;} --&gt;
&lt;h3 class=&quot;sectionedit22&quot; id=&quot;template-editing&quot;&gt;Template editing&lt;/h3&gt;
&lt;div class=&quot;level3&quot;&gt;

&lt;p&gt;
By default, the widget uses the template from the &lt;code&gt;{widget_title}.tpl.php&lt;/code&gt; file (the file’s location is described above). Nevertheless, you can create other templates in the same folder. Select the template inside the widget in the following way:
&lt;/p&gt;
&lt;pre class=&quot;code php&quot;&gt;&lt;span class=&quot;re0&quot;&gt;$this&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;me1&quot;&gt;setTemplate&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'anotherfile'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;

&lt;p&gt;
In this case, the widget will use the &lt;code&gt;anotherfile.tpl.php&lt;/code&gt; template.
&lt;/p&gt;

&lt;/div&gt;
&lt;!-- EDIT{&amp;quot;target&amp;quot;:&amp;quot;section&amp;quot;,&amp;quot;name&amp;quot;:&amp;quot;Template editing&amp;quot;,&amp;quot;hid&amp;quot;:&amp;quot;template-editing&amp;quot;,&amp;quot;codeblockOffset&amp;quot;:14,&amp;quot;secid&amp;quot;:22,&amp;quot;range&amp;quot;:&amp;quot;12181-12586&amp;quot;} --&gt;
&lt;h3 class=&quot;sectionedit23&quot; id=&quot;wrapper-editing&quot;&gt;Wrapper editing&lt;/h3&gt;
&lt;div class=&quot;level3&quot;&gt;

&lt;p&gt;
You can dinamically edit the wrapper by specifying its title (without an extension) inside the widget code:
&lt;/p&gt;
&lt;pre class=&quot;code php&quot;&gt;&lt;span class=&quot;re0&quot;&gt;$this&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;me1&quot;&gt;setWrapper&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'wrapper_plain'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;
&lt;hr /&gt;

&lt;p&gt;
&lt;a href=&quot;https://docs.instantcms.ru/en/dev/start&quot; class=&quot;wikilink2&quot; title=&quot;en:dev:start&quot; rel=&quot;nofollow&quot; data-wiki-id=&quot;en:dev:start&quot;&gt;Back to Contents&lt;/a&gt;
&lt;/p&gt;

&lt;/div&gt;
&lt;!-- EDIT{&amp;quot;target&amp;quot;:&amp;quot;section&amp;quot;,&amp;quot;name&amp;quot;:&amp;quot;Wrapper editing&amp;quot;,&amp;quot;hid&amp;quot;:&amp;quot;wrapper-editing&amp;quot;,&amp;quot;codeblockOffset&amp;quot;:15,&amp;quot;secid&amp;quot;:23,&amp;quot;range&amp;quot;:&amp;quot;12587-&amp;quot;} --&gt;</description>
    </item>
</rdf:RDF>
