Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#97 2006-08-07 18:20:28

Ace of Dubs
Member
Registered: 2006-04-17
Posts: 446

Re: [plugin] [ORPHAN] etz_pg for paginated articles

Hooray for Etz! :D

BTW, the link to your wishlist is broken, dude

Offline

#98 2006-08-07 18:43:46

Etz Haim
Archived Plugin Author
From: Karlstad, Sweden
Registered: 2005-01-24
Posts: 262
Website

Re: [plugin] [ORPHAN] etz_pg for paginated articles

Wishlist fixed, too.

Offline

#99 2006-08-07 20:25:32

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 4,708
Website

Re: [plugin] [ORPHAN] etz_pg for paginated articles

way to go, etz. I guess you’ve been reading the other thread ;-)

Congrats on the new job too!


TXP Builders – finely-crafted code, design and txp

Offline

#100 2006-08-08 10:00:53

Ace of Dubs
Member
Registered: 2006-04-17
Posts: 446

Re: [plugin] [ORPHAN] etz_pg for paginated articles

bq..
Fatal error: Call to undefined function assert_article() in /usr/home/housecaf/public_html/123txp/textpattern/lib/txplib_misc.php(459) : eval()’d code on line 261

:(

Also I miss Arkham’s Teaser link for the next page. Would that be possible with your custom field solution?

Last edited by Ace of Dubs (2006-08-08 10:02:35)

Offline

#101 2006-08-08 16:33:04

Ace of Dubs
Member
Registered: 2006-04-17
Posts: 446

Re: [plugin] [ORPHAN] etz_pg for paginated articles

Well, it seems my PHP skills are finally starting to take flight (they better after so many hours pulling my hair out!)

For those of you interested in having the titled menu along with the Teaser link for the next page, look no further:

Edit: Newer version with teaser and attributes

All you gotta do is edit your Etz Plugin, paste my hack in and you’re good to go.

Happy Paginating! :D

Last edited by Ace of Dubs (2006-08-09 17:10:25)

Offline

#102 2006-08-08 17:52:09

p_see
Member
Registered: 2006-02-24
Posts: 17

Re: [plugin] [ORPHAN] etz_pg for paginated articles

Hi everybody
I think I have found a little point_bug in etz_pg (version 0.8)
Look at this line and see the <code>.</code> before the <code>=</code>
<code>$etz_pg[‘linkstub’] .= (etz_pg_permlinkmode() == 1) ? ‘?pg=’ : ‘&amp;pg=’;</code>

It breaks the url (at least in messy url, I don’t know with clean url).

This plugin is… very useful. Thanks

Offline

#103 2006-08-09 16:07:31

Etz Haim
Archived Plugin Author
From: Karlstad, Sweden
Registered: 2005-01-24
Posts: 262
Website

Re: [plugin] [ORPHAN] etz_pg for paginated articles

OK everyone. There’s version 0.8.1 out, which fixes the bug Ace of Dubs reported. Upgrade recommended.

p_see, this point is meant to be there. I’d be interested however to know in which way you think that it “breaks the url”, so please return with more specific information.

As for the “teaser”, be patient! I am currently testing the 0.9 version, which includes a custom navigation control that can be manipulated to output a “teaser”. Most importantly, this is done with a use of a new tag, not a hack in the source.

Offline

#104 2006-08-09 16:16:46

Ace of Dubs
Member
Registered: 2006-04-17
Posts: 446

Re: [plugin] [ORPHAN] etz_pg for paginated articles

Hey Etz,

I went ahead and built a new teaser function already

<code><txp:etz_pg_teaser /></code>

Which accepts the following attribute

<code><txp:etz_pg_teaser label=“Next Chapter:”/></code>

In the above example your teaser link will read “Next Chapter: Page Title”

Also, I polished my original hack with separate function for cleanliness and conditional code so that teaser does not show on the last page.

Tested, debugged and kicking ass on my vanilla install of TXP :)

Here is the Code

Last edited by Ace of Dubs (2006-08-09 16:17:36)

Offline

#105 2006-08-09 18:45:41

Etz Haim
Archived Plugin Author
From: Karlstad, Sweden
Registered: 2005-01-24
Posts: 262
Website

Re: [plugin] [ORPHAN] etz_pg for paginated articles

For the ehm, impatient, version 0.9 is out there for you to test. Read the revised documentation included in the plugin. To create a “teaser”, all you have to do is enter this:

<txp:etz_pg_custom page="1" mode="rel" link="1" />

in your article form.

Last edited by Etz Haim (2006-08-11 16:38:35)

Offline

#106 2006-08-10 11:28:04

p_see
Member
Registered: 2006-02-24
Posts: 17

Re: [plugin] [ORPHAN] etz_pg for paginated articles

Etz Haim wrote:

OK everyone. There’s version 0.8.1 out, which fixes the bug Ace of Dubs reported. Upgrade recommended.

p_see, this point is meant to be there. I’d be interested however to know in which way you think that it “breaks the url”, so please return with more specific information.
<code>$etz_pg[‘linkstub’] .= (etz_pg_permlinkmode() == 1) ? ‘?pg=’ : ‘&amp;pg=’;</code>

WITH VERSION 0.8
I get this sort of url: http://127.0.0.1/textpattern/index.php?id=239http://127.0.0.1/textpattern/index.php?id=239&pg=2
without the point: http://127.0.0.1/textpattern/index.php?id=239&pg=2

WITH VERSION 0.8.1
it dœsn’t appear, the url are well formed. So this point no more cause trouble.

Thank’s again

Offline

#107 2006-08-10 11:34:28

Ace of Dubs
Member
Registered: 2006-04-17
Posts: 446

Re: [plugin] [ORPHAN] etz_pg for paginated articles

“Impatient”?

I prefer the term “inspired” ;)

I downloaded your update, but I still like my guinea-pig mutant version and plan to use it for my next project. Thanks again for getting this done so fast, I would not have been able to hack this together without your custom field code. You rock!

Offline

#108 2006-08-11 17:04:54

Etz Haim
Archived Plugin Author
From: Karlstad, Sweden
Registered: 2005-01-24
Posts: 262
Website

Re: [plugin] [ORPHAN] etz_pg for paginated articles

For those willing to test the features in forthcoming etz_pg version, may test the 0.10“development” version. Besides fixing some logical errors from 0.9, it provides text attribute to the txp:etz_pg_custom tag. The text attribute defaults to the the template variable “%t”, which corresponds to the title of the referenced page.

For an example, you may create a “teaser” link like Ace’s above by writing:

<txp:etz_pg_if_titles><txp:etz_pg_custom page="1" link="1" text="Next page: %t »" mode="rel" /></txp:etz_pg_if_titles>

Or alternatively, to the previous page:

<txp:etz_pg_if_titles><txp:etz_pg_custom page="-1" link="1" text="« Previous page: %t" mode="rel" /></txp:etz_pg_if_titles>

Got it? You can creatively combine etz_pg_custom with any of the other tags already available. Read the plugin’s included documentation.

Last edited by Etz Haim (2006-08-30 17:11:57)

Offline

Board footer

Powered by FluxBB