Can I nest NP sites?


<< Can users share collectio ...
Back to Portfolio FAQ index
Template Master Sets (NPT ... >>

Note: this isn't a technique most users will ever need to use, but it may help those who'd like to segment sub-sets sites within a single NP server. If you are publishing to an NP server, for which you aren't the admin, always get express permission from the NP admin before trying the technique as by nesting sites you may fall foul of other aspects of the server set up.

Although not documented, this seems to be possible and to have no ill effects on NP function. So what does 'nesting' mean? Normally you might have URLs to three sites ('alpha', 'beta', 'gamma') like this:
   .../res/sites/alpha/index.html
   .../res/sites/beta/index.html
   .../res/sites/gamma/index.html

Nesting allows site URLs like this:
   .../res/sites/home/alpha/index.html
   .../res/sites/home/customers/beta/index.html
   .../res/sites/home/customers/gamma/index.html

Now all 3 sites share a common root, e.g. www.example.com/home/, that might be the site of a common login page to an (non-NP) login database controlling access to the sites.

The technique to achieving this nesting is the way the 'sub-folder' value is set on the Publish pane of NP Assistant. This is the value you enter in the box just under the list of defined NP servers. In the first set of examples above, a value of 'gamma' would be used for the third site. In the second set of examples, you would enter 'home/customers/gamma'.

There is one limitation - you can't nest a site inside a folder holding an existing site. Thus:
   .../res/sites/home/alpha/index.html
   .../res/sites/home/alpha/beta/index.html <-- this will cause an error when publishing
...by the same token, don't publish to a sub-folder that is a parent of a nested site as you'll likely get a range of unwanted results as NP will get confused as to what is a live site.

Keywords (to assist indexing/searching):



Question: Can I nest NP sites? [FAQ00400.htm]
Last Update:- 18 November 2007


<< Can users share collectio ...
Back to Portfolio FAQ index
Template Master Sets (NPT ... >>

Quick Search of PortfolioFAQ (word, words or phase): or try the Advanced Search

User-to-User Forums  |  Report error/typo/broken link  |  Request new topic  |  Ask a question

Site and articles © Mark Anderson 2001-2007 - Visit my home page


This FAQ is created and maintained using
Friday logo
Friday - The Automatic FAQ Maker