had the same problem (when using a Resource List TV in MIGX, see thread
https://forums.modx.com/thread/?thread=79645&page=1 that tries to do this another way because of exactly this error =)... there I found (with the help of Bruno by the side =D) a solution using getResources in the Backend, the Wayfinder solution (which would be even nicer) I couldn't get to work... the solution does not change MIGX, but let's you control what is the output for a chosen Resource, so it doesn't just output the plain number of the resource ID but whatever you want, for example an
...an that was one solution to the
problem, the other is to instruct your users (that's what I did) to just drag and drop resources into a normal Text TV (which is now the base TV for
, no resourceListTV anymore...), this also generates a link like
which is then outputted correctly...
that's the actual (but not very nice) solution for me...before this I tried even a custom output modifier =P... that's how it looks/looked:
// makeUrl modifier, use like :makeUrl
// Custom output modifier to prevent errors bc of non integers in [[~ ]] tag...
$output = $input == '' ? $input : $modx->makeUrl((int)$input);
return $output;
[ed. note: exside last edited this post 13 years, 11 months ago.]