Search the site

This document describes some tools to use when moving templates and scripts form one web site to another. Note that these tools will not transfer field content.

The tools presented are:

  • Locate Updated Pages - /sys/tools/locateUpdatedPages
  • Synchronize Websites - /sys/tools/synchronizeWebsites

You can start them from the /sys/tools menu

Step 1 - Find updated and new documents

To quickly locate documents (templates, scriptlets, pages, etc) you have created or modified you can utilize /sys/tools/locateUpdatedPages. This tool will allow you to search a given branch, for example /websys/templates, for modified documents since a given date.

The result will be presented in a list where you can select the documents you wish to copy. Once selected you can either get a copy of the keys to your clipboard or you can copy the keys directly to step 2 by clicking the button "Synchronize".

Step 2 - Push code to external website(s)

You can access this tool directly at /sys/tools/synchronizeWebsites or you can initiate it from the tool described in step 1.

  1. Paste or select 1 or more document keys into the 1st text area.
  2. Enter one or more ScriptServer website URLs into the 2nd text area. Separated by line breaks, then click "Validate page selection".
  3. You will be presented by a list of all documents you selected in the previous step. At the bottom of this page you will have one box (iframe) for each website you intend to push your code to.
  4. If you have the same user name and password in each site, you can use the login form to authenticate yourself on all websites at once.
  5. Click "Engage" to send your code to each website.
  6. Each website will now present a list of the received documents. Each document will indicate if it was found on the site, either by path or key. If it was found by key and has a different path than the source it will suggest to rename and move it to retain the source path.
    If you wish to skip creation or updates, you can un check the Update and Create checkboxes.
  7. When the list has been reviewed, click "Perform Update!" to execute the changes according to your settings.

You will see a small log on the operation status. The tool will try to make script backups of all updated documents and will also try to remap template connections. If the script backup fails, the update will be applied anyway.




Published by: Henrik Weimenhög / scriptserver.com