I thought someone might find this useful. I was tasked with making the tags for a video click through and run a search based on the individual tag.
In the "components\com_jvideodirect\views\play\tmpl\default.php", where the tags are output I changed
| Code: |
echo $this->v->tags;
|
to:
| Code: |
$tags_array = Array();
$tags = $this->v->tags;
$tags_array = explode(", ",$tags);
foreach($tags_array AS $tag){
print "<a href=\"".JURI::ROOT()."index.php?searchword=$tag&ordering=newest&searchphrase=any&limit=20&areas[0]=jVideoDirect&option=com_search\">$tag</a>, ";
}
|