Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
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.
VC3 :: weblog :: my wishlist
Offline
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
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
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)
VC3 :: weblog :: my wishlist
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">‹‹ start</li><li class="pgPrev pgEmpty">
‹ 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 ›</a></li><li class="pgEnd"><a href="?pg=4">end bq. ››</a></li></ul><p>
Last edited by ksorbo (2005-09-05 19:43:05)
Offline
Re: [plugin] [ORPHAN] etz_pg for paginated articles
Can anyone tell me if this still works in txp version 4.0.1?
Refresh Dallas and other Refreshing Cities.
Offline
Offline
Re: [plugin] [ORPHAN] etz_pg for paginated articles
Thanks, just wanted to confirm before I pluged it all in.
Refresh Dallas and other Refreshing Cities.
Offline
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
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 (|).
VC3 :: weblog :: my wishlist
Offline
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