Image alt text
Open Settings → This site → SEO captions to configure separate template lists for Images and Slider images. The first template in each list is the default. Changes save automatically when every template in the list is valid. Each list starts with {ai(image)}.
In the image popover, designers can select a template, regenerate its result, or type alt text directly. For an image slide, open the popover from the corresponding row in Content.
| Template | Result |
|---|---|
{ai(image)} | A description of the image. |
{ai(image, body)} | A description informed by the article body. |
{h1}, illustration | The article heading with a literal suffix. |
{ai(image, caption)}. Photo {n} | A description informed by the slide caption, followed by its position. |
Use braces around a variable or one ai(...) call per template. The first AI argument is image. You can also pass body, h1, and, for slides, caption. Write {{ and }} to insert literal braces. A generated alt value can contain up to 512 characters. Use long body text as an AI argument.
bodyreads up to 20,000 characters of plain text from Text Widgets in the image’s breakpoint, including current editor edits.h1reads the first actual<h1>in the same breakpoint. Headings added by the host CMS outside the Verstka article are outside this template’s scope.captionreads the authored slide caption even when visible captions are turned off.nis the slide’s one-based position. Both variables are available for image slides.
When a template calls ai(...), Verstka sends Runware the image and the text arguments named in that call. Generation waits for referenced text to become available. After generation, changes to AI arguments require regeneration. Reordering slides updates the position using the saved AI description.
The resolved text is part of the published SSR HTML as the image’s alt attribute. Slides that reuse an image file can have different alt text. The client site consumes it through the standard publishing integration.