locked
Creating item templates allowing separate code file and masterpage selecions RRS feed

  • Question

  • Hello,

    I am trying to create a custom item template in Visual Studio that has the checkboxes for separate code file and master page.

    Can someone explain how I would go about doing that.

    Tom


    Thomas G Magaro

    Monday, April 30, 2012 11:22 PM

Answers

  • Hi Tom,

    You can try to use the item wizard, then put the checkbox to this wizard, when you enable the checkbox will generate specified file, and if disable this checkbox , it will not generate specified file.

    Please take a look at this article which tells about how to create an item template :

    http://msdn.microsoft.com/en-us/library/7k3w6w59.aspx

    Reference:

    How to: Create Multi-file Item Templates:

    http://msdn.microsoft.com/en-us/library/ms247115.aspx


    Lucy Liu [MSFT]
    MSDN Community Support | Feedback to us

    • Marked as answer by lucy-liu Monday, May 7, 2012 8:43 AM
    Thursday, May 3, 2012 8:35 AM

All replies

  • Correction.

    I need to have the checkboxes enabled


    Thomas G Magaro

    Monday, April 30, 2012 11:23 PM
  • Wednesday, May 2, 2012 7:26 AM
  • Hi Tom,

    You can try to use the item wizard, then put the checkbox to this wizard, when you enable the checkbox will generate specified file, and if disable this checkbox , it will not generate specified file.

    Please take a look at this article which tells about how to create an item template :

    http://msdn.microsoft.com/en-us/library/7k3w6w59.aspx

    Reference:

    How to: Create Multi-file Item Templates:

    http://msdn.microsoft.com/en-us/library/ms247115.aspx


    Lucy Liu [MSFT]
    MSDN Community Support | Feedback to us

    • Marked as answer by lucy-liu Monday, May 7, 2012 8:43 AM
    Thursday, May 3, 2012 8:35 AM
  • Hi Tom,
    I temporary make my last reply as answer. You can unmark it if they provide no help.

    Thank you for your understanding!


    Lucy Liu [MSFT]
    MSDN Community Support | Feedback to us

    Monday, May 7, 2012 8:43 AM