Answer the question
In order to leave comments, you need to log in
How to make a TV field a link in your snippet?
Hello . When calling my snippet, I need to make the output of the TV field a link.
snippet code
<?php
$url = $modx->makeUrl($parent);
$resource = $modx->getObject('modResource', $parent);
$ankor_filter = $resource->getTVValue('ankor_filter');
//var_dump ($url);
if (empty($ankor_filter))
print_r($ankor_filter);
return $ankor_filter;
//var_dump($parent);
Answer the question
In order to leave comments, you need to log in
Author, have a conscience and at least sometimes go to classes!
Here you have a number search procedure, but you never call it!
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question