summaryrefslogtreecommitdiff
path: root/demos/blog/protected/application.xml
diff options
context:
space:
mode:
authorwei <>2006-09-22 23:39:13 +0000
committerwei <>2006-09-22 23:39:13 +0000
commit3f4996918079443d774788f32fb692d1d463b1c2 (patch)
tree5fff2baf004e74812f88996f888bd71f7986ca69 /demos/blog/protected/application.xml
parent8310eca035cbaa463fdcfa5ce7b688ae0dbfb530 (diff)
Add Url Mapping docs.
Diffstat (limited to 'demos/blog/protected/application.xml')
-rw-r--r--demos/blog/protected/application.xml5
1 files changed, 5 insertions, 0 deletions
diff --git a/demos/blog/protected/application.xml b/demos/blog/protected/application.xml
index 4a18c74b..f15c4fe4 100644
--- a/demos/blog/protected/application.xml
+++ b/demos/blog/protected/application.xml
@@ -15,6 +15,11 @@
<route class="TFileLogRoute" Categories="BlogApplication" />
</module>
<module class="System.Util.TParameterModule" ParameterFile="Application.Data.Settings" />
+ <module id="friendly-url" class="System.Web.TUrlMapping">
+ <url pageClass="Posts.ViewPost" pattern="post/{id}/?" parameters.id="\d+" />
+ <url pageClass="Posts.ListPost" pattern="archive/{time}/?" parameters.time="\d{6}" />
+ <url pageClass="Posts.ListPost" pattern="category/{cat}/?" parameters.cat="\d+" />
+ </module>
</modules>
<services>
<!-- page service -->