From 4a9dd5c8513ed96d1e0cf43e370b170dc38fb502 Mon Sep 17 00:00:00 2001 From: xue <> Date: Fri, 29 Jun 2007 17:41:20 +0000 Subject: finished blog-tutorial. --- demos/blog-tutorial/protected/common/TopicList.tpl | 30 +--- .../protected/pages/Day1/ShareLayout.page | 6 +- .../protected/pages/Day4/CreateListPost.page | 2 + .../protected/pages/Day4/CreateNewPost.page | 3 +- .../protected/pages/Day4/Overview.page | 2 +- .../protected/pages/Day5/ErrorLogging.page | 159 +++++++++++++++++++++ .../protected/pages/Day5/Performance.page | 67 +++++++++ .../protected/pages/Day5/Summary.page | 36 +++++ .../protected/pages/Day5/UseTheme.page | 138 ++++++++++++++++++ .../blog-tutorial/protected/pages/Day5/output.gif | Bin 0 -> 4282 bytes .../blog-tutorial/protected/pages/Day5/output2.gif | Bin 0 -> 7798 bytes .../blog-tutorial/protected/pages/Day5/output3.gif | Bin 0 -> 5190 bytes demos/blog-tutorial/protected/pages/Overview.page | 6 +- 13 files changed, 415 insertions(+), 34 deletions(-) create mode 100644 demos/blog-tutorial/protected/pages/Day5/ErrorLogging.page create mode 100644 demos/blog-tutorial/protected/pages/Day5/Performance.page create mode 100644 demos/blog-tutorial/protected/pages/Day5/Summary.page create mode 100644 demos/blog-tutorial/protected/pages/Day5/UseTheme.page create mode 100644 demos/blog-tutorial/protected/pages/Day5/output.gif create mode 100644 demos/blog-tutorial/protected/pages/Day5/output2.gif create mode 100644 demos/blog-tutorial/protected/pages/Day5/output3.gif (limited to 'demos/blog-tutorial/protected') diff --git a/demos/blog-tutorial/protected/common/TopicList.tpl b/demos/blog-tutorial/protected/common/TopicList.tpl index 05fe3277..a98181dc 100644 --- a/demos/blog-tutorial/protected/common/TopicList.tpl +++ b/demos/blog-tutorial/protected/common/TopicList.tpl @@ -50,32 +50,12 @@
-
Day 5: Creating Portlets
+
Day 5: Refactoring and Deployment
- -
-
Day 6: Customization and Refactoring
- -
- -
-
Day 7: Performance Tuneup and Deployment
- -
- -
-
Summary
-
diff --git a/demos/blog-tutorial/protected/pages/Day1/ShareLayout.page b/demos/blog-tutorial/protected/pages/Day1/ShareLayout.page index d6c4d29f..9cd0410b 100644 --- a/demos/blog-tutorial/protected/pages/Day1/ShareLayout.page +++ b/demos/blog-tutorial/protected/pages/Day1/ShareLayout.page @@ -28,6 +28,7 @@ For the moment, MainLayout only contains a simple header and a footer, <com:THead /> <com:TForm> +
+
</com:TForm> @@ -113,7 +115,7 @@ Besides <com:TContent>, we also see another new tag <%@ %&

-By setting MasterClass property as Application.layouts.MainLayout, we instruct the Contact page to use MainLayout as its master. Here, we are using the namespace format to refer to the MainLayout class. +By setting MasterClass property as Application.layouts.MainLayout, we instruct the Contact page to use MainLayout as its master. Here, we are using the namespace format to refer to the MainLayout class.

@@ -140,7 +142,7 @@ class Contact extends TPage parent::onPreInit($param); $this->MasterClass='Path.To.NewLayout'; } - + // ... } ?> diff --git a/demos/blog-tutorial/protected/pages/Day4/CreateListPost.page b/demos/blog-tutorial/protected/pages/Day4/CreateListPost.page index e25c0609..1dada650 100644 --- a/demos/blog-tutorial/protected/pages/Day4/CreateListPost.page +++ b/demos/blog-tutorial/protected/pages/Day4/CreateListPost.page @@ -146,6 +146,7 @@ The expression $this->Data refers to the data item passed to the repeat

+

<com:THyperLink Text="<%# $this->Data->title %>" NavigateUrl="<%# $this->Service->constructUrl('posts.ReadPost',array('id'=>$this->Data->post_id)) %>" /> @@ -161,6 +162,7 @@ Time:

<com:TLiteral Text="<%# $this->Data->content %>" />

+

Creating Renderer Class

diff --git a/demos/blog-tutorial/protected/pages/Day4/CreateNewPost.page b/demos/blog-tutorial/protected/pages/Day4/CreateNewPost.page index 5011c346..9020c517 100644 --- a/demos/blog-tutorial/protected/pages/Day4/CreateNewPost.page +++ b/demos/blog-tutorial/protected/pages/Day4/CreateNewPost.page @@ -25,7 +25,8 @@ As the number of our pages expands, we would like to modify MainLayout