We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 24723
    • 19 Posts
    I have successfully set up TVTagCloud on my site, but I need to to display the values from a set of TVs, not just one. Some of these TVs are multi-select, others are single select so I’ve written a PHP script to concatenate them so that TVTagCloud can use them.

    Here is the tagmerge snippet:
    <?php
    $output = $region . "," . $countries;
    return $output;
    ?>


    My TvTagCloud call:
    [[TvTagCloud? &parent=`[*id*]` &landing=`30` &tvTags=`[!tagmerge? $region = '[*region*]` $countries = `[*countries*]`!]` &extenders=`tagging` &showCount=`0` &customDisplayChunk=`tagcloud` &tagDelim=`,` &displayType=`custom`]]


    However, what I’ve done doesn’t seem to work at all. Essentially, I just need to merge the values of $region and $countries so that they can be displayed together by the TvTagCloud call. Perhaps there’s a better way.

    Thanks for your help!
      • 36416
      • 589 Posts
      Quote from: RedOak at Nov 04, 2010, 04:08 PM

      However, what I’ve done doesn’t seem to work at all. Essentially, I just need to merge the values of $region and $countries so that they can be displayed together by the TvTagCloud call. Perhaps there’s a better way.

      You will probably need to change SQL query inside getTags function of the snippet to allow for multiple tags value fetching...