Hi php-zen heads,

I've been slaving away over a tag cloud module that I think everyone will like, but I'm having trouble getting it finished.

I need to create links for each word in the tag cloud. Up till now I have hard coded a link for testing. However this won't work if others want to used the code.

I know its possible to use the zen_href_link() function, but I can't find any good examples for my purpose.

Code:
$return .= '<a class="category-top" href="http://www.mysite.com/zen/index.php?main_page=index&cPath=';
                    $return .= $this->name_idst[$key+1]; // link for catagory
                    $return .= '">';
                    $return .= "<span class='word size{$sizeRange}'> &nbsp; {$word} &nbsp; </span></a>";
As you can see I've hard coded my demo site as a string for testing. While $this->name_idst[$key+1] is returning the key id from an array.

Does anyone have a neat solution for this? Or perhaps some references to examples or some documentation for the function.

Cheers,

Nathan