I think the problem may be this. The "type" webskin ie. displayTypeBody is a view that is not attached to a specific content item. "Type" webskins are associated with a list of content items and as such do not have the same stobj structure you might expect.
"Type" webskins essentially have no stobj structure (well there is one but its for the frameworks reference and not suited to being addressed by developers. It's actually a record from farCOAPI table which is an internal registry of all content types. You should really only be using a "type" or list view to represent a group/collection/list of content items. So in the case of this Super Groups page, you want to list all the Super Groups in the system. Your pseudo code would be: - get content type for farSuperGroup - get a query of multiple content items (something the equivalent of SELECT objectid FROM farSuperGroup) - loop over the query running skin:view for each query.objectid Does that make sense? -- geoff http://twitter.com/modius On May 13, 7:54 am, UCScott <[email protected]> wrote: > <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#" /><cfdump var="#stobj#"> > </skin:buildLink> > </div> > <br class="clear" /> > </div> > </cfoutput> > <cfsetting enablecfoutputonly="false" /> > > I checked the database and each row has a imgHeadQuarters defined. > The location is the same for both displayTypeBody.cfm and > displayTeaserStandard.cfm should they have different locations? > > Thank you for your help! > > On May 12, 1:55 pm, modius <[email protected]> wrote: > > > > > On May 13, 4:25 am, UCScott <[email protected]> wrote: > > > > I have run through the project up to where I add navigation and call > > > displayTypeBody.cfm and then calls displayTeaserStandard.cfm. When I > > > preview I get a title Super Groups and nothing below it. So, I tried > > > pasting the displayTeaserStandard code into displayTypeBody.cfm and > > > then I get an error. "Element IMGHEADQUARTERS is undefined in STOBJ. > > > " I then tried to <cfdump var"#stobj#"> and sure enough there is no > > > img but the rest of the array is filled with information. Am I > > > missing something obvious? > > > Please paste the code for the template that is failing. > > > -- geoffhttp://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 -~----------~----~----~----~------~----~------~--~---
