Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-08-13 07:33:00

swati.miniyar
Member
Registered: 2007-08-06
Posts: 39

presentation

how to list sections with no of articles in it.

Offline

#2 2007-08-13 09:41:15

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: presentation

Please rephrase the question. It’s not really clear (to me at least) what you’re asking.
If possible, show us what you’ve tried to do (code example) and what you want it to do.

Offline

#3 2007-08-13 10:41:12

iblastoff
Plugin Author
From: Toronto
Registered: 2006-06-11
Posts: 1,197
Website

Re: presentation

i think he/she means something like displaying ‘Section Name (14)’. 14 being # of articles within that section name.

if thats the case, you can use something like mdn_count

Last edited by iblastoff (2007-08-13 10:51:32)

Offline

#4 2007-08-13 11:19:43

swati.miniyar
Member
Registered: 2007-08-06
Posts: 39

Re: presentation

actually i want to show some of the sections from my site with the no. of articles in it on a page.
i just want section listing..not section and their articles..
mdn_count will give count of articles in specified section..what to do for this?
<txp:section_list wont give article count in the section..
what to do for this?any help please?

Offline

#5 2007-08-13 12:03:57

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: presentation

You either have to list the sections manually (not using section_list) and use mdn_count to show the number of articles… or write a plugin to do this (which I recommend as this can be done with a single SQL query).

Offline

#6 2007-08-13 12:28:38

swati.miniyar
Member
Registered: 2007-08-06
Posts: 39

Re: presentation

thank u so much

Offline

Board footer

Powered by FluxBB