Other prerequisites
•A set of folders for the automated page make-up. See Creating article folders.
•Global variables as specified in Global variables for automated page make up.
•It would be useful for you to add the categories field to the search form. In that way you can use the form to display only the pages of the specific category. It exists in the default configuration for the AutoPag searchObjectUI and you can copy it from FRED4_CONFIG.XML version 2.5, or - if your custom configuration is different and you do not want to copy the entire for, then add this to your search form:
<attribute path="[page.cats]" op="In">
<ui>
<template kind="Tree" opMode="Hidden" />
</ui>
</attribute>