| Main | Install | End-user | Designer | Developer | Localization | |
How to make widget?Adobe Flex 3 required 1. Download library demo project with one created widget. Project was build using Adobe Flex Builder 3, but you can use it with Flex SDK. This a real Fuzzle CMS widget code (name Image with link).
2. There are three files:
You can define any number of widgets in library; but we discuss the example with only one widget.
BlockImageLink componentComponent, a widget view, must implement com.fuzzle.interfaces.IBlock interface. This interface requires two functions:
The important part of component is a reading and saving configuration XML. It save in _configXML var and return during page saving process.
As you can see, _configXML have default value. It reflects the fact, that during block creation it's necessary to setup internal properties by default, because during creation CMS doesn't call loadFromXML procedure.
BlockImageLinkEditor componentEditor component must implement com.fuzzle.interfaces.com.fuzzle.interfaces.IBlockEditor interface. This interface requires two functions:
During setXML call we setup the link field text, Glow checkbox and other. During getXML call we serialize all that parameters to XML.
Image choose component example (FZUserFileSelectImage):
How to make widget installation package?
Making widget editor – alternative method? |
Developer guideOverview API Lessons
|