Paginate parameters?
Posted: 08 September 2004 01:29 PM   [ Ignore ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1191
Joined  05-15-2004

My monthly archive pages are huge, so I thought I’d put the paginate tags back in to break them up so the whole thing doesn’t have to load all at once.. Trouble is, I don’t seem to have all the necessary code to make it work, and the User Guide doesn’t give me any more to go on than what I’ve got.

The code from the User Guide shows paginate=“bottom” in the {exp:weblog:entries} tag, and

{paginate}
<p>Page {current_page} of {total_pages} pages {pagination_links}</p>
{/paginate}

...inside the {exp:weblog:entries} tags. But the pagination text doesn’t display at all.

So what’s missing to make this work?

 Signature 

Being offended by other people’s opinions is retarded.

Profile
 
 
Posted: 08 September 2004 01:41 PM   [ Ignore ]   [ # 1 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  9868
Joined  06-19-2002

Are you using a “limit=” parameter in your {exp:weblog:entries} tag?  If you don’t set a limit then it will simply display all of them and you won’t get multiple pages.

 Signature 

Chris Curtis
chriscurtis.org

Profile
 
 
Posted: 08 September 2004 01:57 PM   [ Ignore ]   [ # 2 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1191
Joined  05-15-2004

I wasn’t (oops), but I just added limit=“10”. It’s still loading the whole month.

 Signature 

Being offended by other people’s opinions is retarded.

Profile
 
 
Posted: 08 September 2004 10:17 PM   [ Ignore ]   [ # 3 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  9868
Joined  06-19-2002

What is the full EE tag you’re using?

 Signature 

Chris Curtis
chriscurtis.org

Profile
 
 
Posted: 09 September 2004 04:26 AM   [ Ignore ]   [ # 4 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1191
Joined  05-15-2004

{exp:weblog:entries weblog=“weblog1” limit=“10” paginate=“bottom”}

 Signature 

Being offended by other people’s opinions is retarded.

Profile
 
 
Posted: 09 September 2004 02:22 PM   [ Ignore ]   [ # 5 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  9868
Joined  06-19-2002

What is the full tag, from opening to closing?  Also, what’s an example of a URL where you’re seeing this problem?

 Signature 

Chris Curtis
chriscurtis.org

Profile
 
 
Posted: 09 September 2004 04:16 PM   [ Ignore ]   [ # 6 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1191
Joined  05-15-2004

What is the full tag, from opening to closing?

Okay, to me that IS the tag. Terminology adjustment ... done.

Here’s everything that lies between the opening tag and the closing tag (as we HTML types talk):

{exp:weblog:entries weblog=“weblog1” limit=“10” paginate=“bottom”}

{date_heading}
<hr size=1><table width=100%><tr><td align=right><font face=“arial” size=4 color=#0000af><b><i>{entry_date format=’ %l • %F %d, %Y ‘}</font></td></tr></table><p>
{/date_heading}

<table width=100% bgcolor=#efefef><tr><td align=“left”><font face=“agency fb,courier new” size=5><b>{title}</b></font></td></tr></table>
<font face=“tahoma” size=3><br>
{body}

{if extended != “”}
<p>
<a href=”{comment_path=“weblog/comments”}#more”>MORE…</a>
</p>
{/if}

</font><br><font face=“arial” size=2>
<div class=“posted”><b>Posted by {author}</b> on {entry_date format=’%F %d, %Y’} at {entry_date format=’%h:%i %A’}</i></b> •
{if allow_comments}
<a href=”{comment_path=“weblog/comments”}#comments”>{comment_total} bursts of static
{/if}

{if allow_trackbacks}
and {trackback_total} trackbacks</a>
{/if}

• <a href=”{comment_path=“weblog/comments”}”>Permalink</a></div>
File under {categories}
• <i><a href=”{path=weblog/categories}”>{category_name}</a></i>
{/categories}<p>
<?php @include(”{trackback_path=“weblog/inline”}”); ?>
<br>
{paginate}
<p>Page {current_page} of {total_pages} pages {pagination_links}</p>
{/paginate}

{/exp:weblog:entries}

The URL for last month’s archive is http://www.mcgeheezone.com/blogoSFERICS/index.php/weblog/monthlies/2004/08/

 Signature 

Being offended by other people’s opinions is retarded.

Profile
 
 
Posted: 09 September 2004 04:23 PM   [ Ignore ]   [ # 7 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1191
Joined  05-15-2004

The limitations of this forum do not make it possible for me to include all of the code. Can you give me a better idea of what it is you want so I can show you what is relevant?

 Signature 

Being offended by other people’s opinions is retarded.

Profile
 
 
Posted: 09 September 2004 04:25 PM   [ Ignore ]   [ # 8 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1191
Joined  05-15-2004

On second look, it does appear all of the code did come through—I was thrown off by the fact the colors didn’t change as I intended. I think I applied quotes in the square brackets, in HTML fashion. My bad.

Edit: This thread began before the ability of a post’s author to go back and edit, became available. So I’ve fixed the color tags.

 Signature 

Being offended by other people’s opinions is retarded.

Profile
 
 
Posted: 10 September 2004 11:24 AM   [ Ignore ]   [ # 9 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  9868
Joined  06-19-2002

Okay, sorry for the delay in response; I just wanted to confirm some things first.

Basically, when you do a “monthly archive” view (i.e. you have the year/month in the URL) then EE ignores the pagination and simply displays the entire contents from that month.  That’s how it currently works.

At some point in the future, pagination for that view may be implemented, but it isn’t available right now.

 Signature 

Chris Curtis
chriscurtis.org

Profile
 
 
Posted: 10 September 2004 02:37 PM   [ Ignore ]   [ # 10 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1191
Joined  05-15-2004

Okay. Well, I’ll admit I’m surprised it isn’t available already. I’ll go put in for it. Thanks for trying.

 Signature 

Being offended by other people’s opinions is retarded.

Profile
 
 
Posted: 01 June 2006 07:02 PM   [ Ignore ]   [ # 11 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  420
Joined  10-10-2004

Yep, I’d like this feature as well. I’m glad I found this post because I’m surprised I can’t paginate a monthly archive… hmmm.

Profile
 
 
Posted: 02 June 2006 06:40 PM   [ Ignore ]   [ # 12 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1191
Joined  05-15-2004

Actually, now you can—in fact, I’d forgotten there was ever a time I couldn’t, until this thread got bumped. However, I believe it does require that you establish a separate monthly archive template, rather than simply use the index template for that purpose.

(At least, I’m guessing you’re using the index template for monthly archives; a lot of people do.)

 Signature 

Being offended by other people’s opinions is retarded.

Profile
 
 
Posted: 02 June 2006 09:17 PM   [ Ignore ]   [ # 13 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  420
Joined  10-10-2004

Would you mind showing me the code you use to make monthly archive paginate. I tried and wasn’t having any luck?

EDITED:

Ok- re-reading the thread I see that you can’t have the month and year in the URL. So, is it basically you customize the weblog tag to show a specific year and month in it’s own special template and then you can paginate it. Sound right?

Profile
 
 
Posted: 03 June 2006 09:23 AM   [ Ignore ]   [ # 14 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1191
Joined  05-15-2004
Rob Q - 02 June 2006 09:17 PM

Ok- re-reading the thread I see that you can’t have the month and year in the URL. So, is it basically you customize the weblog tag to show a specific year and month in it’s own special template and then you can paginate it. Sound right?

Well, no. If you go to the August 2004 monthly archive page on my site—the same page used as an example ealier in this thread, but with a new URL because the site’s been reorganized—you’ll see that the year and month are in the URL, and yet you still get the pagination.

I’ll compare the code I’m using now to the code I posted before, and see if there’s anything different that might make a difference.

EDIT: Well, I just don’t see anything in my present code that’s significantly different from the code I posted before. I use the FilterHTML plugin to show only a portion of each post on the monthly archive page, but that’s not relevant to this.

Can you post your template code here and I’ll see if anything jumps out at me?

 Signature 

Being offended by other people’s opinions is retarded.

Profile
 
 
Posted: 03 June 2006 10:20 AM   [ Ignore ]   [ # 15 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  420
Joined  10-10-2004

Cool. Thanks for setting me on the right path here. I had a display_by=“month” tag that was making the pagination do very odd things.

I’m using the display_by=“month” tag because I want to always link to the month of the most current entries and that display tag ensured that just the current month’s entries came up. I suppose if I can find a way to make the link URL to my archive dynamically change to reflect the month of the most recent entry ( /archive/press-release/2006/06/) then I wouldn’t need to use the display by month tag.

So, I’m now using this to link to that weblogs most current entries month’s archive

{exp:weblog:entries weblog=“press_release” orderby=“date” sort=“desc” limit=“1” disable=“member_data|trackbacks|pagination”}

<a href=”/archive/press-releases/{entry_date format=”%Y”}/{entry_date format=”%m”}”>Press Releases</a>

{/exp:weblog:entries}

The link and pagination on my archive page seems to work fine.

Thanks!

Profile
 
 
Posted: 03 June 2006 10:44 AM   [ Ignore ]   [ # 16 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1191
Joined  05-15-2004

Hmmm. Okay, that’s a use for monthly archives that hadn’t occurred to me. Sounds like the best way in that case is to not use a monthly archive setup after all, since that does call for the year/month URL segments and your dynamic approach would work best by avoiding that.

If I were going to set up such a template, it would start with the code from my index template, copied into a new template (called, just for hypothetical’s sake, “this_month”), but with display_by=“month” added to the exp:weblog:entries tag, and the link URL would be “yourdomain.com/index.php/template_group/this_month” so that whatever month your latest post is, that’s the month that would be shown.

That may still kibosh your pagination, though, since I think it doesn’t want to break up the units that it’s told to display. Maybe try instead display_by=“day” limit=“30”.

EDIT: If you keep the monthly archives as well, that would keep older entries available for persusal, of course.

 Signature 

Being offended by other people’s opinions is retarded.

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 09:33 AM
Total Registered Members: 64939 Total Logged-in Users: 66
Total Topics: 81911 Total Anonymous Users: 49
Total Replies: 440328 Total Guests: 271
Total Posts: 522239    
Members ( View Memberlist )