Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 74
- Log:
Reapplied changes to Typo 4.0.0 from previous version in order to
configure it for use on the RISC OS Open site. Hopefully, the RISC
OS Open theme can be sorted out so that it works with no further
core changes.Note that this configured v4.0.0 installation has not been tested.
- Author:
- adh
- Date:
- Mon Aug 07 22:34:29 +0100 2006
- Size:
- 4690 Bytes
1 | ActionController::Routing::Routes.draw do |map| |
2 | |
3 | # default |
4 | map.index PATH_PREFIX + '/', :controller => 'articles', :action => 'index' |
5 | map.admin PATH_PREFIX + '/admin', :controller => 'admin/general', :action => 'index' |
6 | |
7 | # admin/comments controller needs parent article id |
8 | map.connect PATH_PREFIX + '/admin/comments/article/:article_id/:action/:id', |
9 | :controller => 'admin/comments', :action => nil, :id => nil |
10 | map.connect PATH_PREFIX + '/admin/trackbacks/article/:article_id/:action/:id', |
11 | :controller => 'admin/trackbacks', :action => nil, :id => nil |
12 | map.connect PATH_PREFIX + '/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 PATH_PREFIX + '/xml/itunes/feed.xml', :controller => 'xml', :action => 'itunes' |
18 | map.xml PATH_PREFIX + '/xml/articlerss/:id/feed.xml', :controller => 'xml', :action => 'articlerss' |
19 | map.xml PATH_PREFIX + '/xml/commentrss/feed.xml', :controller => 'xml', :action => 'commentrss' |
20 | map.xml PATH_PREFIX + '/xml/trackbackrss/feed.xml', :controller => 'xml', :action => 'trackbackrss' |
21 | |
22 | map.xml PATH_PREFIX + '/xml/:format/feed.xml', :controller => 'xml', :action => 'feed', :type => 'feed' |
23 | map.xml PATH_PREFIX + '/xml/:format/:type/feed.xml', :controller => 'xml', :action => 'feed' |
24 | map.xml PATH_PREFIX + '/xml/:format/:type/:id/feed.xml', :controller => 'xml', :action => 'feed' |
25 | map.xml PATH_PREFIX + '/xml/rss', :controller => 'xml', :action => 'feed', :type => 'feed', :format => 'rss' |
26 | map.xml PATH_PREFIX + '/sitemap.xml', :controller => 'xml', :action => 'feed', :format => 'googlesitemap', :type => 'sitemap' |
27 | |
28 | # allow neat perma urls |
29 | map.connect PATH_PREFIX + '/articles', |
30 | :controller => 'articles', :action => 'index' |
31 | map.connect PATH_PREFIX + '/articles/page/:page', |
32 | :controller => 'articles', :action => 'index', |
33 | :page => /\d+/ |
34 | |
35 | map.connect PATH_PREFIX + '/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 PATH_PREFIX + '/articles/:year/:month', |
39 | :controller => 'articles', :action => 'find_by_date', |
40 | :year => /\d{4}/, :month => /\d{1,2}/ |
41 | map.connect PATH_PREFIX + '/articles/:year', |
42 | :controller => 'articles', :action => 'find_by_date', |
43 | :year => /\d{4}/ |
44 | |
45 | map.connect PATH_PREFIX + '/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 PATH_PREFIX + '/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 PATH_PREFIX + '/articles/:year/page/:page', |
52 | :controller => 'articles', :action => 'find_by_date', |
53 | :year => /\d{4}/, :page => /\d+/ |
54 | |
55 | map.connect PATH_PREFIX + '/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 PATH_PREFIX + '/articles/category/:id', |
60 | :controller => 'articles', :action => 'category' |
61 | map.connect PATH_PREFIX + '/articles/category/:id/page/:page', |
62 | :controller => 'articles', :action => 'category', |
63 | :page => /\d+/ |
64 | |
65 | map.connect PATH_PREFIX + '/articles/tag/:id', |
66 | :controller => 'articles', :action => 'tag' |
67 | map.connect PATH_PREFIX + '/articles/tag/:id/page/:page', |
68 | :controller => 'articles', :action => 'tag', |
69 | :page => /\d+/ |
70 | |
71 | map.connect PATH_PREFIX + '/pages/*name',:controller => 'articles', :action => 'view_page' |
72 | |
73 | map.connect PATH_PREFIX + '/stylesheets/theme/:filename', |
74 | :controller => 'theme', :action => 'stylesheets' |
75 | map.connect PATH_PREFIX + '/javascript/theme/:filename', |
76 | :controller => 'theme', :action => 'javascript' |
77 | map.connect PATH_PREFIX + '/images/theme/:filename', |
78 | :controller => 'theme', :action => 'images' |
79 | |
80 | map.connect PATH_PREFIX + '/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 PATH_PREFIX + '/theme/*stuff', |
87 | :controller => 'theme', :action => 'error' |
88 | |
89 | # Allow legacy urls to still work |
90 | map.connect PATH_PREFIX + '/:controller/:action/:id' |
91 | |
92 | map.connect PATH_PREFIX + '/*from', :controller => 'redirect', :action => 'redirect' |
93 | end |