T
T
Timur Mukhtarov2014-08-06 16:00:25
PHP
Timur Mukhtarov, 2014-08-06 16:00:25

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>

Slider Code
<div class="m-slider">
   <div class="sliderBox">
       	<?php
               	print render(module_invoke('views', 'block_view', 'flock_salon-block_1')); // Сюда вставляются itemЫ для слайдера
       	?>
    </div>
</div>

When I have only one slide, everything is displayed perfectly. When I add the second slide, it is displayed under the first (in short, the slider goes ....)
d3af760d69864975abdc66f4c45620fa.png
(The second slide fits on the first one from above)
What should I write in the node template to fix this and the slider to function?
What could be the problem?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
T
theaidem, 2014-08-06
@fearintino

The problem is in the styles or the slider script, you need to look at css or errors in js

T
Timur Mukhtarov, 2014-08-14
@fearintino

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 question

Ask a Question

731 491 924 answers to any question