[SOLVED] make page navigation bar only show in case of more then 1 page

unoxx

Joined: 2006-08-14
Posts: 13
Posted: Thu, 2006-08-24 08:39

I'm editing the Matrix theme and like to have the page navigation bar only to show in case there are multiple pages. Now at the the top level I have 5 albums on one page with no need for the page navigation but I do need it for the sub albums. Anyway to make a calculation to make it hide in case of only 1 page?

 
robert070612

Joined: 2003-08-05
Posts: 565
Posted: Mon, 2006-09-04 15:45

unoxx----

{* Navigator *}
{if $theme.totalPages > 1}
  {g->block type="core.Navigator" navigator=$theme.navigator prefix="« " 
    suffix=" »" currentPage=$theme.currentPage totalPages=$theme.totalPages}
{/if}

----best wishes, Robert

 
unoxx

Joined: 2006-08-14
Posts: 13
Posted: Mon, 2006-09-04 16:35

thanks Robert, in what file does this code belong? Before I do anything stupid...

 
robert070612

Joined: 2003-08-05
Posts: 565
Posted: Mon, 2006-09-04 17:03

/yourtheme/templates/local/album.tpl

 
unoxx

Joined: 2006-08-14
Posts: 13
Posted: Mon, 2006-09-04 18:17

Thanks again. Works!

 
robert070612

Joined: 2003-08-05
Posts: 565
Posted: Mon, 2006-09-04 18:31

unoxx----
Good;~) Now use your edit rights (it is your thread)
to amend the first post's subject to read...

[SOLVED] make page navigation bar only show in case of more then 1 page

...to help others find working solutions.
----best wishes, Robert