Addition of New Pages on Site Sculptor
Your solution is not quite right.
The second page is indexed with a number starting with 1. The original page is not indexed with a number, but with a NULL. The SQL in the Webassist code that pulls up the page is looking for the highest indexed number, using "1" will pull up the second page. A more appropriate statement would be
in referring to the original page. However, this would potentially cause problems in the PHP code, so I use the backslash escape character to remedy this.
I have also noted that this scheme is not foolproof. Since pages based off of templates can be deleted, the numbering system may fail if your delete pages in a random order. For instance, if you have five pages, and delete pages two and three, I believe the Webassist code would create a page numbered six, because five exists. However, there would only be four pages showing, and there is no way to know from the administrative panel what number the page should be, since it is designed to replace, not increase the number of pages.