Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2005-01-12 14:29:14

phiw13
Plugin Author
From: Japan
Registered: 2004-02-27
Posts: 3,079
Website

Re: [plugin] [ORPHAN] zem_nav

I’m testing this from localhost, no live link.
It only seems to work partly for me. On individual article pages, the links work correctly, but I can’t get the ‘title’ attribute to work.
On article list pages, I get not output at all.

Basic structure

========================
[txp:if_individual_article] foo [/txp:if_individual_article]
[txp:txp:if_article_list] bar [txp:txp:if_article_list]
<code>
<ul class=“page-articles”><li><txp:zem_link_to_prev title=“previous ‘%s’”>prev<txp:next_title /></txp:zem_link_to_prev></li><li><txp:zem_link_to_next title=“next: ‘%s’”>next</txp:zem_link_to_next></li></ul>
</code>
—————————————

foo and bar are two forms, pretty basic stuff.

The links on individual article pages work correctly. But no ‘title’ output.

Textpattern RC1, the only difference is I don’t use the standard clean url method. Would that make a difference? I also have zem_link installed.

P.

Last edited by phiw13 (2005-01-12 14:32:52)


Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern

Offline

#14 2005-01-12 23:18:42

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: [plugin] [ORPHAN] zem_nav

zem_nav doesn’t support the title attribute.


Alex

Offline

#15 2005-01-12 23:46:57

phiw13
Plugin Author
From: Japan
Registered: 2004-02-27
Posts: 3,079
Website

Re: [plugin] [ORPHAN] zem_nav

> zem wrote:

> zem_nav doesn’t support the title attribute.

Ack.. I misunderstood something then; your sample code (a few messages above), which uses the title attribute.


Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern

Offline

#16 2005-01-13 01:51:52

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: [plugin] [ORPHAN] zem_nav

Oh, sorry, you’re right. I must’ve backed out that change when I messed up the version numbers.


Alex

Offline

#17 2005-01-13 03:53:41

ubernostrum
Member
From: Lawrence, KS
Registered: 2004-05-05
Posts: 238
Website

Re: [plugin] [ORPHAN] zem_nav

Er. I’m now getting ‘next’ and ‘previous’ links which are formatted according to what I use in zem_rewrite, but with some pretty funky stuff; the permalinks zem_nav is outputting have spaces in them instead of hyphens, and the date-based URLs it’s generating are all for December 31, 1969. Anybody else seeing this?

Last edited by ubernostrum (2005-01-13 03:54:06)


You cooin’ with my bird?

Offline

#18 2005-01-13 21:45:58

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: [plugin] [ORPHAN] zem_nav

There’s a new version up. It should fix zem_rewrite links, and pass attributes like ‘title’ through to zem_link.


Alex

Offline

#19 2005-01-19 18:52:41

keavy
New Member
Registered: 2004-10-08
Posts: 4

Re: [plugin] [ORPHAN] zem_nav

Hello

ooh, i’m looking for something like this to resolve the problem of newer / older links not working with the article_custom form.

I get an error when trying to install this plugin though:

<code>Parse error: parse error, unexpected $ in /tmp/phpXuNadM on line 5</code>

any suggestions would be appreciated :)

Last edited by keavy (2005-01-19 18:53:07)

Offline

#20 2005-01-19 23:10:02

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

Re: [plugin] [ORPHAN] zem_nav

keavy, I think the problem is that you pasted the complete plugin code into the textarea. It should be only the part between the single quotes, i.e. withouth the php tags and the variable “$plugin”

Offline

#21 2005-10-11 21:05:40

grad
Member
From: Poznan, Poland
Registered: 2005-10-04
Posts: 24

Re: [plugin] [ORPHAN] zem_nav

When used with TXP rev. 1011 it returns an error: <code>Fatal error: Call to undefined function: formathref() in (…)\textpattern\lib\txplib_misc.php(455) : eval()’d code on line 36</code>

zem, could you be so kind to make it work in 4.0.x?

Last edited by grad (2005-10-11 21:06:56)

Offline

#22 2005-10-11 23:47:44

phiw13
Plugin Author
From: Japan
Registered: 2004-02-27
Posts: 3,079
Website

Re: [plugin] [ORPHAN] zem_nav

> grad wrote:

When used with TXP rev. 1011 it returns an error: <code>Fatal error: Call to undefined function: formathref() in (…)\textpattern\lib\txplib_misc.php(455) : eval()’d code on line 36</code>

It works fine on my side, @rev1018. Do you use it in combination with the patched version of zem_link ?


Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern

Offline

#23 2005-10-12 08:50:05

grad
Member
From: Poznan, Poland
Registered: 2005-10-04
Posts: 24

Re: [plugin] [ORPHAN] zem_nav

Thanks, I must have missed this info. It works now. However, isn’t it supposed to navigate through articles of the same category only? It goes through all articles in section regardless the category they belong to. I tried it in article form and page form with and without option ‘usecat=1’ and ‘usecat=0’.

I want to navigate in current category only i.e. the category of the currently displayed article.

Last edited by grad (2005-10-12 18:48:16)

Offline

#24 2005-11-10 10:19:29

pieman
Member
From: Bristol, UK
Registered: 2005-09-22
Posts: 491
Website

Re: [plugin] [ORPHAN] zem_nav

I have the same problem as grad…
the links navigate through all categories regardless of whether cat=0 or cat=1

Offline

Board footer

Powered by FluxBB