Textpattern CMS support forum

You are not logged in. Register | Login | Help

#21 2016-07-09 15:27:39

etc
Developer
Registered: 2010-11-11
Posts: 3,360
Website

Re: jmd_neighbor: Pipe neighboring articles into an article form

giampablo wrote #300253:

This seems to do what I actually need (next and prev navigation with relevant article image backgrounds).
Unfortunately I am playing with 4.6.0 Beta and the plugin gives me this error: Unregisterd_Tag
Should I ask the developer to make the plugin 4.6.0 compatible?

Oops, sorry, it needs some reworking for the same reason that in my previous post. I’ll try to do it quickly.

Edit: ATM, it should suffice to add this at the beginning of the plugins code:

// TXP 4.6 tag registration
if (class_exists('\Textpattern\Tag\Registry')) {
	Txp::get('\Textpattern\Tag\Registry')->register('etc_link_to')
		->register('etc_link_page')
		->register('etc_link_id')
		->register('etc_link_title');
}

Last edited by etc (2016-07-09 15:31:53)

Offline

#22 2016-07-09 15:39:44

giampablo
Member
From: Italy
Registered: 2008-07-17
Posts: 86
Website

Re: jmd_neighbor: Pipe neighboring articles into an article form

Thanks Oleg,
I will try above.

What a timely answer :)

Offline

#23 2016-07-09 15:58:24

giampablo
Member
From: Italy
Registered: 2008-07-17
Posts: 86
Website

Re: jmd_neighbor: Pipe neighboring articles into an article form

etc wrote #300254:

It will not work as is in 4.6, you need to replace $next_id and $prev_id with $thisarticle['next']['thisid'] and $thisarticle['prev']['thisid']. Amazingly, it seems to be no core tag for prev/next ids.

No. Definitely it needs some reworking. Take your time.
And thank you again.

P.S. Registering error disappeared, by the way.

Offline

Board footer

Powered by FluxBB