Answer the question
In order to leave comments, you need to log in
How to set up a node on Drupal?
There is a node template that is inserted into the slider (in the item wrapper)
<div class="item"> <!-- Обертываю содержимое -->
<div class="image"> <!-- Вставляю картинку-->
<img src="<?=file_create_url($content['field_img_slide_1']['#items'][0]['uri'])?>" alt=""/>
</div>
<div class="desc">
<h2><?=$content['field_h1_slide_1']["#items"][0][value];?></h2> <!--Вставляю заголовок -->
<div class="info"><?=$content['field_h2_slide_1']["#items"][0][value];?></div> <!--Вставляю заголовок 2-->
<?=$content['body']["#items"][0][value];?> <!--Вставляю текст -->
</div>
</div>
<div class="m-slider">
<div class="sliderBox">
<?php
print render(module_invoke('views', 'block_view', 'flock_salon-block_1')); // Сюда вставляются itemЫ для слайдера
?>
</div>
</div>
Answer the question
In order to leave comments, you need to log in
The problem is in the styles or the slider script, you need to look at css or errors in js
Thank you very much. Solved a problem. The problem was in the output template of the node itself.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question