This is the quick and dirty solution!
This is the original NAV_LIST_UL of flip-flop that was incorporateed by OG but extended by
--> easily add the number of articles within a certain site structure level.
The script works exactly like NAV_LIST_UL. So, you can use it with the same prominent parameters, features as usual.
Example of the menu:
Company (4)
Products (37)
Staff (12)
On the other hand it needs its own quick'n-dirty replacement tag
NLU_FF_AC_QD
You're able to edit the output of the source code to your needs:
(12) or [12] or -12 or what
Just edit
// Article Count Wrapper
$acw_before = " <span>(";
$acw_after = ")</span>";
Usage:
- Code: Select all
{NLU_FF_AC_QD:F,5,,count_articles,active}
Parent lift
- Code: Select all
{NLU_FF_AC_QD:FP,4,2,count_articles,active}
Inline PHP
- Code: Select all
[PHP]
if(isset($GLOBALS['LEVEL_ID'][1])) {
$level_id = $GLOBALS['LEVEL_ID'][1];
echo '{NLU_FF_AC_QD:,'.$level_id.',1,count_articles,active}';
}
[/PHP]