Skip to main content

Checkup Documentation

Ad-hoc page templates

cms-pagetemplate-adhoc-templates

severity-low

Summary

Ad-hoc templates (portal mode sites only) are non-reusable templates intended for temporary use. Having templates that are not reusable can cause duplication of efforts, clutter, and possibly performance concerns. Generally, ad-hoc templates should be reviewed and either moved to a regular page template or deleted.

Besides being non-reusable, ad-hoc templates have another limitation in that they are directly tied to the page they are created on. That means that, if that page gets deleted, so does the ad-hoc template. For these reasons best practice is to make all templates permanent resuable templates. This applies to even one-off pages who's templates will never be reused such as your home page or 404 page.


Check Logic

Constant Care for Kentico will ensure the number of ad-hoc templates is no more than 0 (default)

You can manage your settings for this checkup in the Constant Care for Kentico admin settings.


Verifying The Check

To determine what templates on your site are Ad-hoc you can navigate to the Page Templates Application.

page-templates-1.png

Kentico Xperience will automatically put Ad-hoc templates into the Ad-hoc template category.

Another indicator is the No value in the Is reusable column when viewing all templates. We recommend not using Ad-hoc templates except as temporary tools during development.

Changes to your site should only be made by an experienced Kentico Xperience developer. If you need assistance in making these changes please reach out to the Toolkit For Kentico team to be connected with a Kentico Xperience partner.