A header and footer would be a good idea. Also, at least one display page is
required for the dmHTML type. You could have something as simple as this:

====Header====
<html>
<head><title></title></head>
<body>
====End Header===

====Display Page====
<!--- @@displayname: Your Display Page Name goes here --->
<cfsetting enablecfoutputonly="yes">
<cfmodule
template="/farcry/#application.applicationname#/webskin/includes/[your
header name here]" pageTitle="#stObj.title#">
<cfoutput>
<h2>#stObj.title#</h2>
<hr>
#stObj.body#
</cfoutput>
<cfmodule
template="/farcry/#application.applicationname#/webskin/includes/[Your
footer filename here]">
<cfsetting enablecfoutputonly="no">
====End Display Page====

====Footer====
</body>
</html>
====End Footer====

"stObj" is the key here! This structure has all the info on the requested
object and is created by the core before the display page is called. All you
have to do is use it and build on it. Simple huh!

Now that's a terribly basic example but it will work. Your header and footer
templates should be in "[app dir name]\webskin\includes" and your display
page template would be in "[app dir name]\webskin\dmHTML". The display
template filename needs to be prefaced with "displayPage". @@displayname is
used in the admin to identify the template in the select box. There's so
much you can do with templates. I'd recommend taking the time to study the
boilerplate templates included in the default app. Daemon has done a great
job of providing example code to help the learning curve along.

~Tom


-----Original Message-----
From: Robertson-Ravo, Neil (RX)
[mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 05, 2003 8:50 AM
To: FarCry Developers
Subject: [farcry-dev] Lots of Fluff


There also seems to be alot of fluff within the default app pages (the pages
which build the site....),  what exactly is required to take a blank set etc
and hit the ground running.

---
You are currently subscribed to farcry-dev as: [EMAIL PROTECTED] To
unsubscribe send a blank email to [EMAIL PROTECTED]

---
You are currently subscribed to farcry-dev as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

Reply via email to