Simple change - to add limit and offset options to page attachment 'each'
last tag block reads:
tag "attachment:each" do |tag|
page = tag.locals.page
order = tag.attr["order"] || "asc"
by = tag.attr["by"] || "id"
limit = tag.attr["limit"] || 50
offset = tag.attr["offset"] || 0
returning String.new do |output|
page.attachments.find(:all, :limit => limit, :offset => offset, :order => [by, order].join(" ")).each do |att|
tag.locals.attachment = att
output << tag.expand
end
end
end
Updated page_attachment.rb attached.