Smart Blocks™

Picture 31
The Smart Block HUD (Heads Up Display) displays special, user defined, properties of the selected block. By default the Smart Block window will be empty, but by adding Smart Block Tags to the content the Smart Block HUD will be updated with an interface for each tag. Building an interface for a block is a nice way to simplify a complex or repetitive coding task.


Smart Tags
Picture 53

Demo Smart Block
We've created the most trivial Smart Block that you can download and add to your Blocks Library (just drop the file onto your Blocks page). This block demonstrates a property tags to set the width and height, an input tag to set the name of the swf file, and a variable tag to substitute the GUI value into the block. To use add a swf (a flash movie) to your Blocks page assets using the RapidWeaver page inspector. Type in the name of the swf into the Smart Info window and click publish. Note: This block is in no way meant to be a comprehensive way to add flash to your Blocks layout. It is meant only as an educational demonstration. Making this block xHTML strict is left as an exercise to the reader.

Picture 54

Screencast

Even an example can be hard to use, so we created a screencast to get you going. This screencast will show you everything you need to do to use the library block above and turn it into a web page.
Picture 3