Bitrix template integrated component


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
5 views
Please tell me how to Bitrix to change the template integrated component "Catalogue of products"?
In the documentation: "Folder of the template integrated component may contain the following subfolders and files... the Templates of simple components that are part of the complex. These templates are located in folders /namespace/nathanieldiegot/ relative to the folder of the template integrated component."
The problem is that from the ways and the number of levels of nesting of folders Bitrix I have already just blows the roof. I can not figure out where to put these templates simple components.
The template integrated component is in the folder bitrix/templates/szablony/components/bitrix/catalog/catalog (it would fit when copying via menu under "Development", therefore, this path is correct). In this folder there is a subfolder bitrix, which copied a folder of simple patterns. But, for example, in the directory catalog.section.list no file template.php and if I create it — it does not apply!
P. S. while trying to demosite.

Here is the call component:

<?$APPLICATION->IncludeComponent("bitrix:catalog", "catalog", Array(
"IBLOCK_TYPE" => "catalog", // the info block
"IBLOCK_ID" => "14", // info box
"BASKET_URL" => "/personal/cart/", // URL leading to the page with the shopping cart
"ACTION_VARIABLE" => "action", // Name of the variable, which is passed to the action
"PRODUCT_ID_VARIABLE" => "id", // Name of the variable, which is passed the item code to purchase
"SECTION_ID_VARIABLE" => "SECTION_ID", // Name of the variable, which is transmitted code groups
"SEF_MODE" => "Y", // Enable support for CNC
"SEF_FOLDER" => "/catalog/", // Directory CNC (relative to site root)
"AJAX_MODE" => "N", // Enable AJAX
"AJAX_OPTION_SHADOW" => "Y", // Enable shading
"AJAX_OPTION_JUMP" => "N", // Enable scroll to top component
"AJAX_OPTION_STYLE" => "Y", // Enable uploading of styles
"AJAX_OPTION_HISTORY" => "N", // Enable emulation of browser navigation
"CACHE_TYPE" => "A", // Type of cache
"CACHE_TIME" => "3600", // cache Time (sec.)
"CACHE_FILTER" => "N", // Cache if you set the filter
"DISPLAY_PANEL" => "Y", // add to admin. button panel for this component
"SET_TITLE" => "Y", // Set the page title
"SET_STATUS_404" => "Y", // Set the status 404, if not found the item or section
"USE_FILTER" => "Y", // Show filter
"FILTER_NAME" => "FILTER", // Filter
"FILTER_FIELD_CODE" => array( // Fields
0 => "NAME",
1 => ",
),
"FILTER_PROPERTY_CODE" => array( // Properties
0 => ",
1 => ",
2 => ",
3 => ",
),
"FILTER_PRICE_CODE" => ", // Type of price
"USE_REVIEW" => "Y", // Allow feedback
"MESSAGES_PER_PAGE" => "0", // the Number of messages on one page
"USE_CAPTCHA" => "N", // Use CAPTCHA
"PATH_TO_SMILE" => "/bitrix/images/forum/smile/", // Path relative to site root to the folder with the smileys
"FORUM_ID" => "2", // ID of the forum for reviews
"URL_TEMPLATES_READ" => "/communication/forum/forum#FORUM_ID#/topic#TOPIC_ID#/", // Page read topics (empty - to from the settings of the forum)
"SHOW_LINK_TO_FORUM" => "N", // Show a link to the forum
"POST_FIRST_MESSAGE" => "N", // Begin topic text element
"USE_COMPARE" => "Y", // Use component comparison
"COMPARE_NAME" => "CATALOG_COMPARE_LIST", // Unique name for the comparison list
"COMPARE_FIELD_CODE" => array( // Fields
0 => ",
1 => ",
),
"COMPARE_PROPERTY_CODE" => array( // Properties
0 => ",
1 => ",
2 => ",
3 => ",
4 => ",
),
"DISPLAY_ELEMENT_SELECT_BOX" => "N", // Output list of elements of the information block
"ELEMENT_SORT_FIELD_BOX" => "sort", // what field to sort the list of items
"ELEMENT_SORT_ORDER_BOX" => "asc", // sort Order of the list elements
"COMPARE_ELEMENT_SORT_FIELD" => "name", // what field to sort the items in the section
"COMPARE_ELEMENT_SORT_ORDER" => "asc", // sort Order of items in the section
"PRICE_CODE" => array( // Type of price
0 => "RETAIL",
),
"USE_PRICE_COUNT" => "N", // Use output price ranges
"SHOW_PRICE_COUNT" => "0", // Display price for the quantity
"PRICE_VAT_INCLUDE" => "Y", // add VAT to price
"PRICE_VAT_SHOW_VALUE" => "N", // Show the value of VAT
"SHOW_TOP_ELEMENTS" => "Y", // Display top items
"TOP_ELEMENT_COUNT" => "3", // the Number of output elements
"TOP_LINE_ELEMENT_COUNT" => "1", // the Number of items displayed in one row of table
"TOP_ELEMENT_SORT_FIELD" => "id", // what field to sort the items in the section
"TOP_ELEMENT_SORT_ORDER" => "desc", // sort Order of items in the section
"TOP_PROPERTY_CODE" => array( // Properties
0 => ",
1 => ",
),
"PAGE_ELEMENT_COUNT" => "5", // Number of elements on the page
"LINE_ELEMENT_COUNT" => "1", // the Number of items displayed in one row of table
"ELEMENT_SORT_FIELD" => "sort", // what field to sort the items in the section
"ELEMENT_SORT_ORDER" => "asc", // sort Order of items in the section
"LIST_PROPERTY_CODE" => array( // Properties
0 => ",
1 => ",
),
"INCLUDE_SUBSECTIONS" => "Y", // Show items sections
"LIST_META_KEYWORDS" => "-", // Set the keywords page of the partition properties
"LIST_META_DEscriptION" => "-", // Set page description from property section
"LIST_BROWSER_TITLE" => "UF_BROWSER_TITLE", // Set the title bar of the browser from the properties of the section
"DETAIL_PROPERTY_CODE" => array( // Properties
0 => "width",
1 => "height",
2 => "thickness",
3 => ",
4 => ",
5 => ",
),
"DETAIL_META_KEYWORDS" => "-", // Set the keywords page from the properties
"DETAIL_META_DEscriptION" => "-", // Set page description from property
"DETAIL_BROWSER_TITLE" => "BROWSER_TITLE", // Set the title bar of the browser from the property
"LINK_IBLOCK_TYPE" => "catalog", // the info block whose elements are linked with the current element
"LINK_IBLOCK_ID" => "7", // ID of info-array whose elements are associated with the current element
"LINK_PROPERTY_SID" => "catalog", // the Property which contains the connection
"LINK_ELEMENTS_URL" => "/catalog/reviews/detail.php?ID=#ELEMENT_ID#", // URL to the page where will be shown a list of related items
"USE_ALSO_BUY" => "N", // Show block "buy With this item"
"ALSO_BUY_ELEMENT_COUNT" => "0",
"ALSO_BUY_MIN_BUYES" => "0",
"DISPLAY_TOP_PAGER" => "N", // Display above the list
"DISPLAY_BOTTOM_PAGER" => "Y", // Display below the list
"PAGER_TITLE" => "Door", // Name of category
"PAGER_SHOW_ALWAYS" => "N" / / Output is always
"PAGER_TEMPLATE" => "orange", // template Name
"PAGER_DESC_NUMBERING" => "N", // Use backward navigation
"PAGER_DESC_NUMBERING_CACHE_TIME" => "36000", // Time of caching pages for back navigation
"PAGER_SHOW_ALL" => "N", // Display link "All"
"AJAX_OPTION_ADDITIONAL" => ", // optional ID
"SEF_URL_TEMPLATES" => array(
"sections" => ",
"section" => "#SECTION_ID#/",
"element" => "#SECTION_ID#/#ELEMENT_CODE#/",
"compare" => "compare.php?action=#ACTION_CODE#",
),
"VARIABLE_ALIASES" => array(
"compare" => array(
"ACTION_CODE" => "action",
),
)
),
false
);?>
by | 5 views

1 Answer

0 like 0 dislike
In General, I figured it out. If you copy all the templates of the components separately, then they are formed into separate folders view bitrix/templates/prinzip_catalog/components/bitrix/catalog.element/templates/template_name bitrix/templates/prinzip_catalog/components/bitrix/catalog.section.list/templates/template_name
In the complex of the component (bitrix/templates/prinzip_catalog/components/bitrix/catalog) for some reason they are not copied
\r
P. S. Maybe someone will be interested. Compared daddy deposito HostCMS Small business (includes online store, news — in short, almost the same functionality, just not user module) and Bitrix website Management to Small business.
HostCMS — a ~2,600 folders and files ~ 18 MB
Bitrix — more than 14000 folders and files, ~92 MB
(values are approximate, because both of the site is not newly installed, and in both I've been tinkering with the templates).
And why am I not in love with Beatrix?..
by

Related questions

0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
110,608 questions
257,186 answers
0 comments
27,395 users