3
I wanted this also, and got the counter working, but can't figure out why I'm not passing it to the blocktemplate.
I added:
while($tcontent = $xoopsDB->fetchArray($result)) {
$link = array();
$link['id'] = $tcontent['storyid'];
$link['title'] = $myts->makeTboxData4Show($tcontent['title']);
[color=000099]$link['counter'] = $tcontent['counter'];[/color]
$block['links'][] = $link;
}
return $block;
to the tc_navigation.php file, and changed the /blocks/tc_nav_block.html in the DB like so...
<table cellspacing="0">
<tr>
<td id="mainmenu">
<{foreach item=link from=$block.links}>
<a class="menuMain" href="<{$xoops_url}>/modules/tinycontent/index.php?id=<{$link.id}>"><{$link.title}>a>[color=000099](<{$link.counter}>)[/color]
<{/foreach}>
td>
tr>
table>
but can not write the value into the template.
I know $link['counter'] is getting populated because I switched <{$link.id}> with <{$link.counter}> in the template and the URL links displayed the number of counts for each article, but whenever I try to send 3 items to the template it's no go.
Any ideas as to what I'm doing wrong here?