We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 18817 ☆ A M B ☆
    • 205 Posts
    I'm trying to add a single TV to an <a> element. Works fine in my wayfinder call; it outputs the value of user-input text. However, this ONE element won't display the TV. I've tried [[+TvName]] and [[*TvName]] - Friday brain fart...am I missing anything?

    Chunk Markup:
    <a href="[[~26]]" [[+ga_event]]>
      <li>SOLUTIONS OVERVIEW</li>
    </a>


    WF row tpl: (which works fine)
    <a href="[[+wf.link]]" title="[[+wf.title]]" [[+wf.attributes]] [[+ga_event]]>
    	<li[[+wf.id]]>[[+wf.linktext]]<span>[[+product_subheadline]]</span></li>
    </a>
    

    This question has been answered by mayhemchaos. See the first response.

      Sal Baldovinos
      SEO & DIGITAL MARKETING

      ARIEL DIGITAL | Maximize Your Potential
      www.arieldigitalmarketing.com
    • discuss.answer
      • 18817 ☆ A M B ☆
      • 205 Posts
      Had to write a snippet to get it work,

      Solution:

      <a href="[[~26]]" [[!getTVValue]] >
          <li>SOLUTIONS OVERVIEW</li>
      </a>


      Snippet:

      <?php
      $page = $modx->getObject('modResource', 26);
      return $page->getTVValue('ga_event');
        Sal Baldovinos
        SEO & DIGITAL MARKETING

        ARIEL DIGITAL | Maximize Your Potential
        www.arieldigitalmarketing.com
        • 50574
        • 70 Posts
        Does [[+tv.ga_event]] work?
          • 18817 ☆ A M B ☆
          • 205 Posts
          Quote from: cottoncreative at Aug 21, 2015, 04:46 PM
          Does [[+tv.ga_event]] work?

          Nope. The simple snippet does work, through.
            Sal Baldovinos
            SEO & DIGITAL MARKETING

            ARIEL DIGITAL | Maximize Your Potential
            www.arieldigitalmarketing.com