root/trunk/website/blog/page.cfm @ 32

Revision 5, 0.8 kB (checked in by DanWilson, 17 years ago)

Initial Commit Of ModelGlue? Website (upgrade to blogcfc 511)

Line 
1<cfsetting enablecfoutputonly=true>
2<cfprocessingdirective pageencoding="utf-8">
3<!---
4        Name         : page.cfm
5        Author       : Raymond Camden
6        Created      : July 8, 2006
7        Last Updated : July 15, 2006
8        History      : New logic to get path (rkc 7/15/06)
9        Purpose          : Page render
10--->
11
12<cfset pageAlias = listLast(cgi.path_info, "/")>
13
14<cfif not len(pageAlias)>
15        <cflocation url="#application.rooturl#/index.cfm" addToken="false">
16</cfif>
17
18<cfset page = application.page.getPageByAlias(pageAlias)>
19
20<cfif structIsEmpty(page)>
21        <cflocation url="#application.rooturl#/index.cfm" addToken="false">
22</cfif>
23
24<cfmodule template="tags/layout.cfm" title="#page.title#">
25
26        <cfoutput>
27        <div class="date"><b>#page.title#</b></div>
28        <div class="body">
29        #application.blog.renderEntry(page.body)#
30        </div>
31        </cfoutput>
32
33</cfmodule>
Note: See TracBrowser for help on using the browser.