templates/rails/start.rb in Soks-0.0.3 vs templates/rails/start.rb in Soks-0.0.4
- old
+ new
@@ -50,9 +50,37 @@
:pagename => 'Recent Blog Entries',
:only_new_pages => true,
:lines_to_include => 10,
:include_metadata => true
)
+
+ # Examples of automatically generated summary pages:
+ AutomaticSummary.new( wiki,
+ :regexp_for_title => /^How to /i,
+ :pagename => 'Instructions and Howtos'
+ )
+
+ AutomaticSummary.new( wiki,
+ :regexp_for_title => /^Bug:/i,
+ :pagename => 'Known bugs',
+ :include_metadata => true
+ )
+
+ AutomaticSummary.new( wiki,
+ :regexp_for_title => /^News:/i,
+ :max_pages_to_show => 1,
+ :lines_to_include => 10,
+ :reverse_sort => true,
+ :pagename => 'Latest News'
+ )
+
+ AutomaticSummary.new( wiki,
+ :regexp_for_title => /^News:/i,
+ :lines_to_include => 10,
+ :reverse_sort => true,
+ :pagename => 'All News'
+ )
+
# Possible settings for the Automatic Summary (with defaults)
# :regexp_for_title => /.*/, # These three regexps act as an AND
# :regexp_for_author => nil,
# :regexp_for_content => nil,
\ No newline at end of file