BC Duplicate Pagination for News or Blogs | Adobe Business Catalyst

Insert in to the page where you wants


<ul class="top-pagination"></ul>
<div class="your-web-app-items">
  {module_webapps,your-web-app,a}
</div>

Insert this script to before the </head> closing tag


<script>
  (function($){
    $(document).ready(function(){
      var targetEl = $(".top-pagination");
      var bcPagination = $(".pagination.webapp");
      if ( bcPagination.length && targetEl.length ) {
          console.log("Truth!");
        targetEl.html(bcPagination.html()).addClass("pagination webapp");
      }
    });
 
  })(jQuery);
</script>

Reference url: https://gist.github.com/thetrickster/23e8990cc4a298eefb72

No comments:

Post a Comment