0

ねえ、アイソトープによってブロックされたPHP + mySQL + jQuery特集セクションがありましたが、ここで見ることができます

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 に答える