Closed (fixed)
Project:
Smart Paging
Version:
7.x-1.8
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
3 May 2013 at 09:11 UTC
Updated:
14 Jun 2013 at 18:50 UTC
Dear all,
I want to change the display format from "title : page 2 0f 3" to " title (2/3) ". I want to create a module to use alter to overwrite the function "function theme_smart_paging_page_title_suffix($variable) " so that I can get I want. However, I don't know how to write the alter function....Could anyone help??
Also, if I want the first page also show the number like "title (1/3)", how could I do that??
Thank you all~~
Comments
Comment #1
kplee9c commentedComment #2
arpeggio commentedHi,
Yes, the theme_smart_paging_page_title_suffix() is the one that you need to override to change the the page title suffix. You can override that at your template.php (found at your theme folder) and you can add something like this:
Comment #3
kplee9c commentedThank you~ The code works perfect~
Comment #4
arpeggio commentedYou're welcome.