{"id":667,"date":"2013-09-03T03:28:22","date_gmt":"2013-09-03T03:28:22","guid":{"rendered":"http:\/\/tregner.com\/flare-blog\/?p=667"},"modified":"2014-03-14T01:32:57","modified_gmt":"2014-03-14T01:32:57","slug":"create-topics-in-bulk-with-a-plug-in","status":"publish","type":"post","link":"https:\/\/tregner.com\/flare-blog\/create-topics-in-bulk-with-a-plug-in\/","title":{"rendered":"Create Topics in Bulk with a Plug-in"},"content":{"rendered":"<p>Note (3\/13\/2014): A change to the API for version 10 requires adjusting the code in this sample if the plug-in is to be used with version 10. The change is explained in\u00a0<a href=\"https:\/\/tregner.com\/flare-blog\/adjusting-flare-9-plug-ins-for-flare-10\/\" target=\"_blank\">Adjusting Flare 9 Plug-ins for Flare 10<\/a>.<\/p>\n<p>Sometimes you just want to create a bunch of blank topics all at once and put all of those topics in a TOC.<\/p>\n<p><a href=\"https:\/\/tregner.com\/flare-blog\/wp-content\/uploads\/2013\/09\/batch-topics-1.png\"><img loading=\"lazy\" class=\"alignnone size-full wp-image-668\" alt=\"batch-topics-1\" src=\"https:\/\/tregner.com\/flare-blog\/wp-content\/uploads\/2013\/09\/batch-topics-1.png\" width=\"856\" height=\"740\" srcset=\"https:\/\/tregner.com\/flare-blog\/wp-content\/uploads\/2013\/09\/batch-topics-1.png 856w, https:\/\/tregner.com\/flare-blog\/wp-content\/uploads\/2013\/09\/batch-topics-1-300x259.png 300w, https:\/\/tregner.com\/flare-blog\/wp-content\/uploads\/2013\/09\/batch-topics-1-624x539.png 624w\" sizes=\"(max-width: 856px) 100vw, 856px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"https:\/\/tregner.com\/flare-blog\/wp-content\/uploads\/2013\/09\/batch-topics-2.png\"><img loading=\"lazy\" class=\"alignnone size-full wp-image-669\" alt=\"batch-topics-2\" src=\"https:\/\/tregner.com\/flare-blog\/wp-content\/uploads\/2013\/09\/batch-topics-2.png\" width=\"1347\" height=\"846\" srcset=\"https:\/\/tregner.com\/flare-blog\/wp-content\/uploads\/2013\/09\/batch-topics-2.png 1347w, https:\/\/tregner.com\/flare-blog\/wp-content\/uploads\/2013\/09\/batch-topics-2-300x188.png 300w, https:\/\/tregner.com\/flare-blog\/wp-content\/uploads\/2013\/09\/batch-topics-2-1024x643.png 1024w, https:\/\/tregner.com\/flare-blog\/wp-content\/uploads\/2013\/09\/batch-topics-2-624x391.png 624w\" sizes=\"(max-width: 1347px) 100vw, 1347px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"https:\/\/tregner.com\/flare-blog\/wp-content\/uploads\/2013\/09\/batch-topics-3.png\"><img loading=\"lazy\" class=\"alignnone size-full wp-image-670\" alt=\"batch-topics-3\" src=\"https:\/\/tregner.com\/flare-blog\/wp-content\/uploads\/2013\/09\/batch-topics-3.png\" width=\"1091\" height=\"728\" srcset=\"https:\/\/tregner.com\/flare-blog\/wp-content\/uploads\/2013\/09\/batch-topics-3.png 1091w, https:\/\/tregner.com\/flare-blog\/wp-content\/uploads\/2013\/09\/batch-topics-3-300x200.png 300w, https:\/\/tregner.com\/flare-blog\/wp-content\/uploads\/2013\/09\/batch-topics-3-1024x683.png 1024w, https:\/\/tregner.com\/flare-blog\/wp-content\/uploads\/2013\/09\/batch-topics-3-624x416.png 624w\" sizes=\"(max-width: 1091px) 100vw, 1091px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>If you are interested in that sort of thing, you can create a Flare plug-in to add the functionality to MadCap Flare. If you want to play around with the code to create what is shown in the preceding screen shots, here is a sample solution and project: <a title=\"FlarePlugins.zip\" href=\"http:\/\/tregner.com\/example-projects\/FlarePlugins.zip\" target=\"_blank\">FlarePlugins.zip<\/a><\/p>\n<p>&nbsp;<\/p>\n<p>If you just want to try it, here is a plug-in DLL: <a title=\"BatchTopics.dll\" href=\"http:\/\/tregner.com\/example-projects\/BatchTopics.dll\" target=\"_blank\">BatchTopics.dll<\/a>\u00a0and help for <a href=\"http:\/\/webhelp.madcapsoftware.com\/flare9\/Default.htm#Plugins\/Plugin_API.htm\" target=\"_blank\">MadCap&#8217;s Plug-in API<\/a>. Use the code or the plug-in at your own risk. No warranty is offered. Let me know what you think in the comments.<\/p>\n<p>Edit (9\/102013): There is additional information at <a href=\"http:\/\/www.madcapsoftware.com\/blog\/2013\/09\/06\/guest-post-create-flare-topics-in-bulk-with-a-plug-in\/\" target=\"_blank\">MadBlog<\/a>. Also the project and DLL were recently updated to fix a namespace issue.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Note (3\/13\/2014): A change to the API for version 10 requires adjusting the code in this sample if the plug-in is to be used with version 10. The change is explained in\u00a0Adjusting Flare 9 Plug-ins for Flare 10. Sometimes you just want to create a bunch of blank topics all at once and put all&hellip; <a class=\"more-link\" href=\"https:\/\/tregner.com\/flare-blog\/create-topics-in-bulk-with-a-plug-in\/\">Continue reading <span class=\"screen-reader-text\">Create Topics in Bulk with a Plug-in<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[4],"tags":[],"_links":{"self":[{"href":"https:\/\/tregner.com\/flare-blog\/wp-json\/wp\/v2\/posts\/667"}],"collection":[{"href":"https:\/\/tregner.com\/flare-blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tregner.com\/flare-blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tregner.com\/flare-blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tregner.com\/flare-blog\/wp-json\/wp\/v2\/comments?post=667"}],"version-history":[{"count":4,"href":"https:\/\/tregner.com\/flare-blog\/wp-json\/wp\/v2\/posts\/667\/revisions"}],"predecessor-version":[{"id":724,"href":"https:\/\/tregner.com\/flare-blog\/wp-json\/wp\/v2\/posts\/667\/revisions\/724"}],"wp:attachment":[{"href":"https:\/\/tregner.com\/flare-blog\/wp-json\/wp\/v2\/media?parent=667"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tregner.com\/flare-blog\/wp-json\/wp\/v2\/categories?post=667"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tregner.com\/flare-blog\/wp-json\/wp\/v2\/tags?post=667"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}