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

Chapter 20. Approval Workflow for Messag... > Step 7: Automating the Creation of W...

Step 7: Automating the Creation of Workflow and Friends

Now that you have your workflow support completed, you should direct your attention to one last quirk. Remember earlier in this chapter, when you created the workflow by hand in several steps? You certainly do not want to require your users to add all those objects by hand. It would be neat if the workflow code could be added after the message board is created and added. That is actually not hard to make happen. You only have to create a custom template and an Add view and insert it in the browser:addform directive.

You should start with the template, which should provide an option for the user to choose whether the workflow objects should be generated. You need to create a new file called messageboard_add.pt and insert the following content in it:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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