How do you know that are in the product component catalog?


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
50 views
Hello.

Please tell me if there is Bitrix able to determine the page the item card?

The design on all pages except this container standard main (bootstrap .conainer), and the window full width (.container-fluid). I do not want to pull the definition of the content width of the header.
by | 50 views

2 Answers

0 like 0 dislike
Do using the delay function

in footer.php in the end write a function that depending on conditions generates the desired action
function containerWidth() { global $APPLICATION; ob_start(); if(strlen($APPLICATION->GetProperty('fullWidthContainer')) > 0) { echo 'container-fluid'; } else { echo 'container'; } $result = ob_get_contents(); ob_end_clean(); return $result; }


in header.php in the corresponding place
">


and on the pages where we need set the property fullWidthContainer

in your case in the catalog.detail or news.detail component_epilog.php

$APPLICATION->SetPageProperty("fullWidthContainer", "1");


Code not test, but the meaning is clear
by
0 like 0 dislike
all the components of the card template your.
by

Related questions

0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
0 like 0 dislike
3 answers
0 like 0 dislike
1 answer
110,608 questions
257,187 answers
0 comments
40,796 users