Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Customizing Page Number Display  (Read 2315 times)

0 Members and 1 Guest are viewing this topic.

Beyond_Doubt

  • Coppermine newbie
  • Offline Offline
  • Posts: 18
Customizing Page Number Display
« on: May 06, 2006, 12:41:49 am »

Hi,

I have tried a number of different edits to try to get the Page numbers that normally appear at the bottom right of the page (over from 'X albums on X pages) to also be shown in the upper right (over from Home > category) but to no success.

Could someone please enlighten me on what part of the above code (presumable the <--Begin Tabs--> section) has to be copied to where to achieve this.


Thanks in advance :)

edit [by Paver]: This was originally posted in response to this solved thread and refers to the code there.
« Last Edit: May 06, 2006, 12:56:02 am by Paver »
Logged

Paver

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1609
  • Paul V.
Re: Customizing Page Number Display
« Reply #1 on: May 06, 2006, 01:27:18 am »

That's a bit difficult.  You're asking about two different elements.  The page tabs on the lower right of each category are part of $template_album_list and theme_display_album_list().  The "Home > Category" link is in $template_breadcrumb and theme_display_breadcrumb().  You'd have to render the tabs in the breadcrumb function which would be a little difficult because you need to know the current page, the total pages, and so on which is currently not passed to the breadcrumb function.

My guess is the best way to do this is through a plugin that handles the passing of this data.

A theme-only way to do something similar would be to move the page number tabs to the top of $template_album_list and evaluate it appropriately in theme_display_album_list().  In other words, just move the tabs within the same table.  Or you might be able to disable the breadcrumb and then recreate the breadcrumb in theme_display_album_list() so it's actually part of the same function even though you could put it into a separate table which makes it look like it is now but with the data in one place.
Logged
Pages: [1]   Go Up
 

Page created in 0.014 seconds with 15 queries.