1

我实际上正在尝试将 Slidorion Slider (http://www.slidorion.com/) 集成到 Drupal 视图中。目前我坚持将我的视图字段添加到 slidorion 代码中:

<div id="slidorion">
    <div id="slider">
        <div class="slide"></div>
        <div class="slide"></div>
        <div class="slide"></div>
    </div>

    <div id="accordion">
        <div class="link-header">New Features</div>
        <div class="link-content">
            <!-- content -->
        </div>
        <div class="link-header">A Simple Image</div>
        <div class="link-content">
            <!-- content -->
        </div>
        <div class="link-header">Background Image w/ HTML</div>
        <div class="link-content">
            <!-- content -->
        </div>
    </div>
</div>

问题是,我不知道如何打印字段的特殊数组值。在伪代码中,它应该看起来像这样:

<div id="slidorion">
    <div id="slider">
        <div class="slide">[field_image_0]</div>
        <div class="slide">[field_image_1]</div>
        <div class="slide">[field_image_2]</div>
    </div>

    <div id="accordion">
        <div class="link-header">[field_title_0]</div>
        <div class="link-content">
            [field_content_0]
        </div>
        <div class="link-header">[field_title_1]</div>
        <div class="link-content">
            [field_content_1]
        </div>
        <div class="link-header">[field_title_2]</div>
        <div class="link-content">
            [field_content_2]
        </div>
    </div>
</div>

有人知道如何解决这个问题吗?

4

0 回答 0