How to display [Page x/y]

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Locked
kooglox

How to display [Page x/y]

Post 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 ?
Last edited by kooglox on Wed Oct 24, 2007 9:25 am, edited 1 time in total.
Jack @ PharSide

Re: How to display [Page x/y]

Post 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.
Locked

Return to “Layout and Design (CSS & HTML)”