有人知道.rain吗?显示第4级类别页面

时间:2019-07-22 19:11:51

标签: php

我正在尝试在顶级类别页面上显示第3个lvl类别页面,如此处所示-https://www.waterstreetgallery.co.uk/en/exhibitions/past/

在页面2019中,我需要在其中显示类别/ february-march /

https://www.waterstreetgallery.co.uk/en/exhibitions/past/2019/february-march/

已经有一个图像添加到类别中,因此使用新的/更改的代码,图像缩略图应自动出现。

    <!-- 1stlevel -->
  {% for category in shop.categories %}
    {% if category.id == collection.category_id and category.subs %}
    <div class="parenter grid-cell mb3 {% if category.url == exhibitions %}exhibitionsGrid{% endif %}">
      <div class="grid column-orient">
        <div class="grid-cell">
          <div class="grid wrap col-filtered relative">
          {% for sub in category.subs %}
          {% if sub.image %}
          <div class="grid-cell grow0 col-products_product already-visible come-in">
            <div class="subcatimage">
              <a href="{{ sub.url | url }}">
                <img class="image" src="{{ sub.image | url_image() }}">
                <div>{{ sub.title | t }}</div>
              </a>
            </div>
          </div>
          {% endif %}
          {% endfor %}
          </div>
        </div>
      </div>
    </div>         
    {% endif %}
  {% endfor %}
    <!-- 1stlevel -->
    <!--  2ndlevel  -->
  {% set collectionTitle = collection.internal.url | split('/') %}
  {% if collectionTitle[1] %}
  {% for category in shop.categories %}
  {% for subCat in category.subs %}
  {% if subCat.id == collection.category_id and subCat.subs %}
  <div class="parenter grid-cell mb3 {% if category.url == exhibitions %}exhibitionsGrid{% endif %}">
    <div class="grid column-orient">
      <div class="grid-cell">
        <div class="grid wrap col-filtered relative">
        {% for sub in subCat.subs %}
        {% if sub.image %}
        <div class="grid-cell grow0 col-products_product already-visible come-in">
          <div class="subcatimage">
            <a href="{{ sub.url | url }}">
              <img class="image" src="{{ sub.image | url_image() }}">
              <div>{{ sub.title | t }}</div>
            </a>
          </div>
        </div>
        {% endif %}
        {% endfor %}
        </div>
      </div>
    </div>
  </div>    
  {% endif %}
  {% endfor %}
  {% endfor %}
  {% endif %}
    <!--  2ndlevel  -->

我不知道.rain

使用正确的代码,可以在此处找到图片-https://www.waterstreetgallery.co.uk/en/exhibitions/past/2019/february-march/

将显示在页面/ 2019

0 个答案:

没有答案