If you're upgrading from 3.x to the new version 4.0, take note of these changes to the way template files are managed:
The new method of how you should go about changing the search template is as follows:
It is recommended to start with a fresh new default search template from Version 4.0 and adapt that to the look of your 3.x template. This means you should index once to an empty directory, so that it creates the default template file for you to use as a reference. There have been some changes with new stylesheet classes defined, and more importantly for the JavaScript version, it now needs to link to different script (.js) files than before.
- The Indexer will no longer overwrite the “search_template.html” (or “search.html”) file in the output directory IF the file already exists.
- You should NOT modify “search_template_src.html” and “search_src.html” in the Zoom installation folder. You should now only need to modify the search template file in the OUTPUT directory (where the index files are written to).
The new method of how you should go about changing the search template is as follows:
- When you index a site for the first time, Zoom will create a copy of the default template in the output directory. The default templates are the “search_template_src.html” and “search_src.html” files (which you should no longer modify).
- Subsequent indexing sessions will NOT overwrite the search template in the output directory. This means that you can make your modifications to the search template file directly, and save your changes to the output directory.
- You no longer need to manage multiple “Custom search template paths” in the Advanced configuration tab. You simply have different search templates in different output folders.
- When a search template file is missing in the output directory, Zoom will create a copy of the default template there the next time it indexes. This means that, if you need to return to the default template at any point, you can delete or rename your template in the output directory, and re-index.
It is recommended to start with a fresh new default search template from Version 4.0 and adapt that to the look of your 3.x template. This means you should index once to an empty directory, so that it creates the default template file for you to use as a reference. There have been some changes with new stylesheet classes defined, and more importantly for the JavaScript version, it now needs to link to different script (.js) files than before.
Comment