We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 40462
    • 9 Posts
    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.]
      • 40462
      • 9 Posts
      Just a little bit more information. I've found the issue is that whenever I go to save the resource being edited, it does not save any of the changes made to the page.

      Tried changing pagetitle to Home2 (from Home) and adding a longtitle & introtext, press save, and then reload the editor and the changes don't take hold. It was working correctly previously as I was working on it over the weekend.