Pages

Started by bakusiovskyyyy, January 18, 2016, 10:31:41 AM

Previous topic - Next topic

bakusiovskyyyy

: Hello, I'm trying to modify a theme and I have a problem with finding where's the code responsible for pages in topics and boards such as this:
QuotePages: 1 ... 16 17 [18] 19   Go Up

I want to be able to modify this and for example remove "Go up" part and only keep the numbers. Any ideas? Default theme

d3vcho

This section is located in your Display.Template.php

Just search "pagelinks floatleft" with your code editor and you'll be able to modify it as you like
"Greeting Death as an old friend, they departed this life as equals"

bakusiovskyyyy

Is there any way to make some deeper customisation of the formatting? Is there a function that generates the formatting of them and loads them into $context['page_index']. I would like to change strong and a tags into something else

Adrek

Look for function constructPageIndex in ./Sources/Subs.php, you can change HTML for pagination there.

Go up and Go down buttons can be changed in file Display.template.php as mentioned before by d3vcho.
Polskie wsparcie SMF na simplemachines.org

the simplest solution is most likely the right one

Advertisement: