On May 14, 1:24 am, UCScott <[email protected]> wrote:
> So, is the documentation wrong on the jumpstart?  I am still having
> problems but I can make it work by adding the
> displayTeaserStandard.cfm code inside the displayTypeBody.cfm and
> change the variable names from stobj to qgroups.  

>From the course the displayTypeBody.cfm should be:

<cfoutput><h1>Super Groups</h1></cfoutput>
<cfquery datasource="#application.dsn#" name="qGroups">
SELECT objectid FROM supergroup
ORDER BY title
</cfquery>
<cfloop query="qGroups">
<skin:view typename="supergroup" objectid="#qGroups.objectid#"
webskin="displayTeaserStandard" />
</cfloop>

Note there is no reference to the stobj.* structure (which is
effectively a transfer object that represents the database record for
an individual database record). In the "type" webskin there is no
specific database record to refer to.

<cfsetting enablecfoutputonly="true" />
<!--- @@displayname: Standard Teaser for supergroup --->
<!--- tag libraries --->
<cfimport taglib="/farcry/core/tags/webskin/" prefix="skin" />
<cfoutput>
<div class="featurebox">
<div class="thumbnailLeft">
<skin:buildLink objectid="#stobj.objectid#">
<img src="#application.url.webroot##stobj.imgHeadQuarters#"
alt="#stobj.title#" title="#stobj.title#" />
</skin:buildLink>
</div>
<br class="clear" />
</div>
</cfoutput>
<cfsetting enablecfoutputonly="false" />

The skin:view tag is referring to rendering individual content items
-- and you can see the stobj.* structure being used in the individual
teaser displays.

The most recent course notes appear to be fine -- well at least I
can't see any mistakes there. But happy to accept its not as clear as
it could be :)  Do you have any suggestions for making the notes
clearer?

Hope that helps,

-- geoff
http://www.daemon.com.au/



--~--~---------~--~----~------------~-------~--~----~
You received this message cos you are subscribed to "farcry-dev" Google group.
To post, email: [email protected]
To unsubscribe, email: [email protected]
For more options: http://groups.google.com/group/farcry-dev
--------------------------------
Follow us on Twitter: http://twitter.com/farcry
-~----------~----~----~----~------~----~------~--~---

Reply via email to