• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 15. Custom Schema Fields and For... > Step 3: Using the HTML Field

Step 3: Using the HTML Field

Now you have all the pieces you need for using the HTML field in the message board. All that's left is to integrate them with the rest of the package. There are a couple of steps involved. First, you register HTMLSourceWidget as a widget for the HTML field. Next, you need to change the IMessage interface declaration to use the HTML field.

Registering the Widget

To register the new widget as a view for the HTML field, you use the zope namespace view directive. Therefore, you have to add the zope namespace to the configuration file's namespace list by adding the following line in the opening configure element:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint