Answer the question
In order to leave comments, you need to log in
Why is layout running when using component_epilog.php?
Good afternoon.
Help solve the problem by calling "Breadcrumbs" inside another component's template.
there is a component template
<section class="product-page">
<div class="container">
<!-- Breadcrumbs -->
<div class="breadcrumbs">
<p>
<?$APPLICATION->ShowViewContent('breadcrumb');?>
</p>
</div>
<!-- End Breadcrumbs -->
<h1><?php echo $arResult['NAME']; ?></h1>
<!-- Product info -->
<div class="table image">
<div class="table-cell">
<div id="slider" class="flexslider">
<ul class="slides">
<?php foreach ($arResult['MORE_FOTO'] as $foto) { ?>
<li>
<img src="<?php echo $foto['src']; ?>" />
</li>
<?php } ?>
</ul>
</div>
<div id="carousel" class="flexslider">
<ul class="slides">
<?php foreach ($arResult['MORE_FOTO_THUMB'] as $foto) { ?>
<li>
<img src="<?php echo $foto['src']; ?>" />
</li>
<?php } ?>
</ul>
</div>
</div>
<div class="table-cell">
<?php foreach ($arResult['PROPERTIES']['SHORT_TEHCNICAL']['VALUE'] as $key => $tech) { ?>
<div class="table">
<div class="table-cell"><p><?php echo $tech; ?></p></div>
<div class="table-cell"></div>
<div class="table-cell"><p><?php echo $arResult['PROPERTIES']['SHORT_TEHCNICAL']['DESCRIPTION'][$key]; ?></p></div>
</div>
<?php } ?>
<?php if ($arResult['PROPERTIES']['OPTIONS']['~VALUE']['TEXT']) { ?>
<div class="btn-details">Возможные опции</div>
<div class="hide">
<?php echo $arResult['PROPERTIES']['OPTIONS']['~VALUE']['TEXT']; ?>
</div>
<?php } ?>
<div class="advantages">
<figure>
<img src="<?=SITE_TEMPLATE_PATH?>/images/catalog/delivery.png" alt="Срок поставки">
<figcaption>
<p>Срок поставки от 10 дней</p>
</figcaption>
</figure>
<figure>
<img src="<?=SITE_TEMPLATE_PATH?>/images/catalog/warrant-product.png" alt="Срок поставки">
<figcaption>
<p>Гарантия от производителя</p>
</figcaption>
</figure>
<figure>
<img src="<?=SITE_TEMPLATE_PATH?>/images/catalog/map-product.png" alt="Срок поставки">
<figcaption>
<p>Доставка по СНГ и России</p>
</figcaption>
</figure>
</div>
<p class="price"><?php echo $arResult['PROPERTIES']['PRICE']['VALUE']; ?></p>
<div class="btn">Заказать звонок</div>
</div>
</div>
<!-- End Product info -->
</div>
</section>
<?php if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die();
/** @global CMain $APPLICATION */
$this->initComponentTemplate();
$this->__template->SetViewTarget('breadcrumb');
$APPLICATION->IncludeComponent(
"bitrix:breadcrumb",
"breadcrumbs_catalog",
array(
"COMPONENT_TEMPLATE" => "breadcrumbs_catalog",
"PATH" => "",
"SITE_ID" => "-",
"START_FROM" => "1"
),
false
);
$this->__template->EndViewTarget(); ?>
<?$APPLICATION->ShowViewContent('breadcrumb');?>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question