Hi, I got my snippet works written in REVO,
but it still displays duplicate pagetitle I want to remove. it displays no duplication, check
http://computingchannel.co.id in the article to see the script working.
am definitely not a programmer, would love if anyone can contribute to modify the script better.
also attach the output, here we go:
1) My TV is:
[[*unique_tag]] --> Input Type: Auto-tag; Output Type: default;
2) I call my snippet in a template :
[[!getRelated? &unique_tag_arr=`[[*unique_tag]]`]]
3) The snippet: edited 15 Juli 2011 (still working till now)
<?php
$tag = explode(",", $unique_tag_arr);
$count_tag= count($tag)-1;
for ($i=0; $i<=$count_tag; $i++)
{
$filterParam='unique_tag==%'.$tag[$i].'%';
$pagetitleOutput = $modx->runSnippet( 'getResources', array(
'elementClass' => 'modSnippet',
'element' => 'getResources',
'tpl' => 'tpl.relatedAtom',
'limit' => '3',
'parents' => '8,10',
'includeContent' => '1',
'includeTVs' => '1',
'showHidden' => '0',
'hideContainers' => '1',
'cache' => '0',
'processTVs' => '1',
'tvFilters' => $filterParam
)
);
$final_output[]=$pagetitleOutput;
echo $final_output[$count_tag];
}