Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Create a new webskin template ./webskin/superpower/librarySelected.cfm
  2. 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" />
    
  3. Reload the COAPI Metadata to register the newly added webskin.
  4. Go back to the Super Hero admin and try adding super powers. Make sure your librarySelected webskin is working as expected.

...

Code Block
titleExample UUID Property
<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)

...

  1. Open the ./packages/types/SuperHero.cfc component for editing.
  2. 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." />
    
  3. Go to the webtop COAPI admin area. You should see a single conflict for the Super Hero component.
    • Deploy the sidekickID uuid property
  4. 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.

...