Page 1 of 1

How to display [Page x/y]

Posted: Wed Oct 24, 2007 9:14 am
by kooglox
Hello,

My CMS Website sitemap is like this :
# Section 1
# Section 2
# Section 3 (link to Section 3.1)
    * Section 3.1
    * Section 3.2
    * Section 3.3
    * Section 3.4 ...
# Section 4 ...

I don't display Sections 3.1, 3.2, 3.3, 3.4 in my menu.
When I click on section 3 in the menu, Page 3.1 is diplayed.

I want to display the number of page in Section 3 (in this case, 4) on page 3.1, 3.2, 3.3, 3.4 in order to display something like [Page x/y]
for exemple in this case :
On page 3.1 => [Page 1/4]
On page 3.2 => [Page 2/4]
On page 3.3 => [Page 3/4]
On page 3.4 => [Page 4/4]

I tried to diplay {$count} but it return the number of pages of the entire website.

Is anyone can tell me how to do this ?

Re: How to display [Page x/y]

Posted: Wed Oct 24, 2007 2:21 pm
by Jack @ PharSide
Did you try limiting via the tag. You can limit how many levels show within the tag.

{global_content number_of_levels='2'}

Try that - it might handle it for you.