July 21, 2006

NetPublish Templates

You will find other articles relevant to this document in these sections:
Cameron Manderson @ 3:02 pm

When working with NetPublish Assitant from Portfolio, you can create your own site and modify the base templates, to change general layout etc.

From inside Portfolio,

  1. Go to the Netpublish Assistant by going to Catalog -> NetPublish…
  2. Right click on a base template that you wish to modify and hit “Duplicate Site”
  3. Enter the name for your new set of templates

Once you have done this you will be able to modify NPT (NetPublish Template files) that generate your NP (NetPublish) files. The duplicated source is located by default in your “My Documents\Extensis\Portfolio\NetPublish\User Data\sites\web”, containing only the NPT files and resources to build your NP site.

The NetPublish assistant looks to the NPT files to generate the NP files. NPT uses start and end tags [[ and ]] and substitutes options obtains from the NetPublish assistance, such as site location etc.

NP files use Server Side JavaScript (SSJS) to generate your source. You can not view the site.np source as it has been compiled and is proprietory, so you must work with what you are given. Parts of the SSJS are indicated by the template start and end tags < % and %>.

Providing alternate CSS options

To provide alternate CSS options for your template, simply duplicate the CSS located in the “style sheets” folder in your template NPT source folder. These CSS options are included into the drop down when working inside the NEtPublish Assistant.

Creating additional page template options

NetPublish assistant provides a series of pages with customisations. By default there are options for:

  • Collection
  • DetailsWeb
  • Results
  • Search

Inside each of these folders is the various different options that are presented to the user when using the NetPublish assistant. You simply need to duplicate a subfolder and rename it to something appropriate. You can then make your necessary changes to the NPT files inside these subfolders.

Each page template option defines a Page.xml which allows you to change the information that is read in when the NetPublish assistant looks at the template. You can change the naming of your template inside this file to something more appropriate, and also modify the thumbnail previous and various default options associated with the NetPublish assistance screens.

Default Template Configuration

All the default template options are created in the top level for your NPT source in a file called Site.xml. This file allows you to change the name and description and also modify the default selected options when using the NetPublish assistant.

Share and Enjoy:These icons link to social bookmarking sites where readers can share and discover new web pages.
  • del.icio.us
  • digg
  • Furl
  • Reddit
  • YahooMyWeb

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a comment