Hi,
I cant create the pagination on my list of bookshelf extension...where is my
error, I don't understand what parameter I can insert in books:paginate, can
you help me...I follow insert my code

module BookshelfTags
  include Radiant::Taggable

  tag 'books' do |tag|
    tag.expand
  end

  tag 'books:each' do |tag|
    result = []
    ##Book.find(:all, :limit => 1000, :page => { :start => 1, :current => 1,
:size => 10 }).each do |book|
    Book.find_with_pagination(:all, :page => { :start => 1, :current => 2,
:size => 10 }).each do |book|
      tag.locals.book = book
      result << tag.expand
    end
    result
  end

  tag 'books:each:book' do |tag|
    book = tag.locals.book
    %{<div class="entry"><h3>#{book.title}</h3><p>#{book.sub_title}</p><p
class="info">anno pubblicazione: #{book.pub_year} - dati dall'anno:
#{book.data_from_year} - all'anno: #{book.data_to_year}</p></div>}
  end

  tag 'books:paginate' do |tag|
      book = tag.locals.book
      {??????????}
  end

end

IN MY LAYOUT IN RADIANT


<r:books:paginate>
<r:books:each>
  <r:book /><br />
</r:books:each>

Write me soon, best regards
_______________________________________________
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

Reply via email to