Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#13 2018-03-04 12:14:56
- Gallex
- Member
- Registered: 2006-10-08
- Posts: 1,308
Re: simple plugin for counting articles
colak wrote #309609:
Hi Gallex
The edited version below works on one of my txp 4.6.2 sites
can’t figure out anymore, where i should insert the <txp:mdn_count />
in my section list code:
<txp:section_list break="" default_title="Home" include_default="0" sections="houses,apartments,farms" wraptag="ul" class="sub">
<li<txp:if_section name='<txp:section />'> class="active"</txp:if_section>><txp:section link="1" title="1" /></li>
</txp:section_list>
to achieve this:
- houses (5)
- apartments (12)
- farms (4)
Offline
Re: simple plugin for counting articles
Right after the sections? I don’t know mdn_count
, though:
<txp:section_list break="" default_title="Home" include_default="0" sections="houses,apartments,farms" wraptag="ul" class="sub">
<li<txp:if_section name='<txp:section />'> class="active"</txp:if_section>><txp:section link="1" title="1" /> (<txp:mdn_count section='<txp:section />' />)</li>
</txp:section_list>
Offline
#15 2018-03-04 12:51:29
- Gallex
- Member
- Registered: 2006-10-08
- Posts: 1,308
Re: simple plugin for counting articles
etc wrote #309637:
Right after the sections? I don’t know
mdn_count
, though:
<txp:section_list break="" default_title="Home" include_default="0" sections="houses,apartments,farms" wraptag="ul" class="sub">...
yep, thank you!
Offline