Here is the key property:

       <cfproperty       ftSeq="12" ftFieldset="Related Content"
name="aSuperHeroes"
type="array"      ftLabel="Super Heroes" ftJoin="superHerotwo" hint="Array
of
super heroes." />

Notice that ftJoin="superHerotwo". What this is telling the Library function
is to use any webskins from the type: "superHerotwo". I.e., it is looking
for a /packages/types/superHerotwo.cfc type and webskins in the folder
/webskins/superHerotwo/librarySelected.cfm.

So either move the librarySelected to /webskins/superHerotwo/ or change the
ftJoin="superHeros". Just make sure to refresh COAPI or the app to make
things work.

Hope that helps.

Tomek

On Mon, Feb 22, 2010 at 2:02 PM, Activant <[email protected]> wrote:

> I thought about that. maybe seeing some more info/code would help...
>
> Here is my superGroup cfc...(located under projects\myproject\packages
> \types)
>
> <!--- ./packages/types/supergroup.cfc --->
> <cfcomponent name="superGroup"
> extends="farcry.core.packages.types.types" output="false"
> displayname="Super Group">
>
>        <cfproperty
>                name="title" type="string" default="" hint="Super hero
> title."
>                ftSeq="1" ftFieldset="General Details" ftLabel="Title"
> ftvalidation="required" />
>        <cfproperty
>                name="description" type="longchar" hint="The description of
> the
> super group"
>                ftSeq="2" ftFieldset="General Details" ftLabel="Secret
> Hideout"
> fthint="The description of the super group" ftType="richtext" />
>        <cfproperty
>                name="headquarters" type="string" default="" hint="Super
> Group
> Headquarters."
>                ftSeq="3" ftFieldset="General Details"
> ftLabel="Headquarters" />
>        <cfproperty
>                name="imgHeadQuarters" type="string" hint="The source image
> to
> upload"
>                ftSeq="4" ftFieldset="Imagery" ftLabel="Headquarters Image"
>                ftType="image"
> ftDestination="/images/superhero/imgHeadQuarters"
> ftImageWidth="200" ftImageHeight="200" ftAutoGenerateType="fitInside" /
> >
>        <cfproperty
>        ftSeq="12" ftFieldset="Related Content" name="aSuperHeroes"
> type="array"
>        ftLabel="Super Heroes" ftJoin="superHerotwo" hint="Array of
> super heroes." />
>
> </cfcomponent>
>
> Here is my librarySelected.cfm code...(located under projects\myproject
> \webskin\SuperHeroes\)
>
> <cfsetting enablecfoutputonly="true" />
> <!--- @@displayname: Group (Library) --->
>
> <cfoutput>
> <div>
> #stobj.title#
> <br />
> #stobj.teaser#
> <br />
> <img src="#application.url.webroot##stobj.imgHero#"
> alt="#stobj.title#" title="#stobj.title#" />
> <br />
> #application.url.webroot##stobj.imgHero#
> </div>
> </cfoutput>
>
> <cfsetting enablecfoutputonly="false" />
>
> On Feb 22, 11:40 am, Tomek Kott <[email protected]> wrote:
> > ahh. Perhaps this is the issue:(?)
> >
> > Does your superGroup type have an array to attach to? (such as
> superhero?)
> > OR is it being attached to something else?
> >
> > If you are attaching superHeros TO a superGroup, then you need the
> > librarySelected under the superHero webskin.
> >
> > I hope that I'm not point out something that you found to be totally
> > obvious...just trying to isolate issues :/
> >
> > Tomek
> >
> > On Mon, Feb 22, 2010 at 11:40 AM, Activant <[email protected]>
> wrote:
> > > Sorry...meant...
> >
> > > projects\myproject\webskin\superGroup\librarySelected.cfm
> >
> > > On Feb 22, 10:37 am, Activant <[email protected]> wrote:
> > > > projects\myproject\webskin\superpowers\librarySelected.cfm
> >
> > > > On Feb 22, 10:35 am, Tomek Kott <[email protected]> wrote:
> >
> > > > > where did you put your librarySelected.cfm template? (exact folder
> > > > > structure). I'm guessing that COAPI is not picking it up because it
> is
> > > > > expecting it somewhere else.
> >
> > > > > Tomek
> >
> > > > > On Mon, Feb 22, 2010 at 11:33 AM, Activant <[email protected]
> >
> > > wrote:
> > > > > > It simply loads the default one. I figure this is something
> simple
> > > > > > that I am missing. Thoughts?
> >
> > > > > > On Feb 19, 7:47 pm, Blair McKenzie <[email protected]> wrote:
> > > > > > > Also, you can do basic tests of webskins by loading them
> directly
> > > with
> > > > > > URL
> > > > > > > parameters:
> > > > > > >
> /index.cfm?objectid=your-objectid&view=librarySelected&ajaxmode=1.
> > > Do you
> > > > > > > get an error because FarCry couldn't find your webskin? Does it
> > > load the
> > > > > > > default? Does it load your webskin correctly? The result may
> give
> > > you
> > > > > > some
> > > > > > > idea of where things are going wrong.
> >
> > > > > > > Blair
> >
> > > > > > > On Sat, Feb 20, 2010 at 11:15 AM, AJ Mercer <
> [email protected]>
> > > wrote:
> > > > > > > > try putting debug=1 onto the URL
> > > > > > > > Farcry hides a lot of errors
> >
> > > > > > > > On 20 February 2010 07:49, Activant <[email protected]>
> > > wrote:
> >
> > > > > > > >> I am using 5.0.
> >
> > > > > > > >> What seems to be happening is that it loads a library with
> the
> > > data,
> > > > > > > >> but I made some layout changes , etc. and that does not seem
> to
> > > be
> > > > > > > >> taking affect. I am not getting an error, it is like it is
> > > looking at
> > > > > > > >> a generic librarySelected file and not my custom one. Does
> that
> > > make
> > > > > > > >> sense? If not, let me know how I can add further
> information.
> >
> > > > > > > >> On Feb 19, 5:08 pm, Jeff Coughlin <[email protected]>
> > > wrote:
> > > > > > > >> > Clay,
> >
> > > > > > > >> > > I am learning FarCry and am a tad fuzzy on the
> construction
> > > and
> > > > > > > >> > > relationships of a library webskin. I am going through
> the
> > > > > > walkthrough
> > > > > > > >> > > and am attempting my own library webskin, but am not
> getting
> > > it to
> > > > > > > >> > > work correctly. Is there any other info out there or do
> you
> > > have
> > > > > > any
> > > > > > > >> > > tips? (FYI, I did reload the COAPI)
> >
> > > > > > > >> > What version of FarCry are you using?
> >
> > > > > > > >> > Can you elaborate on "...[I'm] not getting it to work
> > > correctly."?
> > > > > > > >> > Do you get an error? No result at all?
> >
> > > > > > > >> > Regards,
> >
> > > > > > > >> > --
> > > > > > > >> > Jeff Coughlin
> > > > > > > >> > Web Application Developerhttp://jeffcoughlin.com/blog
> >
> > > > > > > >> --
> > > > > > > >> You received this message cos you are subscribed to
> "farcry-dev"
> > > > > > Google
> > > > > > > >> group.
> > > > > > > >> To post, email: [email protected]
> > > > > > > >> To unsubscribe, email:
> [email protected]<farcry-dev%[email protected]>
> <farcry-dev%[email protected]<farcry-dev%[email protected]>
> >
> > > <farcry-dev%[email protected]<farcry-dev%[email protected]>
> <farcry-dev%[email protected]<farcry-dev%[email protected]>
> >
> >
> > > > > > <farcry-dev%[email protected]<farcry-dev%[email protected]>
> <farcry-dev%[email protected]<farcry-dev%[email protected]>
> >
> > > <farcry-dev%[email protected]<farcry-dev%[email protected]>
> <farcry-dev%[email protected]<farcry-dev%[email protected]>
> >
> >
> > > > > > > >> For more options:http://groups.google.com/group/farcry-dev
> > > > > > > >> --------------------------------
> > > > > > > >> Follow us on Twitter:http://twitter.com/farcry
> >
> > > > > > > > --
> >
> > > > > > > > AJ Mercer
> > > > > > > >http://webonix.net
> > > > > > > >http://twitter.com/webonix
> >
> > > > > > > >  --
> > > > > > > > You received this message cos you are subscribed to
> "farcry-dev"
> > > Google
> > > > > > > > group.
> > > > > > > > To post, email: [email protected]
> > > > > > > > To unsubscribe, email:
> [email protected]<farcry-dev%[email protected]>
> <farcry-dev%[email protected]<farcry-dev%[email protected]>
> >
> > > <farcry-dev%[email protected]<farcry-dev%[email protected]>
> <farcry-dev%[email protected]<farcry-dev%[email protected]>
> >
> >
> > > > > > <farcry-dev%[email protected]<farcry-dev%[email protected]>
> <farcry-dev%[email protected]<farcry-dev%[email protected]>
> >
> > > <farcry-dev%[email protected]<farcry-dev%[email protected]>
> <farcry-dev%[email protected]<farcry-dev%[email protected]>
> >
> >
> > > > > > > > For more options:http://groups.google.com/group/farcry-dev
> > > > > > > > --------------------------------
> > > > > > > > Follow us on Twitter:http://twitter.com/farcry
> >
> > > > > > --
> > > > > > You received this message cos you are subscribed to "farcry-dev"
> > > Google
> > > > > > group.
> > > > > > To post, email: [email protected]
> > > > > > To unsubscribe, email: 
> > > > > > [email protected]<farcry-dev%[email protected]>
> <farcry-dev%[email protected]<farcry-dev%[email protected]>
> >
> > > <farcry-dev%[email protected]<farcry-dev%[email protected]>
> <farcry-dev%[email protected]<farcry-dev%[email protected]>
> >
> >
> > > > > > For more options:http://groups.google.com/group/farcry-dev
> > > > > > --------------------------------
> > > > > > Follow us on Twitter:http://twitter.com/farcry
> >
> > > --
> > > You received this message cos you are subscribed to "farcry-dev" Google
> > > group.
> > > To post, email: [email protected]
> > > To unsubscribe, email: 
> > > [email protected]<farcry-dev%[email protected]>
> <farcry-dev%[email protected]<farcry-dev%[email protected]>
> >
> > > For more options:http://groups.google.com/group/farcry-dev
> > > --------------------------------
> > > Follow us on Twitter:http://twitter.com/farcry
>
> --
> You received this message cos you are subscribed to "farcry-dev" Google
> group.
> To post, email: [email protected]
> To unsubscribe, email: 
> [email protected]<farcry-dev%[email protected]>
> For more options: http://groups.google.com/group/farcry-dev
> --------------------------------
> Follow us on Twitter: http://twitter.com/farcry
>

-- 
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