I am trying to build a homepage based in a modular form - including a slider. For some reason I cannot get the slider to work as it is set up in http://demo.getgrav.org/shop-skeleton/
So, I decided to build out the slides using the same method as I used for the showcase section on another part of the page. However, when I am trying to pull the images, I am getting 0, -1, 1 as the results for my queries I am setting in the header.
slider.md
pageslider:
-
slide-image: test.jpg
slide-content: content one -
slide-image: image-2.jpg
slide-content: content two -
slide-image: image-3.jpg
slide-content: content three
slider.html.twig
{% for panel in page.header.pageslider %}
<li>
<div class="panel-bg" style="background-image: url({{ panel.slide-image }});">
<div class="panel-padding">
</div>
</div>
</li>
{% endfor %}
You can see the results: http://ryanwake.com/pp/