开发者

Template Variables do not update from default values

开发者 https://www.devze.com 2023-03-30 02:05 出处:网络
I\'m new to ModX, but I have created a Template Variable (TV) for an Image ( image-1 ) . Then I set a def开发者_运维百科ault value, and assign the TV to my Home_Template, click save.

I'm new to ModX, but I have created a Template Variable (TV) for an Image ( image-1 ) .

Then I set a def开发者_运维百科ault value, and assign the TV to my Home_Template, click save.

Create some simple html in that template:

<li>[*image-1*]</li>

As expected, the template variable is available on this screen. So I select the image I want to display, and save. It appears in the preview for this template screen, but not on the actual website.

Any ideas?


check your caching settings ~ probably best to turn off caching completely during development.

also try calling your snippets & variables as 'uncached' ex:

[!*image*] 

this looks like evolution code, best to switch to revolution if at all possible.

-sean

0

精彩评论

暂无评论...
验证码 换一张
取 消