>I have gone to the makeover walkthrough and I have changed my >website. What I need is to be able to change different >section's skin. So say I click on the section that has to do >with a product of ours, I want it to be completely different >than the first website. When you create an HTML page you can >select home page or standard page, how would I go about adding >something called product page etc.
Hey Bob, Display methods (skins) are all located under the "webskin" directory in your app. If your app name was "foo", webskins for HTML objects could be found under "foo\webskin\dmHTML". Have a look at the existing skins under "dmHTML". They will give you a good idea of how skins are used. Creating a new skin is easy. If I wanted to create a new skin for say..."products". I would create a new file under "foo\webskin\dmHTML" and I would name it "displayPageProducts.cfm". It's important to preface "type skins" with "displayPage". This is how Farcry finds them. Now that my file is created I need to give it some life. The first thing I do is give it a descriptive name. In the file I would add: <!--- @@displayname: Products Page ---> Farcry will see this comment and use it in the list of "display methods". Next we need some code to handle display. Just to get is working I might simply add: <cfoutput>#stObj.body#</cfoutput> Where "stObj" is the structure containing all of the requested objects info. stObj is created by Farcry automatically and is always available to skins. That it in a nutshell. Like I said, have a look into some of the standard templates. I think you'll find them very helpful. Oh...You might be wondering where you assign a template to an HTML page. That's in the admin. When you create or edit an HTML page it part of the first step. It's your "Display Method" option. I should also mention that display methods are not specific to just HTML objects, they are used for most all objects in Farcry. Once you know how to create one you can create a million :) Does this help? ~Tom --- You are currently subscribed to farcry-dev as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia http://www.mxdu.com/ + 24-25 February, 2004
