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:
sandoz 2009-10-05 17:25:19 +02:00
parent 305a4ac895
commit 90f760858e
7 changed files with 58 additions and 10 deletions

View file

@ -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(/[\"\']/, "")