Any way to fix pagination on Home Page?
Posted: 31 August 2004 11:26 AM   [ Ignore ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1292
Joined  08-28-2003

I’ve modified the index Template to include multiple Category entries. New entries cascade through various sizes, styles, headlines, graphics, etc.

http://staging.mac360.com

Works great except for pagination at the bottom of the page.

http://staging.mac360.com/index.php/P5/

The “Next Page” link always comes back to the same page of content and doesn’t move to additional content.

Pagination uses {auto path}. Is there a way to get around that and simply go to a list of entries?


For example, the Category link would normally be like this:

http://staging.mac360.com/index.php/mac360/C4/

However, with the new index Template and multiple entry styles, that doesn’t work. So, I created another Template called “list”. Now, Category links work OK.

http://staging.mac360.com/index.php/mac360/list/C4/

So, is there a way to have Pagination on the home page work in a similar manner?

 Signature 

RonnieMc

Honolulu, HI USA

HomeMac360

Profile
 
 
Posted: 31 August 2004 01:15 PM   [ Ignore ]   [ # 1 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  9868
Joined  06-19-2002

> The “Next Page” link always comes back to the same page of content and doesn’t move to additional content.

Your “next” link is working fine for me.  When I use it the 5 entries at the bottom cycle to the next 5 just fine.

 Signature 

Chris Curtis
chriscurtis.org

Profile
 
 
Posted: 31 August 2004 01:39 PM   [ Ignore ]   [ # 2 ]  
Moderator
Avatar
RankRankRankRank
Total Posts:  1064
Joined  08-01-2002

Seems to be working for me as well. Firefox 0.9.3 on OS X 10.3.5

 Signature 
Profile
 
 
Posted: 31 August 2004 01:57 PM   [ Ignore ]   [ # 3 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1292
Joined  08-28-2003

Not quite. Check the content entry dates. The top listing (of the 5 nearest the bottom) is August 28 on the home page

Click the Next Page pagination link and the top listing becomes August 27.

Click it again and the top listing becomes August 23 (that’s an improvement). Click it again and the top listing becomes August 20, and so on.

From the index Template for the entries nearest the bottom:

{exp:weblog:entries weblog=“mac” category=“not 20” orderby=“date” sort=“desc” limit=“5” offset=“4” paginate=“bottom”}

I’m eliminating one category (which shows up at the top of the page), limiting to 5 entries, and with an offset of “4” to account for the most recent entries with graphics above.

“Offset” appears to function as ‘offset from the most recent entry’, right?

Of course, what I’d like is the pagination link to go to a page and just list the next 5 (or whatever) entries.

 Signature 

RonnieMc

Honolulu, HI USA

HomeMac360

Profile
 
 
Posted: 01 September 2004 12:39 PM   [ Ignore ]   [ # 4 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  9868
Joined  06-19-2002

Not quite sure I’m following you.  Are you saying that each page skips (offsets) 4 entries?  So page one shows 5-9, page two shows 14-18, etc.

 Signature 

Chris Curtis
chriscurtis.org

Profile
 
 
Posted: 01 September 2004 01:31 PM   [ Ignore ]   [ # 5 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1292
Joined  08-28-2003

Chris, no not that. The home page has 3 content sections. The top section is a separate Category. The bottom two sections (with graphics, with smaller graphics) are the rest of the Categories (sans the one on the top).

The problem is pagination to the next page WHILE still using the index Template. The index Template has been changed (above), so the stacking of entries would always be off on the Next Page, improved on the 2nd Next Page (but off), and so on.

I don’t think that’s fixable under my current setup, and Pagination wasn’t really designed to handle that “mix” of entries on a page, while still using the index Template for all the paginated pages.

Solution (implemented minutes ago):

I created another Template called “list”. It’s a clone of the original index Template which simply “listed” entries one after the other.

So, on the Home Page, there’s a Next Page link at the bottom. However, that link does NOT go to the index Template, but to the new “list” Template instead.

That works fine. Of course, going from the Home Page to the Next Page is interesting. The Next Page does NOT have a link to go back to the Home Page.

That’s minor.

That extra Template, “list”, is also necessary for Category links on the left hand Category Menu.

So it looks like this: http://www.mac360.com/index.php/mac360/list/C14/

Instead of this: http://www.mac360.com/index.php/mac360/C14/

Generally speaking, there’s gobs of flexibility in EE’s design. Once we venture beyond the current “tiered” structure, it becomes more complicated and requires actual thinking.

Maybe that’s the problem…

Thanks again.

 Signature 

RonnieMc

Honolulu, HI USA

HomeMac360

Profile
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 10:33 AM
Total Registered Members: 62613 Total Logged-in Users: 18
Total Topics: 77114 Total Anonymous Users: 12
Total Replies: 416392 Total Guests: 151
Total Posts: 493506    
Members ( View Memberlist )