modxcms / fred

The friendly front-end editor for visual, drag-and-drop content building in MODX CMS
https://fred.modx.com
MIT License
59 stars 25 forks source link

Placeholder {{template.theme_dir}} does not render correctly in preview mode. #372

Closed muzzwood closed 4 years ago

muzzwood commented 4 years ago

{{template.theme_dir}} works correctly when Fred is enabled in edit mode, and the correct URI is displayed when Fred is disabled.

However, when Fred is enabled and you go into preview mode (the eye icon), the placeholder does not render correctly and thus images using it don't show.

Looking at the inspector, it shows it is rendered as: [[++fred.theme.blog.theme_dir]] (My theme dir in this case is "blog")

So the raw MODX tag is coming through when in preview mode.