Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: [plugin] [ORPHAN] etz_pg for paginated articles
> The (sub)title issue will be eventually addressed, but in a different fashion.
That’s great to hear. Thanks.
Offline
Re: [plugin] [ORPHAN] etz_pg for paginated articles
I guess I should be more clear hehe…
I simply meant a way to title subpages, not necessarily using the [page] tag to add the title.
It wouldn’t quite work to use the [page] separator to title subpages, unless you assumed a default title for the first subpage, or allowed the article form tags to specify the first page title (handy if someone will always have the same title for the first page – “overview” for example).
Last edited by nimnix (2005-03-10 19:49:47)
textpattern.org :: find and share Textpattern resources
textpattern.net :: TextBook – Textpattern wiki
Offline
Re: [plugin] [ORPHAN] etz_pg for paginated articles
Version 0.5.1 of etz_pg determines the url mode first by looking up $permlink_mode and then by looking up the deprecated $url_mode. Users updating or planning to update to newer TXP versions are recommended to update their etz_pg too.
VC3 :: weblog :: my wishlist
Offline
#19 2005-05-02 21:36:01
- davidm
- Member

- From: Paris, France
- Registered: 2004-04-27
- Posts: 719
Re: [plugin] [ORPHAN] etz_pg for paginated articles
Well I did miss that one when first released ! Nice :)
<del>There was a discussion about this, someone was looking for it, I’ll try and find it. </del> Found it : Split an article in two
Also, did you add it on textpattern.org ?
Last edited by davidm (2005-05-02 21:52:45)
.: Retired :.
Offline
Re: [plugin] [ORPHAN] etz_pg for paginated articles
Yes, it’s been on textpattern.org for long time now. I hope you enjoy using it.
VC3 :: weblog :: my wishlist
Offline
Re: [plugin] [ORPHAN] etz_pg for paginated articles
could anyone provide help center the nav?
http://sekhu.net/txpattern/book/rashomon-and-other-stories—-ryunosuke-akutagawa
I can then use the example as a template, modify the hover and the background colour be done with it. Thanks in advance
Last edited by sekhu (2005-05-22 23:26:11)
Offline
Re: [plugin] [ORPHAN] etz_pg for paginated articles
sekhu, it’s supposed to look “bad” because it was designed with accessibility and semantics in mind. I’m a little busy right now, but you can check the CSS I’m using on my website.
See also: CSS Design: Taming Lists
Last edited by Etz Haim (2005-05-22 23:31:54)
VC3 :: weblog :: my wishlist
Offline
Re: [plugin] [ORPHAN] etz_pg for paginated articles
> Etz Haim wrote:
> sekhu, it’s supposed to look “bad” because it was designed with accessibility and semantics in mind. I’m a little busy right now, but you can check the CSS I’m using on my website.
See also: CSS Design: Taming Lists
when I meant bad, bad at my end, not the result :)
I’ll check out the link, and I copied and pasted your css – jsut need to center it now. Cheers
Offline
Re: [plugin] [ORPHAN] etz_pg for paginated articles
A nice feature would be if you could make the comments form appear only on the last page of an article.
Given what I’ve been reading about the lack of flexibility with comment forms in TXP I’m guessing that wouldn’t be an easy thing to add-on to this plugin but it would be nice.
Offline
#25 2005-06-23 20:44:30
- marios
- Archived Plugin Author

- Registered: 2005-03-12
- Posts: 1,253
Re: [plugin] [ORPHAN] etz_pg for paginated articles
Hopefully I do not use any comment forms in my cases.
The plugin has worked fine for me on all revisions that I used and did not generate any errors.
Once more I realize what a usefull and time saving plugin this is, and I think that Etz has done a great job on that.
(It’s nice to have a little horizontal content architecture, something that I allways wanted and needed to keep the user klicking, so he may not fall asleep while scrolling)
with best regards, marios
⌃ ⇧ < ⎋ ⌃ ⇧ >
Offline
Re: [plugin] [ORPHAN] etz_pg for paginated articles
i agree this is a fantastic plugin to have.
will be very useful on my zine site and i like that it makes it possible to do things like heavily illustrated articles without making the user download and scoll through all the images at once.
kudos. i’ll still use it even if i can’t only have comments appear on the very last page. ;-)
Offline
Re: [plugin] [ORPHAN] etz_pg for paginated articles
also another nice-to-have feature that was previously requested in here would be making a stated string of text become the link to the next page (as is done on sites like salon so as to provide a teaser for why the user should click to that next page).
what can i say.. i’m greedy. maybe i’ll see if i can code this change myself.
Last edited by arkham (2005-06-23 20:51:41)
Offline
Re: [plugin] [ORPHAN] etz_pg for paginated articles
Sure you may. In fact I’d be glad to incorporate such changes into the plugin.
VC3 :: weblog :: my wishlist
Offline
Re: [plugin] [ORPHAN] etz_pg for paginated articles
For the second issue I got something working but it’s not too pretty and I was having a weird reg exp error so I changed the page delimiter to no longer being in brackets (even with an escape backslash I was still getting the error on the backslash)…
Also in terms of speed it will be a little slower with all the reg expression functions.. but it works and I’ll post it up after I clean it up.
PHP’s not my first language but that wasn’t too bad.
Offline
Re: [plugin] [ORPHAN] etz_pg for paginated articles
Hey… sorry had a busy day at work today.
Click the link to see the code with my changes…
http://www.ohword.com/etz_pgPlusTeaser.txt
Instead of just using [page], to use this feature just type within the article [page Your teaser text for the next page]
or [page Next, I discuss the rhumba], etc.
The modified plugin now use regular expression functions and knows that anything that looks like [page] with any amount of characters between the “[page” and the “]” indicates a page break and that whatever is between “page” and the closing bracket is to be added in a paragraph at the bottom of the page’s content.
The paragraph has an id of “teaserTxt” so unique css styling can easily be applied.
The functions that have different code as a result:
function etz_pg_break()
uses regular expression for the page break term so as to use the wildcard
function etz_pg_totalpages ()
uses preg_match_all instead of a regular string functions to count occurences of the reg expression in the article to find the number of pages
function etz_pg_ispaginated()
uses preg_match with the PREG_OFFSET_CAPTURE flag to do the same thing strpos used to do but for a regular expression
function etz_pg_body()
borrowed $linkstub = etz_pg_linkstub() line from navigation function to provide the link from the teaser line to the next page.
uses reg exp function to split article and to pull out text from [page…] for link
————————————————————————
Don’t hesitate to ask if there are any questions, suggestions, etc
Last edited by arkham (2005-06-25 03:12:47)
Offline