Support
10-26-2002, 06:20 AM
<HTML> <HEAD> <TITLE>HOWTO: Create a Page Template</TITLE> </HEAD> <BODY> <h3>HOWTO: Create a Page Template</h3> <b>Document ID: IR04037</b> <hr> The information in this article applies to: <ul> <li>AutoPlay Media Studio 4.0</li> </ul> <hr> <h3>SUMMARY</h3> <p> This article explains how to create page templates using AutoPlay Media Studio 4.0. </p> <h3>DISCUSSION</h3> <p> Creating a page template for AutoPlay Media Studio 4.0 so that it is displayed in the <i>Page Template</i> dialog is an easy process that involves fives steps. The five steps are as follows: </p> <ol> <li> <p> <b>Create Your Page</b> </p> <p> The first step is to actually create the AutoPlay Media Studio 4.0 page that will be used as your page template. Create this page in the same manner that you would any other page. </p> </li> <li> <p> <b>Export Your Page</b> </p> <p> Once your page has been created you need to export it as a *.pg4 file. To do this select <b>Page | Export</b> from the menu to export your page, this will bring up a <i>Save as</i> dialog. In this dialog browse to the <code>...\AutoPlay Media Studio 4.0\Addins\Page Templates\</code> directory and press the <b>Create New Folder</b> button to create a new folder in this directory. For the rest of the article we will assume that you named your folder: "My_Page_Template", but you can name your folder anything that you want. Now export your AutoPlay page into the folder that you just created. In general you should use the same name you gave the folder when exporting your page. </p> </li> <li> <p> <b>Create an Icon</b> </p> <p> Create an icon for your page template that will represent it in the <b>Pages list</b> on the <i>Page Template</i> dialog. This is an optional step and is not necessary when creating a page template. If you do decide to create an icon save it in the same directory you exported your AutoPlay page to in step two. Save your icon using the same name as your exported page. (e.g. My_Page_Template.ico) </p> </li> <li> <p> <b>Create a Screenshot</b> </p> <p> Create a screen shot of your page when it is running. The easiest was to this is to preview your page in AutoPlay Media Studio 4.0 and then take a screenshot of it. Save this image your "page template" folder. Name your screen shot using the same name as your exported page. (e.g. My_Page_Template.jpg) </p> </li> <li> <p> <b>Create Your Page Template XML File</b> </p> <p> In order for AutoPlay Media Studio 4.0 to display your page template in the <i>Page Template</i> dialog, it needs to "know" about it. As a result you will have to create an XML file that will describe your page template to AutoPlay Media Studio 4.0. The easiest way to do this is to make a copy of the file <code>...\AutoPlay Media Studio 4.0\Addins\Page Templates\Blank.xml</code> and rename it using the same name as your exported page. So according to the above examples you would create a page named: <code>...\AutoPlay Media Studio 4.0\Addins\Page Templates\My_Page_Template.xml</code> </p> <p> Now you need to open your XML file and edit it so that it describes your page template. Here is an example of what contents of the <code>My_Page_Template.xml</code> file would look like: </p> <pre><code><b>< AMSPageTemplate ></b>
<br /> <b>< Name ></b>My Page Template<b>< /Name ></b>
<br /> <b>< Author ></b>Your Name Here<b>< /Author ></b>
<br /> <b>< Description ></b>This is a description of your Page Template<b>< /Description ></b>
<br /> <b>< IconFile ></b>My_Page_Template\My_Page_Template.ico<b>< /IconFile ></b>
<br /> <b>< Categories ></b>
<br /> <b>< InAllCategories ></b>0<b>< /InAllCategories ></b>
<br /> <b>< Category ></b>My_Page_Template<b>< /Category ></b>
<br /> <b>< /Categories ></b>
<br /> <b>< Resolutions ></b>
<br /> <b>< Resolution ></b>
<br /> <b>< Size ></b>630x425<b>< /Size ></b>
<br /> <b>< ImportFile ></b>My_Page_Template\My_Page_Template.pg4<b>< /ImportFile ></b>
<br /> <b>< PreviewImage ></b>My_Page_Template\My_Page_Template.jpg<b>< /PreviewImage ></b>
<br /> <b>< /Resolution ></b>
<br /> <b>< /Resolutions ></b>
<br /><b>< /AMSPageTemplate ></b></code></pre> <p> Most of the fields should be self-explanatory but there are a few that might be confusing. The <b>Size</b> tag in the <b>Resolution</b> tag is the size of your page template, usually either 630x425 or 790x545. </p> <p> The <b>InAllCategories</b> tag controls whether or not your page template will appear in all of the categories available on the <i>Page Template</i> dialog. 0 for no and 1 for yes. </p> <p> The <b>Category</b> tag simply defines the default category for your page template. This can be anything that you want but it is a good idea to create intelligent categories. (i.e. "Software Installers", or "Project Demos") </p> </li> </ol> <p> <b>Note: </b>Indigo Rose Software has a Template builder available for download: <A HREF="http://www.indigorose.com/ubbthreads/uploads/13502-TBuilder.exe" target="blank">http://www.indigorose.com/ubbthreads/uploads/13502-TBuilder.exe</a> </p> <p> KEYWORDS: AutoPlay Media Studio 4.0, Page Template </p> <hr> <FONT SIZE=1> Last reviewed: October 30, 2002<br> Copyright © 2002 <A HREF="http://www.indigorose.com" target="blank">Indigo Rose Corporation</a>. All rights reserved.<br> </FONT> </BODY> </HTML>
13502-TBuilder.exe (http://www.indigorose.com/ubbthreads/uploads/13502-TBuilder.exe)
<br /> <b>< Name ></b>My Page Template<b>< /Name ></b>
<br /> <b>< Author ></b>Your Name Here<b>< /Author ></b>
<br /> <b>< Description ></b>This is a description of your Page Template<b>< /Description ></b>
<br /> <b>< IconFile ></b>My_Page_Template\My_Page_Template.ico<b>< /IconFile ></b>
<br /> <b>< Categories ></b>
<br /> <b>< InAllCategories ></b>0<b>< /InAllCategories ></b>
<br /> <b>< Category ></b>My_Page_Template<b>< /Category ></b>
<br /> <b>< /Categories ></b>
<br /> <b>< Resolutions ></b>
<br /> <b>< Resolution ></b>
<br /> <b>< Size ></b>630x425<b>< /Size ></b>
<br /> <b>< ImportFile ></b>My_Page_Template\My_Page_Template.pg4<b>< /ImportFile ></b>
<br /> <b>< PreviewImage ></b>My_Page_Template\My_Page_Template.jpg<b>< /PreviewImage ></b>
<br /> <b>< /Resolution ></b>
<br /> <b>< /Resolutions ></b>
<br /><b>< /AMSPageTemplate ></b></code></pre> <p> Most of the fields should be self-explanatory but there are a few that might be confusing. The <b>Size</b> tag in the <b>Resolution</b> tag is the size of your page template, usually either 630x425 or 790x545. </p> <p> The <b>InAllCategories</b> tag controls whether or not your page template will appear in all of the categories available on the <i>Page Template</i> dialog. 0 for no and 1 for yes. </p> <p> The <b>Category</b> tag simply defines the default category for your page template. This can be anything that you want but it is a good idea to create intelligent categories. (i.e. "Software Installers", or "Project Demos") </p> </li> </ol> <p> <b>Note: </b>Indigo Rose Software has a Template builder available for download: <A HREF="http://www.indigorose.com/ubbthreads/uploads/13502-TBuilder.exe" target="blank">http://www.indigorose.com/ubbthreads/uploads/13502-TBuilder.exe</a> </p> <p> KEYWORDS: AutoPlay Media Studio 4.0, Page Template </p> <hr> <FONT SIZE=1> Last reviewed: October 30, 2002<br> Copyright © 2002 <A HREF="http://www.indigorose.com" target="blank">Indigo Rose Corporation</a>. All rights reserved.<br> </FONT> </BODY> </HTML>
13502-TBuilder.exe (http://www.indigorose.com/ubbthreads/uploads/13502-TBuilder.exe)