This question has been answered by Bruno17. See the first response.
[[!GetTvRelated? &docs=`[[*prod_rel_id]]`]]
<p><a href="[[~[[+id]]]]">[[+pagetitle]]</a></p>
<?php /* GetTvRelated snippet */ $docs = $modx->getOption('docs', $scriptProperties, array()); $output = ''; if (! empty($docs)) { $docs = explode(',', $docs); foreach($docs as $doc) { $r = $modx->getObject('modResource', $doc); if ($r) { $output .= $modx->getChunk('DocTpl', $r->toArray()); } } } return $output;
I could be wrong, but I don't think there's any way to do that without a custom snippet because you have more than one ID in the TV.
If think this might do it (untested):
[[!GetTvRelated? &docs=`[[*prod_rel_id]]`]]
DocTpl Chunk:
<p><a href="[[~[[+id]]]]">[[+pagetitle]]</a></p>
GetTvRelated snippet:
<!--?php /* GetTvRelated snippet */ $docs = $modx--->getOption('docs', $scriptProperties, array()); $output = ''; if (! empty($docs)) { $docs = explode(',', $docs); foreach($docs as $doc) { $r = $modx->getObject('modResource', $doc); if ($r) { $output .= $modx->getChunk('DocTpl', $r->toArray()); } } } return $output;
to get exact tag-results from multi-select, see also this one
https://forums.modx.com/thread/82476/why-tagging-doesn-039-t-work-in-revo-and-how-to-solve-this?page=2#dis-post-494448
[[!pdoResources? &parents=`0` &includeTVs=`1` &prepareTVs=`1` &showHidden=`1` &where=`{"parent":"[[++news_id]]","id:IN":[ [[!+resource_ids]] ]}` &tpl=`el-items-news-homepage` &depth=`10` ]]