Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 71
- Log:
Start of upgrade to Typo 4.0.0, the latest stable release since
2.6.0. Note test/mocks/themes/azure changes from a file to a
directory, so the file has been removed in this revision and
the directory will be added in the next revision.
- Author:
- adh
- Date:
- Mon Aug 07 22:18:11 +0100 2006
- Size:
- 4161 Bytes
1 | ActionController::Routing::Routes.draw do |map| |
2 | |
3 | # default |
4 | map.index '', :controller => 'articles', :action => 'index' |
5 | map.admin 'admin', :controller => 'admin/general', :action => 'index' |
6 | |
7 | # admin/comments controller needs parent article id |
8 | map.connect 'admin/comments/article/:article_id/:action/:id', |
9 | :controller => 'admin/comments', :action => nil, :id => nil |
10 | map.connect 'admin/trackbacks/article/:article_id/:action/:id', |
11 | :controller => 'admin/trackbacks', :action => nil, :id => nil |
12 | map.connect 'admin/content/:action/:id', :controller => 'admin/content' |
13 | |
14 | # make rss feed urls pretty and let them end in .xml |
15 | # this improves caches_page because now apache and webrick will send out the |
16 | # cached feeds with the correct xml mime type. |
17 | map.xml 'xml/itunes/feed.xml', :controller => 'xml', :action => 'itunes' |
18 | map.xml 'xml/articlerss/:id/feed.xml', :controller => 'xml', :action => 'articlerss' |
19 | map.xml 'xml/commentrss/feed.xml', :controller => 'xml', :action => 'commentrss' |
20 | map.xml 'xml/trackbackrss/feed.xml', :controller => 'xml', :action => 'trackbackrss' |
21 | |
22 | map.xml 'xml/:format/feed.xml', :controller => 'xml', :action => 'feed', :type => 'feed' |
23 | map.xml 'xml/:format/:type/feed.xml', :controller => 'xml', :action => 'feed' |
24 | map.xml 'xml/:format/:type/:id/feed.xml', :controller => 'xml', :action => 'feed' |
25 | map.xml 'xml/rss', :controller => 'xml', :action => 'feed', :type => 'feed', :format => 'rss' |
26 | map.xml 'sitemap.xml', :controller => 'xml', :action => 'feed', :format => 'googlesitemap', :type => 'sitemap' |
27 | |
28 | # allow neat perma urls |
29 | map.connect 'articles', |
30 | :controller => 'articles', :action => 'index' |
31 | map.connect 'articles/page/:page', |
32 | :controller => 'articles', :action => 'index', |
33 | :page => /\d+/ |
34 | |
35 | map.connect 'articles/:year/:month/:day', |
36 | :controller => 'articles', :action => 'find_by_date', |
37 | :year => /\d{4}/, :month => /\d{1,2}/, :day => /\d{1,2}/ |
38 | map.connect 'articles/:year/:month', |
39 | :controller => 'articles', :action => 'find_by_date', |
40 | :year => /\d{4}/, :month => /\d{1,2}/ |
41 | map.connect 'articles/:year', |
42 | :controller => 'articles', :action => 'find_by_date', |
43 | :year => /\d{4}/ |
44 | |
45 | map.connect 'articles/:year/:month/:day/page/:page', |
46 | :controller => 'articles', :action => 'find_by_date', |
47 | :year => /\d{4}/, :month => /\d{1,2}/, :day => /\d{1,2}/, :page => /\d+/ |
48 | map.connect 'articles/:year/:month/page/:page', |
49 | :controller => 'articles', :action => 'find_by_date', |
50 | :year => /\d{4}/, :month => /\d{1,2}/, :page => /\d+/ |
51 | map.connect 'articles/:year/page/:page', |
52 | :controller => 'articles', :action => 'find_by_date', |
53 | :year => /\d{4}/, :page => /\d+/ |
54 | |
55 | map.connect 'articles/:year/:month/:day/:title', |
56 | :controller => 'articles', :action => 'permalink', |
57 | :year => /\d{4}/, :day => /\d{1,2}/, :month => /\d{1,2}/ |
58 | |
59 | map.connect 'articles/category/:id', |
60 | :controller => 'articles', :action => 'category' |
61 | map.connect 'articles/category/:id/page/:page', |
62 | :controller => 'articles', :action => 'category', |
63 | :page => /\d+/ |
64 | |
65 | map.connect 'articles/tag/:id', |
66 | :controller => 'articles', :action => 'tag' |
67 | map.connect 'articles/tag/:id/page/:page', |
68 | :controller => 'articles', :action => 'tag', |
69 | :page => /\d+/ |
70 | |
71 | map.connect 'pages/*name',:controller => 'articles', :action => 'view_page' |
72 | |
73 | map.connect 'stylesheets/theme/:filename', |
74 | :controller => 'theme', :action => 'stylesheets' |
75 | map.connect 'javascript/theme/:filename', |
76 | :controller => 'theme', :action => 'javascript' |
77 | map.connect 'images/theme/:filename', |
78 | :controller => 'theme', :action => 'images' |
79 | |
80 | map.connect 'plugins/filters/:filter/:public_action', |
81 | :controller => 'textfilter', :action => 'public_action' |
82 | |
83 | # Kill attempts to connect directly to the theme controller. |
84 | # Ideally we'd disable these by removing the default route (below), |
85 | # but that breaks too many things for Typo 2.5. |
86 | map.connect 'theme/*stuff', |
87 | :controller => 'theme', :action => 'error' |
88 | |
89 | # Allow legacy urls to still work |
90 | map.connect ':controller/:action/:id' |
91 | |
92 | map.connect '*from', :controller => 'redirect', :action => 'redirect' |
93 | end |