Added site map and titel list to pages/all
* pages/all now consists of three alternativ views: recent changes, site map and title list
This commit is contained in:
parent
305a4ac895
commit
90f760858e
7 changed files with 58 additions and 10 deletions
|
|
@ -31,6 +31,7 @@ class Page < ActiveRecord::Base
|
|||
after_update :create_redirect
|
||||
|
||||
named_scope :non_redirected, :conditions => {:redirect => nil}
|
||||
named_scope :no_parent, :conditions => {:parent_id => nil}
|
||||
|
||||
def self.permalink(title)
|
||||
title.gsub(/[\/\.,;@\s]/, "_").gsub(/[\"\']/, "")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue