page_sidebar.rb
Upload User: netsea168
Upload Date: 2022-07-22
Package Size: 4652k
Code Size: 0k
Category:

Ajax

Development Platform:

Others

  1. class PageSidebar < Sidebar
  2.   display_name "Page"
  3.   description "Show pages for this blog"
  4.   setting :maximum_pages, 10
  5.   def pages
  6.     @pages ||= Page.published.order(:title)
  7.   end
  8. end