umbraco / UmbPack

13 stars 13 forks source link

Feature Request: Export Templates into the package.xml file #60

Open LukeHartcher opened 3 years ago

LukeHartcher commented 3 years ago

We are creating a new Umbraco Package where we are deploying Templates that become part of the Umbraco website.

The syntax from the existing createdPackages.config file would suffice, e.g.

<templates>1102,1063,1060,1075,1088,1080,1107,1085</templates>

Then for each Template ID the template is exported into the package.xml file into the <Templates> section, e.g.

<Templates>
    <Template>
      <Name>My Template</Name>
      <Alias>MyTemplate</Alias>
      <Master>MyMasterTemplate</Master>
      <Design><![CDATA[@inherits Umbraco.Web.Mvc.UmbracoViewPage<ContentModels.MyTemplate>
@using ContentModels = Umbraco.Web.PublishedModels;
@{
    Layout = null;
}]]></Design>
    </Template>
</Templates>

It would be nice to be able to automate the package build process using UMBPACK but without this feature we are using the "Create Package" function within the Backoffice.