How to display [Page x/y]
Posted: Wed Oct 24, 2007 9:14 am
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 ?
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 ?