...
- Create a new webskin template ./webskin/superpower/librarySelected.cfm
- Copy the following code into the webskin:
Code Block <cfsetting enablecfoutputonly="true" /> <!--- @@displayname: libraryPower selection(Library) webskin ---> <cfoutput> <div> <img src="#application.url.webroot##stobjwebroot#/#stobj.imgPower#" alt="#stobj.title#" title="#stobj.title#" /> #stobj.title#<br /> #stobj.description# </div> </cfoutput> <cfsetting enablecfoutputonly="false" />
- Reload the COAPI Metadata to register the newly added webskin.
- Go back to the Super Hero admin and try adding super powers. Make sure your librarySelected webskin is working as expected.
...
Code Block | ||
---|---|---|
| ||
<cfcomponent<cfproperty ..> ... <cfproperty name="sidekickid" type="uuid" hint="Super hero sidekick." ftSeq="11" ftFieldset="Related Content" ftWizardStep="Relationships" nameftLabel="sidekickidSidekick" typefttype="uuid" ftLabel="Sidekick" ftjoin="superhero" hint="Super hero sidekick." /> ... </cfcomponent> |
Walkthrough: Side Kick (there can be only one)
...
- Open the ./packages/types/SuperHero.cfc component for editing.
- Add a UUID property for sidekickID
Code Block <cfproperty name="sidekickid" type="uuid" hint="Super hero sidekick." ftSeq="11" ftFieldset="Related Content" ftWizardStep="Relationships" nameftLabel="sidekickidSidekick" typefttype="uuid" ftLabel="Sidekick" ftjoin="superhero" hint="Super hero sidekick." />
- Go to the webtop COAPI admin area. You should see a single conflict for the Super Hero component.
- Deploy the sidekickID uuid property
- Go to the Super Hero administration screen, and associate a side-kick from the library picker that should now be available in the edit handler.
...