Blog Sections Open

Using Image TVs Correctly in Slider Markup

A very common template bug is to assume that an image TV stores only a file name, then prepend a hard-coded directory path in markup. If the TV already contains the final path, the result is broken output. Problem Patter

A very common template bug is to assume that an image TV stores only a file name, then prepend a hard-coded directory path in markup. If the TV already contains the final path, the result is broken output.

Problem Pattern

<img src="assets/images/project/[[*img1]]" />

When the TV already stores the full path, the correct output is simply:

<img src="[[*img1]]" />

Why This Matters

  • it prevents doubled paths
  • it keeps template logic simpler
  • it avoids breaking sliders and lightboxes when editors change storage conventions

Always inspect what the TV really stores before building URL logic around it.

Newer post

Running Shopkeeper with YAMS on a Three-Language Site

A practical overview of the extra care needed when Shopkeeper and YAMS are used together in a multilingual Evolution CMS store.

Older post

Fixing AjaxSearch 1.8.4 Version Mismatch Errors

How to troubleshoot the “Version number mismatch” error in AjaxSearch when templates and configuration files get out of sync.