Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2012-11-30 09:07:32
- alivato
- Member
- Registered: 2011-03-31
- Posts: 151
[SOLVED] article_count
Hi!
Does anyone have a plugin mem_article_count
Put if it is not difficult.
I can’t find.
Offline
Re: [SOLVED] article_count
Hi
there is mdn_count which is very similar.
It seems that the available version is older to the one I have so here it is
YToxMDp7czo0OiJuYW1lIjtzOjk6Im1kbl9jb3VudCI7czo2OiJhdXRob3IiO3M6Mjc6Ik1hcmsgTm9ydG9uIC8gTWl0Y2hlbGwgQ2FpbiI7czoxMDoiYXV0aG9yX3VyaSI7czo0MToiaHR0cDovL2NvZGUuZ29vZ2xlLmNvbS9wL2VzcS10ZXh0cGF0dGVybi8iO3M6NzoidmVyc2lvbiI7czo1OiIyLjEuMSI7czoxMToiZGVzY3JpcHRpb24iO3M6NzU6IlByb3ZpZGVzIGEgY291bnQgb2YgdGhlIG51bWJlciBvZiBhcnRpY2xlcyBieSBzZWN0aW9uIG9yIGNhdGVnb3J5LCBvciBib3RoLiI7czo0OiJoZWxwIjtzOjEzMTE6IjxoMT5tZG5fY291bnQ8L2gxPgo8cD4mbHQ7dHhwOm1kbl9jb3VudCBzZWN0aW9uPSI8ZW0+c2VjdGlvbm5hbWU8L2VtPiIgY2F0ZWdvcnk9IjxlbT5jYXRlZ29yeW5hbWU8L2VtPiIgc3RhdHVzPSI8ZW0+MSwyLDMsNCw1PC9lbT4iIHRpbWU9IjxlbT5ub3cscGFzdCxmdXR1cmU8L2VtPiIgLyZndDs8L3A+CjxwPlVzaW5nIHRoZSB0YWcgd2l0aG91dCBhbnkgYXR0cmlidXRlcyB3aWxsIHJldHVybiBhIGNvdW50IG9mIGFsbCBhcnRpY2xlcyB0aGF0IGFyZSBib3RoIGxpdmUgYW5kIGN1cnJlbnQgKG5vdCBleHBpcmVkIG9yIGZ1dHVyZSkuIFNwZWNpZnlpbmcgYSA8c3Ryb25nPnNlY3Rpb248L3N0cm9u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+PSBFeHBpcmVzKSc7DQoJCQkJJGFuZG9yID0gJ29yJzsNCgkJCQlicmVhazsNCgkJCWNhc2UgJ2Z1dHVyZSc6DQoJCQkJJHFbXSA9ICRhbmRvci4nIChQb3N0ZWQgPj0gbm93KCkpJzsNCgkJCQkkYW5kb3IgPSAnb3InOw0KCQkJCWJyZWFrOw0KCQl9DQoJfQ0KCWlmICgkYW5kb3IgIT0gJ2FuZCAoJykgew0KCQkkcVtdID0gJyknOw0KCX0NCg0KCSRyID0gZ2V0Um93cyhqb2luKCcgJywgJHEpKTsNCglyZXR1cm4gJHJbMF1bJ2NvdW50J107DQp9IjtzOjQ6InR5cGUiO3M6MToiMCI7czo1OiJvcmRlciI7czoxOiI1IjtzOjM6Im1kNSI7czozMjoiNmI0ODM0NjdhMWFlYTc1YjMwZmQ4ODEyZWZlMGYwNWUiO30=
Last edited by colak (2012-11-30 09:21:24)
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
#3 2012-11-30 09:57:11
- alivato
- Member
- Registered: 2011-03-31
- Posts: 151
Re: [SOLVED] article_count
This is my side menu
<txp:section_list wraptag="ul" break="" include_default="1" default_title="Home" sort="sectionsort" exclude="svyaz" >
<li<txp:if_section name='<txp:section />'> class="active"</txp:if_section>>
<txp:section title="1" link="1" />
</li>
</txp:section_list>
How can I do this
Section – Quantity of articles in section
Section(5)
Offline
Re: [SOLVED] article_count
You could try:
<txp:section_list wraptag="ul" break="" include_default="1" default_title="Home" sort="sectionsort" exclude="svyaz" >
<li<txp:if_section name='<txp:section />'> class="active"</txp:if_section>>
<txp:section title="1" link="1" /> (<txp:mdn_count section='<txp:section />' />)
</li>
</txp:section_list>
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
#5 2012-11-30 10:09:52
- alivato
- Member
- Registered: 2011-03-31
- Posts: 151
Re: [SOLVED] article_count
Nice! thx Yiannis.
Offline
Pages: 1