strange thing with "&o="

Discuss PivotX 2.0.x here. Non-PivotX related discussions go in The Drain.

strange thing with "&o="

Postby loly » Thu Jul 03, 2008 7:07 am

Why for all pages with offset(&o=") PivotX used archivepage_template?
module_parser.php
Code: Select all
        if (!empty($this->modifier['archive']) || isset($this->modifier['offset'])) {
            $template = $PIVOTX['weblogs']->get('', 'archivepage_template');
        } else {
            $template = $PIVOTX['weblogs']->get('', 'front_template');
        }

if so should be why &o=0 used archivepage_template ? &o=0 is front page !
loly
 
Posts: 64
Joined: Mon Mar 31, 2008 7:59 am
Location: Russia

Re: strange thing with "&o="

Postby hansfn » Wed Jul 09, 2008 5:54 pm

Because you are looking at an archive page ... It's no longer the frontpage. If you want them to look the same, just use the frontpage template for archive pages too. I agree that you can argue that "&o=0" should use the frontpage template since you get the same entries as on the frontpage, but you can also argue for the current behavior...
hansfn
Developer
 
Posts: 3280
Joined: Sun Nov 25, 2007 7:48 pm
Location: Molde, Norway

Re: strange thing with "&o="

Postby Bob » Wed Jul 16, 2008 5:59 pm

I think treating it as an 'archive' is the correct way to go too. (just to get my two cents in)
Bob
Lead Developer
 
Posts: 1374
Joined: Tue Nov 20, 2007 11:16 pm

Re: strange thing with "&o="

Postby loly » Wed Jul 16, 2008 6:28 pm

Oh. Bob is back :) what about ping service ?
loly
 
Posts: 64
Joined: Mon Mar 31, 2008 7:59 am
Location: Russia

Re: strange thing with "&o="

Postby Bob » Wed Jul 16, 2008 6:39 pm

I'll reply on the other thread.
Bob
Lead Developer
 
Posts: 1374
Joined: Tue Nov 20, 2007 11:16 pm


Return to 2.x Discussion

Who is online

Users browsing this forum: No registered users and 3 guests

cron