-
☆ 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>
Sal Baldovinos
SEO & DIGITAL MARKETING
ARIEL DIGITAL | Maximize Your Potential
www.arieldigitalmarketing.com
discuss.answer
-
☆ 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
Does [[+tv.ga_event]] work?
-
☆ A M B ☆
- 205 Posts
Quote from: cottoncreative at Aug 21, 2015, 04:46 PMDoes [[+tv.ga_event]] work?
Nope. The simple snippet does work, through.
Sal Baldovinos
SEO & DIGITAL MARKETING
ARIEL DIGITAL | Maximize Your Potential
www.arieldigitalmarketing.com