Webmastersite.net
Register Log In

Pagination on generated html

Comments on Pagination on generated html

mrowton
Forum Regular

Usergroup: Customer
Joined: Feb 19, 2004
Location: Michigan

Total Topics: 57
Total Comments: 185
mrowton
Posted Mar 01, 2006 - 9:49 AM:

I have all mod_rewrite settings turned off
My generate HTML settings include

"category{CATID}{PAGE}.html"

I have a category with 2 pages with the following URL
http://www.example.com/category6.html

In the pagination area of the templates, page 2 is located at:
http://www.example.com/category6-2.html

However when you arrive at page two the pagination link back to page one is listed as:
http://www.example.com/category6-1.html

It should be
http://www.example.com/category6.html

Or perhaps there is something I should change?

Mitchell
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Mar 07, 2006 - 7:45 AM:

In filefunctions.php replace
function transform($getpage, $auto = 'no', $thecatnum = '0')
{
global $templatesdir, $scriptname, $settings;
$doc = $getpage;
with
function transform($getpage, $auto = 'no', $thecatnum = '0')
{
global $templatesdir, $scriptname, $settings;
$doc = $getpage;
$doc = str_replace('&page=1', '', $doc);


Hopefully that'll do it, let me know.
mrowton
Forum Regular

Usergroup: Customer
Joined: Feb 19, 2004
Location: Michigan

Total Topics: 57
Total Comments: 185
mrowton
Posted Mar 07, 2006 - 9:20 AM:

doesnt seem to work. Here's the example:
http://www.securitydump.com/category6-2.html

Attached is my new filefunctions.php with changes

Heres my html preferences

Advanced:
Name main index page as: index.html
Name categories as: category{CATID}{PAGE}.html
Name link details as: content{LINKID}.html
Name threads as: comments{LINKID}{PAGE}.html
Page separator (will be placed before {PAGE}): -


Attached Files:
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Mar 09, 2006 - 5:05 AM:

For lack of any better ideas I'll try a forcible replacement of every -1.html with .html. Hopefully there aren't any other, useful instances.
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



This thread is closed, so you cannot post a reply.