Pagination on generated html
function transform($getpage, $auto = 'no', $thecatnum = '0'){ global $templatesdir, $scriptname, $settings; $doc = $getpage;
function transform($getpage, $auto = 'no', $thecatnum = '0'){ global $templatesdir, $scriptname, $settings; $doc = $getpage; $doc = str_replace('&page=1', '', $doc);
This thread is closed, so you cannot post a reply.
Comments on Pagination on generated html
Forum Regular
Usergroup: Customer
Joined: Feb 19, 2004
Location: Michigan
Total Topics: 57
Total Comments: 185
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
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
In filefunctions.php replace with
Hopefully that'll do it, let me know.
Forum Regular
Usergroup: Customer
Joined: Feb 19, 2004
Location: Michigan
Total Topics: 57
Total Comments: 185
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
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:
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
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.