Robots.txt

Since Sitevision 2023.03.1. The SEO settings of a Site allows for custom additions to the robots.txt. The settings also contains a checkbox that enables such additions to be treated dynamically, i.e. evaluated by Velocity. When treated dynamically, there are three objects available on the Velocity context.

Elements available in the Velocity Context

Name

Type and description

jcrSession

javax.jcr.Session


The JCR Session

request

javax.servlet.http.HttpServletRequest


The portlet request

sitevisionUtils

senselogic.sitevision.api.Utils


The main entry point to all utility classes