Re: How do you compile?
Originally posted by bhiers
What program goes to a .sbtp file?
These are the steps to accessing the SDK program. And just to add for the administrator of this forum, you need to add a link to the standard sitebuilder download and demo inside the login area. I searched your site again to try and find this link and could not. I did find it by searching my email and found that you sent me a link. Not sure what is so secret about it. Also, while I am at it, please add some info to your knowledge base with the keyword: "sbtp" This would help a lot of people right away.
May I even go further and ask that you provide some step by step instructions to various things like, how to access the SDK program, how to download an existing template and rebuild it for editing, etc.
Ok...
Go to this link to access the SWsoft Developer Network.
http://swdn.swsoft.com/
Click on Sitebuilder 4.0 SDK Available to access the documentation
AND/OR
Click on SWDN Downloads. link inside the paragraph to access the program needed to compile .sbtp files.
You will be asked to login, use your user name and password that you use to access the sitebuilder download area.
Click on the Download link to the right of Sitebuilder 4.0 SDK
-----
Once installed the program will become available by right clicking on a folder or files.
If a folder:
When you right click on the folder that contains the template files you are given the choice to Preview Sitebuilder Template.
This will open the program with some options to select the Color, Header and Menu "if you have setup more than one option."
Prior to launching the compilation process:
This is an example of one of my temp sites:
a1-TMP - Folder that contains the file tree (template folders/files)
Compile file - compile.sbtp
Inside the compile.sbtp file:
<?xml version="1.0" encoding="utf-8"?>
<templatePack name="a1-TMP" type="Windows">
<directory path="W:\Websites\SiteBuilder_Templates\1-Master Template LL\a1-TMP" />
</templatePack>
info.xml - File just inside the folder a1-TMP
Inside the info.xml file:
<?xml version="1.0"?>
<template id="a1-TMP" version="1.0" formatVersion="4" caption="Custom Builder" category="Construction">
<themes detachableHeader="header.jpg" default="site">
<theme id="site" caption="Main Site" />
</themes>
</template>
Note: where site is - the template color - like blue, The blue template option. I do not use options because I am custom building sites, therefore I am using - site.
Note: Name your templates something like a1-Namehere. This will load your created template at the front of the templates on the list inside your Plans area in Sitebuilder Control Panel.
Click on the Preview button to have the SDK program check for errors. If it does not find any, the Browser tab will load and the template will display - give it a few seconds.
Note: Sitebuilder has a number of preset pages which will give a Notice warning, this is just fine.
Right click on the compile.sbtp file and click Compile Template Pack, this is only done after you have tested and passed in the SDK preview program area.
This will create the compile.msi file.
Double click to install the template into sitebuilder.
If you have a server off site:
Upload through FTP. Go to your server and double click on this file to install the template pack (1 or more templates based on the info.xml file. You can add additional templates - see swsoft documentation.)
Note: At the moment the only and best way to remove a template is through the Add or Remove Programs in your computers control panel. You can delete the files from the template folder location, but every time you install the same template it will create another line in the Add or Remove Programs area.
**WARNING** Be very careful when deleting the templates from the control panel, DO NOT accidentally select the sitebuilder program as the template and sitebuilder lines have the same icons.
I have included a sample template as well as some ideas concerning buttons. Click here...
http://forum.swsoft.com/showthread.php?s=&threadid=47150
Also click here
http://forum.swsoft.com/showthread.php?s=&threadid=47048 for information on the file tree.