Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#31 2005-06-25 13:08:22

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

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

Thank you. These additions are interesting, and I will put them in the next version of the plugin, including some modifications to handle UTF-8, better navigation, etc.

Offline

#32 2005-06-25 15:26:39

sekhu
Member
Registered: 2005-05-12
Posts: 428
Website

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

this sounds very good – would anyone also happen to know what needs to be done to add this as a quicktag? For multiple authors it would be useful to have a button to hit to enter a page break

Offline

#33 2005-06-25 23:09:42

arkham
Member
Registered: 2005-03-27
Posts: 102
Website

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

Having just re-read the 1st page of this thread I realize that some people wanted the page-specific text not just as a teaser to click to the next page but as an overall navigation option (a list of all page titles). The nav function can be easily modified to handle that by making use of the same code from etz_pg_body:

preg_match_all($pageSep, $thisarticle[‘body’], $matches);

$matches [ 1 ]0 would now have the 1st page title. $matches [ 1 ]1 the second and so on…

In this case you’d need to add another option to the tag etz_pg to control whether this type of page title navigation should be used

Last edited by arkham (2005-06-25 23:10:53)

Offline

#34 2005-08-12 10:30:13

mscwd
Member
Registered: 2005-06-28
Posts: 13

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

PROBLEM

After installing the plugin I get this error display at the top of the page:

Notice: Undefined variable: base_url in /home/ecoo01/public_html/txp/textpattern/lib/txplib_misc.php(429) : eval()’d code on line 127

Although the page links function, the content doesn’t display. I.e When you click “2”, page 2 loads but the text “This is page 2” doesn’t display.

This is how I have constructed the article:

This is a test of spreading one article over multiple pages. This is the first page.

[page]

This is the second page

[page]

This is the third page

[page]

This is the fourth page

[page]

This is the fifth page

My article form contains the neccessary tags.

Does anyone know whats wrong?

Thanks,

-mscwd

Last edited by mscwd (2005-08-12 10:35:09)

Offline

#35 2005-08-13 20:38:08

jiraiya
Member
Registered: 2005-05-15
Posts: 13

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

The reason you get that error message because your Production Status is set to Debugging. You need to change it to Live. You can set it at Site Admin-> Preferences. I am not sure why your pages are not showing. What version do you use? I am using RC5.

I am currently having some problems with it too. It could be that it is not compatible with RC5.

Offline

#36 2005-08-13 21:00:27

jiraiya
Member
Registered: 2005-05-15
Posts: 13

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

Ok, I got it to work. With two problems.

First, I do not use this plugin on pages that appear on the frontpage or it will not work.

Second for some reason <code><txp:etz_pg_body /></code> which is used to output the article page, adds an extra “/>” before the body of the article on all pages except the first one.

Last edited by jiraiya (2005-08-13 21:08:06)

Offline

#37 2005-08-13 21:20:12

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

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

Jiraya, first of all, you shouldn’t use etz_pg in the frontpage.

Second, if etz_pg added HTML junk in its output, then my pages using it wouldn’t validate. You’d better have a look at your Textile source, as you’ve probably put a [page] separator inside some broken Textile markup, or in case you use the notrim attribute, just stop using it.

Last edited by Etz Haim (2005-08-13 21:38:41)

Offline

#38 2005-08-15 17:20:30

jiraiya
Member
Registered: 2005-05-15
Posts: 13

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

I’m not using notrim. My forms and templates are fine. What version of txp are you using?

Offline

#39 2005-09-05 19:37:08

ksorbo
New Member
Registered: 2005-09-05
Posts: 2

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

I have been able to get the plugin to work, but get a vertical navigation bar rather than horizontal as expected. I am posting the form code and the resultant html code:

form code for article:

<h3><txp:permlink><txp:title /></txp:permlink> · <txp:posted /> oleh <txp:author /></h3> <txp:etz_pg_switchmode all="Lihat semua" split="Bagi halaman/><br /><txp:etz_pg_body /><p> <txp:etz_pg_pages /><p> <txp:if_comments><p><txp:comments_invite /></p></txp:if_comments> <div align="center"><img src="<txp:site_url />images/1.gif" style="height:1px;width:400px" class="divider" alt="" /></div>

html:

<p> <ul id="pages"><li class="pgStart pgEmpty">&lsaquo;&lsaquo; start</li><li class="pgPrev pgEmpty"> &lsaquo; prev</li><li class="pgNum pgCurrent">1 </li><li class="pgNum"><a href="?pg=2">2</a> </li> <li class="pgNum"><a href="?pg=3">3</a> </li><li class="pgNum"><a href="?pg=4">4</a> </li> <li class="pgNext"><a href="?pg=2">next &rsaquo;</a></li><li class="pgEnd"><a href="?pg=4">end bq. &rsaquo;&rsaquo;</a></li></ul><p>

Last edited by ksorbo (2005-09-05 19:43:05)

Offline

#40 2005-09-13 21:54:08

tinyfly
Member
From: Dallas, Texas
Registered: 2004-05-10
Posts: 462
Website

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

Can anyone tell me if this still works in txp version 4.0.1?

Offline

#41 2005-09-13 21:56:04

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

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

Works for me.

Offline

#42 2005-09-13 21:56:55

tinyfly
Member
From: Dallas, Texas
Registered: 2004-05-10
Posts: 462
Website

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

Thanks, just wanted to confirm before I pluged it all in.

Offline

#43 2005-09-19 12:52:18

spiros
Member
From: Athens
Registered: 2005-07-01
Posts: 29
Website

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

Nick,

Just some alternatives to navigation:

start | next | previous | end

or this:

start | next | 1-2…5-6 |previous | end

or this:

‹‹ | ‹ | ›| ››

Offline

#44 2005-09-19 13:50:17

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

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

> spiros wrote:

> Nick,

Why are you Nickn’ me? :P Anyway, these are all possible through the standard options (see noadjacents, noextremes and nonumbers), plus some smart CSS2 for the vertical bars (|).

Offline

#45 2005-09-19 15:27:58

spiros
Member
From: Athens
Registered: 2005-07-01
Posts: 29
Website

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

Thanks! My problem is not to eliminate some parameters altogether but to have them displayed horizontally rather than vertically and without bullets as the examples already mentioned above.

Is there some sort of css entry controlling this?

Last edited by spiros (2005-09-19 15:28:18)

Offline

Board footer

Powered by FluxBB