We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 42046
    • 436 Posts
    Make sure you're calling the TV with the correct method (*, +, or +tv.) in relation to the page it's being displayed on and the resource where the TV is coming from.
      • 41039 ☆ A M B ☆
      • 29 Posts
      Quote from: absent42 at Mar 23, 2013, 01:32 PM
      Make sure you're calling the TV with the correct method (*, +, or +tv.) in relation to the page it's being displayed on and the resource where the TV is coming from.

      Hi, Dan. Can you give me an example of differences in use? All my other TVs in the chunk use '*' but the one I'm using to output the URl is obviously not right. Here's my example chunk which is being included in multiple templates. It's the Privacy Policy, Accessibility and Terms of Service TVs that are not outputting on other pages. The copyright one works fine.

      <footer>
      		<nav>
      			<ul class="legal">
      				<li>[[*privacy_policy]]</li>
      				<li>[[*accessibility]]</li>
      				<li>[[*service_terms]]</li>
      			</ul>
      		</nav>
      				
      		<nav>
      			<ul class="site-info">
      				<li>Web design by <a href="#">Tom Ireland</a></li>
      				<li>© [[*copyright_year]]</li>
      				<li>FCWT is a Company Limited by Guarantee and recognised as a Scottish Charity (No SCO2987)<li>
      			</ul>
      		</nav>
      </footer>
        • 42046
        • 436 Posts
        An asterisk is used when calling a TV that is associated to the current resource. MODX will look to the current resource for the content of that TV.

        This thread goes through TV and resource relations: https://forums.modx.com/thread/79002/basic-tv-question-difference-between-plus-tv-name-and-asterisks-name
          • 41039 ☆ A M B ☆
          • 29 Posts
          I'll check, Dan, and let you know how I get on.

          Cheers

          Tom
          • discuss.answer
            • 41039 ☆ A M B ☆
            • 29 Posts
            Thanks for all the help guys. I ended up binding my TVs to a parent resource using @INHERIT, after much reading up. The TVs aren't as global as I thought they were so I've had to do it that way. The TVs allow my client to control certain things on the homepage without having to go into the code, so I'm going to use the parent resource as the "settings" page so to speak and form customisation to hide the TVs tabs.

            Thanks for all your help!