I'm running ModX on a Just Host account and getting weird behavior out of the template variable.
In my home page template, I have this code:
<a href="[[*ad_url]]" [[*ad_target]]><img src="[[*ad_image]]" alt="[[*ad_title]]" width="470" height="380" /></a>
- ad_url - URL Input type
- ad_target - Radio button type (target="_blank" or ""{empty})
- ad_image - Image type
- ad_title - text type
All were left with default output type.
Now, I have a slider that is loaded through getResources that works fine for grabbing Template Variables via chunk. I also made a snippet with the following:
echo $modx->resource->getTVValue(6);//ad_image
And this works fine and pulls the value. But for any TV's like the first code that are inserted directly into the template, these don't render any output. The TV's always appear blank content-wise. I have tried removing cache by using [[!* instead of [[* but there was no change.
Any assistance would be appreciated.
Background
- MySQL: 5.1.63-community-log
- PHP: 5.2.17
- Apache: 2.2.22
- 2.2.4 pl Advanced Installation (moved core below public_html and renamed connector/manager)
[ed. note: robertr last edited this post 11 years, 9 months ago.]