Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#73 2010-11-11 05:44:46

ax
Plugin Author
From: Germany
Registered: 2009-08-19
Posts: 165

Re: mdn_count

Would be nice, if it could count files, links, and images in the same way as it counts articles.

Last edited by ax (2010-11-11 05:46:12)

Offline

#74 2010-11-18 05:56:19

radneck
Plugin Author
Registered: 2005-07-03
Posts: 109

Re: mdn_count

ax wrote:

Would be nice, if it could count files, links, and images in the same way as it counts articles.

That’s a little out of plugin scope sorry. If you have a look at the plugin code, you may be able to do it yourself – a bit of MySQL is all that’s needed.

Last edited by radneck (2011-02-27 05:32:08)

Offline

#75 2010-11-26 15:45:30

geoff777
Plugin Author
From: Benarrabá Andalucía Spain
Registered: 2008-02-19
Posts: 282
Website

Re: mdn_count

Hi does this plugin support multiple sections?

ie section=“section1,section2,….,section99” ?

Thanks


There are 10 types of people in the world: those who understand binary, and those who don’t.

Offline

#76 2010-11-27 04:04:49

radneck
Plugin Author
Registered: 2005-07-03
Posts: 109

Re: mdn_count

geoff777 wrote:

Hi does this plugin support multiple sections?

Hi Geoff,

It certainly does. Just put them all in separated by commas (as you have above), and it should be right to roll :)

Last edited by radneck (2010-11-27 04:06:33)

Offline

#77 2010-11-27 09:16:04

geoff777
Plugin Author
From: Benarrabá Andalucía Spain
Registered: 2008-02-19
Posts: 282
Website

Re: mdn_count

Hi thanks for the quick reply.

I’ll install it and give it a try.

Any chance of adding custom fields … ?


There are 10 types of people in the world: those who understand binary, and those who don’t.

Offline

#78 2010-11-27 13:48:43

radneck
Plugin Author
Registered: 2005-07-03
Posts: 109

Re: mdn_count

geoff777 wrote:

Any chance of adding custom fields … ?

Care to elaborate what you mean? Count custom fields that have names? Or additional custom fields added by plugins?

Last edited by radneck (2011-02-27 05:32:26)

Offline

#79 2010-11-29 20:11:12

geoff777
Plugin Author
From: Benarrabá Andalucía Spain
Registered: 2008-02-19
Posts: 282
Website

Re: mdn_count

To the count filter … count where section=“x” category1 =“y” and custom_field1=“z”

I use a custom_field name=“frontpage” that is either yes/no I’d like to be able to count all my “frontpage” articles.

Thanks
Geoff

Last edited by geoff777 (2010-11-29 20:12:13)


There are 10 types of people in the world: those who understand binary, and those who don’t.

Offline

#80 2010-11-30 00:57:57

radneck
Plugin Author
Registered: 2005-07-03
Posts: 109

Re: mdn_count

Okay I see what you mean, similar to customfieldname. This is a pretty specific scenario, but I think it could be done with a couple of generic attributes, filterfield and filtervalue. That way you could use if for custom fields, and other users could use if for any other column in the table.

OK, I’ll add it to the list :)

Last edited by radneck (2015-11-04 07:42:09)

Offline

#81 2010-11-30 11:08:58

geoff777
Plugin Author
From: Benarrabá Andalucía Spain
Registered: 2008-02-19
Posts: 282
Website

Re: mdn_count

Hi Mitch,

Yes, I guess if you could build in as many attributes from article_custom as you can find time to …

Thanks for making this …

Geoff


There are 10 types of people in the world: those who understand binary, and those who don’t.

Offline

#82 2011-07-25 17:48:06

progre55
Member
Registered: 2006-05-02
Posts: 668

Re: mdn_count

geoff777

Just wanted to send a quick thanks for updating the plug in. I have been using the old version for awhile but needed to have it count multiple section. Old version could not do this, but your new version does.

Thanks again.

progre55

Offline

#83 2011-07-26 03:52:29

radneck
Plugin Author
Registered: 2005-07-03
Posts: 109

Re: mdn_count

No problem, glad it helped.
I’ve been meaning to update this plugin as per geoff777’s request above, but haven’t got round to it.

Hopefully I’ll get some time this weekend.

Last edited by radneck (2015-11-04 07:39:30)

Offline

#84 2012-04-07 07:23:54

Gallex
Member
Registered: 2006-10-08
Posts: 1,308

Re: mdn_count

is it possible to integrate this plugin into code below?

<txp:section_list break="" default_title="Home" include_default="1" sections="houses,farms,apartments,lands,commercial-real-estate,rent" 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>

what you think?

the default usage of a plugin:

<txp:mdn_count [section="sectionname"] />

or maybe you know better solution for counting articles per sections?

Last edited by Gallex (2012-04-07 07:26:16)

Offline

Board footer

Powered by FluxBB