1 of 2
1
Plugin: Paginatee (Paginate entries with Page Titles instead of Page1, Page2 etc)
Posted: 18 May 2008 05:32 PM   [ Ignore ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  719
Joined  07-02-2007

In an entry just put: {pagebreak:Some title} everywhere you would want a pagebreak, the plugin will fetch the title from the variable.



Features:

* Paginate an entry with Page Titles (instead of Page 1, Page 2).
* Two different modes (normal, url_title).
* Display the current Page Title outside of the Paginatee tag.
* Conditionals for “If first page” & “If last page”.
* Prev/Next page features.


Example of paginated text with titles.:
Toms Hardware

Download and view more info at my website

 Signature 

Truly ExpressionEngine


Fielder Module ( Mass Custom Fields )
Super Cache (Cache heavy tag output)
reCAPTCHA Extension
Rewrite Module


See all my EE Addons (8)

Profile
 
 
Posted: 21 May 2008 04:22 PM   [ Ignore ]   [ # 1 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  719
Joined  07-02-2007

Updated to 0.2

-Fixed a variable_pair order error. Thanks Mitchell (Solspace)
-Added {pgnt_current_page_title}
Will work ANYWHERE inside your template, even outside the plugin tag.

 Signature 

Truly ExpressionEngine


Fielder Module ( Mass Custom Fields )
Super Cache (Cache heavy tag output)
reCAPTCHA Extension
Rewrite Module


See all my EE Addons (8)

Profile
 
 
Posted: 29 May 2008 02:50 AM   [ Ignore ]   [ # 2 ]  
Grad Student
Avatar
Rank
Total Posts:  44
Joined  01-29-2008

Thanks for a great plug-in. It mostly works.

The current page title only seems to work outside the tag. Is that how you intended it?

{exp:weblog:entries  weblog="test"}
<h2>{pgnt_current_page_title}</h2>
{exp:paginatee}
<h2>{title}</h2>
<
h2>{pgnt_current_page_title}</h2>

<
ul>
{pgnt_titles}
<li><a href="{pgnt_url}" title="Page {pgnt_title}">{pgnt_title}</a></li>
{/pgnt_titles}    
</ul>

{pgnt_text}
{body}
{
/pgnt_text}

{
/exp:paginatee}
<h2>{pgnt_current_page_title}</h2>

{/exp:weblog:entries}

Looks like:

First Bit (how it should read, this is outside the tag)

Test Post Paginate (post title)

{pgnt_current_page_title} (not how it should read, inside the tag)

First Bit
Second Bit
Third Bit
Fourth Bit

Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Vivamus imperdiet. Mauris urna turpis, molestie sit amet, aliquet eget, condimentum eget, purus. Pellentesque consequat sagittis sem. Curabitur in lectus quis dui suscipit vehicula. Suspendisse non libero vel urna tempus cursus. ........

First Bit

Live here. Any solutions other than making sure the current_page_title goes outside the tag?

Profile
 
 
Posted: 29 May 2008 06:56 AM   [ Ignore ]   [ # 3 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  719
Joined  07-02-2007

Hi, i can make it work inside the tag, i will have an update for you in a couple of hours

 Signature 

Truly ExpressionEngine


Fielder Module ( Mass Custom Fields )
Super Cache (Cache heavy tag output)
reCAPTCHA Extension
Rewrite Module


See all my EE Addons (8)

Profile
 
 
Posted: 29 May 2008 09:57 PM   [ Ignore ]   [ # 4 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  719
Joined  07-02-2007

As promised:

Version 0.3
-{pgnt_current_page_title} Will work inside and outside of the tag.

 Signature 

Truly ExpressionEngine


Fielder Module ( Mass Custom Fields )
Super Cache (Cache heavy tag output)
reCAPTCHA Extension
Rewrite Module


See all my EE Addons (8)

Profile
 
 
Posted: 02 June 2008 10:33 PM   [ Ignore ]   [ # 5 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  719
Joined  07-02-2007

Updated the plugin to version 1.0

-Added parameter: current=”“
-Added variable: {pgnt_current} // works only inside {pgnt_titles}
-Added conditional: {if pgnt_pages}
-Added conditional: {if pgnt_prev_page}
-Added conditional: {if pgnt_next_page}
-Added variable: {pgnt_prev_page_title}
-Added variable: {pgnt_prev_page_url}
-Added variable: {pgnt_next_page_title}
-Added variable: {pgnt_next_page_url}

And it’s much faster now.

Bugs/Comments/Feature_Request Welcome

 Signature 

Truly ExpressionEngine


Fielder Module ( Mass Custom Fields )
Super Cache (Cache heavy tag output)
reCAPTCHA Extension
Rewrite Module


See all my EE Addons (8)

Profile
 
 
Posted: 25 September 2008 11:41 AM   [ Ignore ]   [ # 6 ]  
Grad Student
Avatar
Rank
Total Posts:  44
Joined  01-29-2008

Number 1 fan here. I think a site I’m building is very dependent on this brilliant plug-in.

I’ve found a bug where if there is a question mark ? in the title (e.g: Do you like EE?) the page break doesn’t seem to register. Just letting you know.

Profile
 
 
Posted: 25 September 2008 02:36 PM   [ Ignore ]   [ # 7 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  719
Joined  07-02-2007
Embody_Bruce - 25 September 2008 11:41 AM

Number 1 fan here. I think a site I’m building is very dependent on this brilliant plug-in.

I’ve found a bug where if there is a question mark ? in the title (e.g: Do you like EE?) the page break doesn’t seem to register. Just letting you know.

Hey Bruce,

Thanks for letting me know.
I am making a new version of the plugin that includes new features. Will test your report on my new version.

-Victor

 Signature 

Truly ExpressionEngine


Fielder Module ( Mass Custom Fields )
Super Cache (Cache heavy tag output)
reCAPTCHA Extension
Rewrite Module


See all my EE Addons (8)

Profile
 
 
Posted: 23 October 2008 04:47 AM   [ Ignore ]   [ # 8 ]  
Grad Student
Avatar
Rank
Total Posts:  44
Joined  01-29-2008

Another question ... is there any way to use this more accurately with view tracking? I have track_views=“one” on my weblog that I’m using paginatee with. If one entry has one page then one view = 1 but if another post uses paginatee and stretches over four pages one view (one visitor clicking through all four pages) will register a count = 4.

Ideally I’d like the track_views to work on the only the first page regardless of sub pages. Do you know of a solution? Perhaps this is outside the reach of paginatee.

Profile
 
 
Posted: 23 October 2008 06:16 AM   [ Ignore ]   [ # 9 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  719
Joined  07-02-2007
Embody_Bruce - 23 October 2008 04:47 AM

Another question ... is there any way to use this more accurately with view tracking? I have track_views=“one” on my weblog that I’m using paginatee with. If one entry has one page then one view = 1 but if another post uses paginatee and stretches over four pages one view (one visitor clicking through all four pages) will register a count = 4.

Ideally I’d like the track_views to work on the only the first page regardless of sub pages. Do you know of a solution? Perhaps this is outside the reach of paginatee.

Indeed, this goes beyond paginatee :/
What you could do is:

{exp:weblog:entries weblog="bla" url_title="soemt" {if segment_4 == ''}view_track="one"{/if} disable="pagination|trackbacks"}


Of course segment_4 is just an example, maybe on your site it needs to be segment_3 or 5.

 Signature 

Truly ExpressionEngine


Fielder Module ( Mass Custom Fields )
Super Cache (Cache heavy tag output)
reCAPTCHA Extension
Rewrite Module


See all my EE Addons (8)

Profile
 
 
Posted: 23 October 2008 07:15 AM   [ Ignore ]   [ # 10 ]  
Grad Student
Avatar
Rank
Total Posts:  44
Joined  01-29-2008

Of course, thank you!

Profile
 
 
Posted: 24 October 2008 01:50 PM   [ Ignore ]   [ # 11 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1735
Joined  03-26-2006

Victor, this seems really great and will probably save my arse on this project. Just curious what the URL’s looks like. If I have a four page story (three pagebreaks in the body of the story), would the resulting URL’s look like the following?

site.com/stories/item/story-title/
site.com/stories/item/story-title/P2/
site.com/stories/item/story-title/P3/
site.com/stories/item/story-title/P4/

 Signature 

ryan masuga
—————
Masuga Design | Member, EE Pro Network
My EE Add-Ons | {devot:ee}
Twitter: masuga | masugadesign | devot_ee

Profile
 
 
Posted: 24 October 2008 02:43 PM   [ Ignore ]   [ # 12 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  719
Joined  07-02-2007
mdesign - 24 October 2008 01:50 PM

Victor, this seems really great and will probably save my arse on this project. Just curious what the URL’s looks like. If I have a four page story (three pagebreaks in the body of the story), would the resulting URL’s look like the following?

site.com/stories/item/story-title/
site.com/stories/item/story-title/P2/
site.com/stories/item/story-title/P3/
site.com/stories/item/story-title/P4/

Indeed.

 Signature 

Truly ExpressionEngine


Fielder Module ( Mass Custom Fields )
Super Cache (Cache heavy tag output)
reCAPTCHA Extension
Rewrite Module


See all my EE Addons (8)

Profile
 
 
Posted: 24 October 2008 02:57 PM   [ Ignore ]   [ # 13 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1735
Joined  03-26-2006

And I can have, theoretically, an unlimited number of “pages” for an entry? If so, I think you just saved me BIG TIME on my current project. I’ll need to find your PayPal donate button.

 Signature 

ryan masuga
—————
Masuga Design | Member, EE Pro Network
My EE Add-Ons | {devot:ee}
Twitter: masuga | masugadesign | devot_ee

Profile
 
 
Posted: 24 October 2008 03:23 PM   [ Ignore ]   [ # 14 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  719
Joined  07-02-2007
mdesign - 24 October 2008 02:57 PM

And I can have, theoretically, an unlimited number of “pages” for an entry? If so, I think you just saved me BIG TIME on my current project. I’ll need to find your PayPal donate button.

Yes there is no limit.
I have a new version of the plugin. It’s on my SVN server.
It allows you to make an url_title for your pagination links, like:

http://www.domain.com/entry/some_url_title/
http://www.domain.com/entry/some_url_title/beginning/
http://www.domain.com/entry/some_url_title/middle/
http://www.domain.com/entry/some_url_title/end_stuff/


If you want it i can send it to you. Need to take some time to write out the documentation smile

The donate button is on my website on the leftbar

 Signature 

Truly ExpressionEngine


Fielder Module ( Mass Custom Fields )
Super Cache (Cache heavy tag output)
reCAPTCHA Extension
Rewrite Module


See all my EE Addons (8)

Profile
 
 
Posted: 25 October 2008 12:58 PM   [ Ignore ]   [ # 15 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1735
Joined  03-26-2006

I’m a little confused as to where the most recent download link is. The link in the first post here says “pi.paginatee_1.0.zip” but according to your site, version 2.0 is out - and there are no download links on your site?

Is Paginatee donationware? I’ll gladly donate - just need to know where I can actually get the file, thanks!

 Signature 

ryan masuga
—————
Masuga Design | Member, EE Pro Network
My EE Add-Ons | {devot:ee}
Twitter: masuga | masugadesign | devot_ee

Profile
 
 
Posted: 31 October 2008 05:58 PM   [ Ignore ]   [ # 16 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  719
Joined  07-02-2007

Updated the plugin to: Version 2.0.0

- Added url_title mode
- Renamed all variables from pgnt* to paginatee* (see Documentation)
- Added “If first page” & “If last page” conditionals
- Paginatee is now 30% faster in parsing (Internal testing)

Download and view more info at my website

 Signature 

Truly ExpressionEngine


Fielder Module ( Mass Custom Fields )
Super Cache (Cache heavy tag output)
reCAPTCHA Extension
Rewrite Module


See all my EE Addons (8)

Profile
 
 
Posted: 14 November 2008 11:30 PM   [ Ignore ]   [ # 17 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1735
Joined  03-26-2006

Victor, I think the only things I am missing here are a {first_page_url} and {last_page_url}. I need the {last_page_url}, because I’m showing a link for “Comments” at the bottom of every paginated page, but the comments will only show at the bottom of the last page. So I need to do something like:

{if paginatee_pages}
<a href="{paginatee_last_page_url}#comments">Comments</a>
{if:else}
<a href="{url_title_path=tgroup/template}#comments">Comments</a>
{/if}


Unless of course, there is a better way to do that.

One other thing would be to make the “current” parameter a bit more flexible (like a tag pair instead of a replace) so I can do some different things based on the current page.

With the “normal” pagination, using {pagebreak:1}, {pagebreak:2}, etc in my content field, I tried experimenting with this, where segment 4 might look like P1, P2:

{exp:paginatee:normal current='{segment_4}'}

... then later ...

{if paginatee_pages}
<ul class="storyPagination">
{paginatee_titles}
{if
"{paginatee:current}" == "P{paginatee:title}"}
   
<li>You are on {paginatee:title}. No link.</li>
{if:else}
   
<li><a href="{paginatee:url}">Link to page {paginatee:title}!</a></li>
{/if}
{
/paginatee_titles}    
</ul>
{/if}


That doesn’t work, as I found out,(and I’d also have trouble determining the first page because nothing would be in segment_4) but you get what I was trying to do.

This is a great plugin - you’ve thought of almost everything with it.

 Signature 

ryan masuga
—————
Masuga Design | Member, EE Pro Network
My EE Add-Ons | {devot:ee}
Twitter: masuga | masugadesign | devot_ee

Profile
 
 
Posted: 16 November 2008 12:19 PM   [ Ignore ]   [ # 18 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1735
Joined  03-26-2006

I also think I found a conflict with entry comments: a paginated entry completely breaks comments. I have a weblog that can have articles that are paginated or not. At the bottom of my single entry page I have the following code which allows comments to work fine for a non-paginated entry:

{if paginatee_pages}
  {if paginatee_last_page}
    {embed
="common/_comment_base" weblog="{weblog_short_name}" entry_id="{entry_id}"
     
title="{title}" comment_total="{comment_total}"}
  {
/if}
{if
:else}
  {embed
="common/_comment_base" weblog="{weblog_short_name}" entry_id="{entry_id}"
    
title="{title}" comment_total="{comment_total}"}
{
/if}


So, if the article is paginated, show comments only if we’re at the last page, or if there is no pagination at all on the article, also show comments. What I have found is that when the last segment in the URL is a pagination segment, the comments won’t show. But if the last segment is anything else, they show fine.

Here is an example of what is happening, using a 3-page paginated story, that has 6 comments:

http://site.com/group/template/story/
(comments won’t show, because we’re on the first page)

http://site.com/group/template/story/P2/
(comments won’t show, because we’re on the second page)

http://site.com/group/template/story/P3/
(comments should show, because we’re on the last page, but do not show)

If I change the capital ‘P’ to a lower-case ‘p’, comments work as expected on a paginated page - but they show up on every page. I think the story pagination is conflicting with comment pagination.

What I did to fix this (and it seems to be working OK) was to use a different letter for pagination with Paginatee (I chose “N”). I had to change it in a few places (lines 165, 268, 293, 315, and 423). My paginated story URL’s now look like:

http://site.com/group/template/story/
http://site.com/group/template/story/N2/
http://site.com/group/template/story/N3/
...etc…

I think it would be better if pagination through this pluginmwhen using the “normal” setting used “/page2/” or “/PG2/”, rather than the uppercase “P” that EE uses - if only to avoid conflicts. Do you see anything problematic with changing it do a different letter, Victor?

(Let me reiterate that a {last_page_url} would be really handy!)

 Signature 

ryan masuga
—————
Masuga Design | Member, EE Pro Network
My EE Add-Ons | {devot:ee}
Twitter: masuga | masugadesign | devot_ee

Profile
 
 
   
1 of 2
1
 
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: 65102 Total Logged-in Users: 58
Total Topics: 82263 Total Anonymous Users: 26
Total Replies: 442113 Total Guests: 245
Total Posts: 524376    
Members ( View Memberlist )