We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 16702 ☆ A M B ☆
    • 536 Posts
    Hello,

    modx version: 1.0.4
    PHP Version: 5.2.5
    Database Version: 4.1.22-log

    i have TV:
    Default Value: @FILE template/template.html

    and when i call TV i get...nothing - 0

    if anybody have some ideas please help smiley
      palma non sine pulvere
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      That’s a relative path; relative to what?
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 16702 ☆ A M B ☆
        • 536 Posts
        with the following scenario:

        1. i have template in this template i call TV:
        [*template*]

        2. in TV template i call my static HTML
        @FILE template/template.html

        /that is easy way to use my html editor with remote open/
        thousand times I’ve used...but today is not work and i thing is it from hosting is old and shi* hosting provider...


          palma non sine pulvere
          • 28042 ☆ A M B ☆
          • 24,524 Posts
          Your TV name may be a problem; as [*template*] is a resource variable taken from the site_content table. It returns the ID of the template the resource is using.
            Studying MODX in the desert - http://sottwell.com
            Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
            Join the Slack Community - http://modx.org
            • 16702 ☆ A M B ☆
            • 536 Posts
            Quote from: sottwell at Jul 14, 2010, 06:26 AM

            Your TV name may be a problem; as [*template*] is a resource variable taken from the site_content table. It returns the ID of the template the resource is using.

            holy god...absolutely correct!
            //it`s work, when i change the name
              palma non sine pulvere
              • 28042 ☆ A M B ☆
              • 24,524 Posts
              Are you using a select or radio type TV? That would make it a lot easier to choose your template...

              In the Input Option Values
              Complimentary==@FILE assets/templates/complimentary/main.html||Treeline==@FILE assets/templates/treeline/main.html
                Studying MODX in the desert - http://sottwell.com
                Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                Join the Slack Community - http://modx.org
                • 16702 ☆ A M B ☆
                • 536 Posts
                Quote from: sottwell at Jul 14, 2010, 07:04 AM

                Are you using a select or radio type TV? That would make it a lot easier to choose your template...

                In the Input Option Values
                Complimentary==@FILE assets/templates/complimentary/main.html||Treeline==@FILE assets/templates/treeline/main.html


                nope, is for default and i hide this fields with managermanager - just for me smiley

                one more time - thanks smiley
                  palma non sine pulvere