Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#16 2004-09-01 13:29:04

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: [archived] hfw_pg: Paginated articles

Looks like DarkWulf has abandoned his plugin…?
I would like to learn the solution to chumbacca’s problem too!

Offline

#17 2004-11-17 10:50:06

milkbox
New Member
Registered: 2004-03-11
Posts: 4

Re: [archived] hfw_pg: Paginated articles

:: bump ::

has anyone found a solution yet? :)

Offline

#18 2004-12-22 07:41:17

DarkWulf
Archived Plugin Author
Registered: 2004-06-19
Posts: 4

Re: [archived] hfw_pg: Paginated articles

Oops. Sorry, I don’t come here very often…

I’ll try to get a fix sometime “soonish”. Sorry about the wait.

Offline

#19 2004-12-25 02:21:46

DarkWulf
Archived Plugin Author
Registered: 2004-06-19
Posts: 4

Re: [archived] hfw_pg: Paginated articles

Ok, sorry about the long lag here… Basically I rewrote chunks of textpattern’s publish.php, and one of the side effects was that my install initializes alot of variables, which normally weren’t.

Nuff said, heres the fix: HFW_PG_*

Last edited by DarkWulf (2004-12-25 02:22:45)

Offline

#20 2005-02-04 09:05:06

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

Re: [archived] hfw_pg: Paginated articles

I’ve already hacked my publish.php and I’m willing to hack it more for the sake of valid XHTML. So, please, release your hack.

Offline

#21 2005-02-09 18:49:23

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

Re: [archived] hfw_pg: Paginated articles

For my own needs, I have created a fork of this plugin with the following advancements

  • Outputs an unordered list suitable for styling
  • Configurable links for start, previous, next and end.
  • Added conditionals for first and last page.
  • On clean URL mode, produces canonical URLs.
  • Will work nicely together with the next version of zem_rewrite, or my hacked vesion of it.
  • No more of the stupid ?pg=1 url suffix.

I will release it as soon as someone helps me find out a way so that valid XHTML isn’t broken as it is now.

Last edited by Etz Haim (2005-02-09 18:50:25)

Offline

#22 2005-02-09 19:09:16

Rufnex
Archived Plugin Author
From: Germany, Munich (Bavaria)
Registered: 2004-06-23
Posts: 51

Re: [archived] hfw_pg: Paginated articles

Sounds great .. do you have a url to see your script in action. so we can look for a valid xhtml ..

Offline

#23 2005-02-09 19:32:48

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

Re: [archived] hfw_pg: Paginated articles

Here you are: http://www.agitprop.gr/article/9/albanian-poetry

Offline

#24 2005-02-09 20:19:21

andreas
Member
Registered: 2004-02-28
Posts: 453
Website

Re: [archived] hfw_pg: Paginated articles

Two things that I can think of:

First, your DOCTYPE has one slight variation to the one that Top Style Pro gives me for XHTML trans and that’s the EN after XHTML 1.0 Transitional

This is the correct DOCTYPE
<code>
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
</code>

Second: you have an open <p> element right before the unordered list of your pagination. That means, the validator considers the list to be inside the p which probably causes the error.

Last edited by andreas (2005-02-09 20:19:41)

Offline

#25 2005-02-09 20:22:39

steventer
Member
Registered: 2004-12-03
Posts: 56

Re: [archived] hfw_pg: Paginated articles

> nimnix wrote:

> Nice – it works well :)

using it here

you do realise that the “next” link is broken, don’t you? It returns you to page one…

Offline

#26 2005-02-09 20:28:25

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

Re: [archived] hfw_pg: Paginated articles

The doctype is OK, and it doesn’t prevent other pages from validating. EL is the ISO code for Hellenic (Greek). The open &lt;p&gt; tag closes in the next page.

I think this is because Textile opens a paragraph, the plugin inserts a page break, and the paragraph gets closed in the next page.

Offline

#27 2005-02-09 20:34:16

andreas
Member
Registered: 2004-02-28
Posts: 453
Website

Re: [archived] hfw_pg: Paginated articles

>I think this is because Textile opens a paragraph, the plugin inserts a page break, and the paragraph gets closed in the next page.

I don’t understand this sentence. Can you prevent that p from opening?

Offline

#28 2005-02-09 20:39:33

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

Re: [archived] hfw_pg: Paginated articles

That’s the point. Prevent that paragraph from opening. How?

Last edited by Etz Haim (2005-02-09 20:42:33)

Offline

#29 2005-02-09 20:45:07

andreas
Member
Registered: 2004-02-28
Posts: 453
Website

Re: [archived] hfw_pg: Paginated articles

Oh, I think I understand. It is because we actually have one article here.

What happens if you insert the breaking elements – [page], I think, it was – without any line breaks or with just one?

Offline

#30 2005-02-09 21:26:25

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

Re: [archived] hfw_pg: Paginated articles

Fixed problem just by trimming the string 4 bytes to the start and 3 bytes to the end. Someone have a better suggestion? A regular expression recipe?

Offline

Board footer

Powered by FluxBB