Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
Before you start: Yes, you can display a counter, but if you want to update the data via a push server, you need to slightly modify the menu template.
And by counters, I understand the standard mechanism using the API: CUserCounter (b_user_counter table)
To display a number, you need to do the following: when describing the menu (.left.menu.php), you need to add the counter_num parameter to the 3rd parameter of the item.
Array(
'Test menu',
"/test",
Array(),
Array(
'counter_num' => 7,
),
""
),
Array(
'Test menu',
"/test",
Array(),
Array(
"counter_id" => "test-counter-menu",
'counter_num' => 7,
),
""
),
$items[] = $newItem;
if ( isset($item["PARAMS"]["counter_id"]) )
{
$newItem['COUNTER_ID'] = $item["PARAMS"]["counter_id"];
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question