Jeremy Newman : adding a simple howto on setting up the website

Jeremy Newman jnewman at winehq.org
Tue Dec 9 14:01:12 CST 2008


Module: website
Branch: master
Commit: f274c7ec54fba5d76706ee049113f6dcef44f28e
URL:    http://source.winehq.org/git/website.git/?a=commit;h=f274c7ec54fba5d76706ee049113f6dcef44f28e

Author: Jeremy Newman <jnewman at codeweavers.com>
Date:   Tue Dec  9 14:00:54 2008 -0600

adding a simple howto on setting up the website

---

 README |   41 +++++++++++++++++++++++++++++++++++++++++
 1 files changed, 41 insertions(+), 0 deletions(-)

diff --git a/README b/README
new file mode 100644
index 0000000..3ed65c2
--- /dev/null
+++ b/README
@@ -0,0 +1,41 @@
+WineHQ (lostwages) Website Template Engine
+ver 3.0
+by Jeremy Newman <jnewman at codeweavers.com>
+-----------------------------------------------------------------------
+
+Installation Requirements:
+ * Apache 2.0 or higher
+    * mod_rewrite enabled in Apache config
+ * PHP 5.0 or higher
+
+Setting Up.
+--------------
+1. cp include/htaccess.sample .htaccess
+2. edit .htaccess
+ * change Rewritebase to the subdir path from the root of your website.
+    iow, if you have the site as http://www.example.com/winehq_org/
+    then Rewritebase /winehq_org/
+    otherwise if this site is the root, leave Rewritebase /
+3. change last rule RewriteRule ^(.+) /site/$1 to have same path as above, leaving in /site/.
+    i.e. RewriteRule ^(.+) /winehq_org/site/$1 if using subdir
+4. cp include/winehq.conf.sample include/winehq.conf
+5. edit include/winehq.conf
+
+Templates.
+--------------
+For any path in your website, create a .template file in templates/en/
+For example, http://www.example.com/winehq_org/new_page
+ is templates/en/new_page.template
+You can nest templates into subdirs.
+
+The following varables can be used in templates.
+
+{$root}         : relative path back to root of website
+{$base_url}     : full URL of main website, as defined in winehq.conf
+{$self}         : same as $_SERVER['PHP_SELF'] in PHP
+{$request_uri}  : same as $_SERVER['REQUEST_URI'] in PHP
+
+You can also add global vars to include/globals.conf and they will be availbe as 
+{$config_[key]} where [key] is the name you defined in globals.conf
+
+




More information about the wine-cvs mailing list