hy there, i'm new here and a beginner with MODx.
I have big trouble with a phx, TV's and YAMS.
My problem:
I have 3 File upload TV's called pdf_de, pdf_en. pdf_th.
The PDF's should be show, if TV pdf_de or pdf_en or pdf_th has a value, if not: show nothing.
My solution:
[*phx:if=`[[YAMS? &get=`data` &from=`pdf` &docid=`[*id*]`]]`:isnot=``:then=`yes`:else=`no`*]
Another solution with a snippet:
<?php
$tv_row = $modx->getTemplateVar('pdf');
if(!empty($tv_row['value'])) echo '<h2><a href="[[YAMS? &get=`data` &from=`pdf` &docid=`[*id*]`]]">PDF Download</a></h2>';
?>
but nothing happens.
Is there a solution for this?
-> Sorry for my bad english