Hi Ben

Maybe you want to check the Repository Specs. The Repository has two methods to get the properties of the repository. I remember one method getting a list of properties and then you iterate through each property and get the values. And one of these properties was the amount of nodes. However, I do not remember anymore, would have to look-up again. Sorry for that.

But there is a property returning the amount of nodes.

Cheers
/giancarlo

On Jul 3, 2007, at 12:21 PM, Ben Brock wrote:

Thanks everyone. Sean's example worked great.

It might be worth adding the means to find the total via a database
query to the Wiki page if you know the statement, Gregory.




Ben Brock

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED]
Sent: 03 July 2007 18:07
To: [email protected]
Subject: Re: [magnolia-user] How to get total number of pages

We wrote a little JSP script to recurse though the site and compile this
data for us. Details are here:

http://www.magnolia.info/wiki/Wiki.jsp?page=CountingPages

Hope that helps!

Sean


On 7/3/07 11:00 AM, "Ben Brock" <[email protected]> wrote:

Thanks for the reply, Niko.

I'd be happy with either the number of activated pages or the number
of visible pages.

I did a search within Magnolia Central and no totals are displayed. I
do not have search implemented on my site.

How can I programmatically get the total number of pages?




Ben Brock

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED]
Sent: 03 July 2007 00:48
To: [email protected]
Subject: Re: [magnolia-user] How to get total number of pages

Hi Ben,

Did you mean the number of activated pages ? the number of visible
pages ?

I would say the best way would be to execute a search on the
repository.

Niko,

On Jul 3, 2007, at 3:58 AM, Ben Brock wrote:

What's the easiest way for me to retrieve the total number of pages
on

our site?




Ben Brock

----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/docs/en/editor/stayupdated.html
----------------------------------------------------------------


----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/docs/en/editor/stayupdated.html
----------------------------------------------------------------

----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/docs/en/editor/stayupdated.html
----------------------------------------------------------------


----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/docs/en/editor/stayupdated.html
----------------------------------------------------------------

----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/docs/en/editor/stayupdated.html
----------------------------------------------------------------



----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/docs/en/editor/stayupdated.html
----------------------------------------------------------------

Reply via email to