0

嘿,我有一个 PHP+mySQL+jQuery 特色部分被 Isotope 阻止,我工作得很好,你可以在这里看到

http://egyptianartsgroup.com/videos.php

我想在 EE 矩阵中执行此操作,但我遇到了 ajax 分页问题

这是我将矩阵行输出到同位素的代码

<div id="container" class="photos clearfix variable-sizes">
   {exp:channel:entries channel="featured" url_title="main-featured" limit="1"}
   {featured_items search:active="Yes" sort="asc" limit="5" offset="0"}
   {if type == "Video"}
      <div class="photo video">
         {thumb_image}
        <img src="{path}_thumbnails/{filename}.{extension}" />
        {/thumb_image}
        <a href="{vlink}" class="featuredVideoIcon" t = "video" title="{overlayed_title}"></a>
        <a href="{vlink}" class="FeaturedTitleLink" t = "video" title="{overlayed_title}"><h2 class="FeaturedTitle">{overlayed_title} -- {row_count} of / {total_rows}</h2></a>
        </div>
   {if:else}
   <div class="photo image">
            {thumb_image}
            <img src="{path}_thumbnails/{filename}.{extension}" />
            {/thumb_image}
            <a  class="featuredEnlargIcon" href= "{thumb_image}" title="{overlayed_title}" t = "image"></a>
            <a  class="FeaturedTitleLink" href= "{thumb_image}" t = "image" title="{overlayed_title}"><h2 class="FeaturedTitle">{overlayed_title} -- {row_count} of / {total_rows}</h2></a>
            </div>
   {/if}

   {/featured_items}

   {/exp:channel:entries}
</div>

有什么想法可以让 ajax 分页工作吗?

4

1 回答 1

0

您需要将照片与视频分开,并使用以下方法对每个照片进行分页:

  {paginate}
  {pagination_links}
  {/paginate}

来源:http ://ellislab.com/expressionengine/user-guide/modules/channel/pagination_page.html#pagination-links

至于 Ajax,您可以使用:https ://github.com/reusserdesign/ExpressionEngine-Ajax-Pagination

于 2013-10-09T00:41:41.857 回答