{"id":195,"date":"2007-06-16T14:38:09","date_gmt":"2007-06-16T19:38:09","guid":{"rendered":"\/cgi\/wp\/?p=195"},"modified":"2019-12-11T08:54:22","modified_gmt":"2019-12-11T13:54:22","slug":"visual-studio-2005-item-templates","status":"publish","type":"post","link":"http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/?p=195","title":{"rendered":"Visual Studio 2005 Item Templates"},"content":{"rendered":"<p>Yesterday I learned how to create custom Item Templates for <strong>Visual  Studio 2005<\/strong>. An item template is used to add new items to a project  like a starter class file. You can export any of your project files as an item  template but you must add the Export Template&#8230; menu option to the File menu. I  created a custom item template for my help topic template file so I can more  easily start a new help topic. I encountered many difficulties and technical  challenges in getting my item template exactly as I wanted it.<\/p>\n<p>My help topic template needs a style sheet so I had to edit my template to  include the style sheet. You can use a few built-in parameters to replace text  in your item template. You can also create custom parameters. I added a custom  parameter for the author where I can plug in my name and I used the built-in  parameter for the year so the copyright year will always be correct. However I  did not like the date format so I had to go to a lot of trouble to change that.  I had to create a wizard extension to augment the standard New Item wizard with  my own code and add a dynamic custom parameter for replacement in the project  file.<\/p>\n<p><font face=\"Arial\">I will probably add a page to my web site with complete instructions on how  to create a custom item template. It is very complicated and technical so it  will serve as a good demonstration of my technical skills. <\/font><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Yesterday I learned how to create custom Item Templates for Visual Studio 2005. An item template is used to add new items to a project like a starter class file. You can export any of your project files as an &hellip; <a href=\"http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/?p=195\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"_links":{"self":[{"href":"http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/index.php?rest_route=\/wp\/v2\/posts\/195"}],"collection":[{"href":"http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=195"}],"version-history":[{"count":1,"href":"http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/index.php?rest_route=\/wp\/v2\/posts\/195\/revisions"}],"predecessor-version":[{"id":3441,"href":"http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/index.php?rest_route=\/wp\/v2\/posts\/195\/revisions\/3441"}],"wp:attachment":[{"href":"http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=195"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=195"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=195"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}