Textpattern CMS support forum

You are not logged in. Register | Login | Help

#71 2007-10-23 15:37:11

vittorio
Member
From: Roma caput mundi
Registered: 2006-02-01
Posts: 122
Website

Re: [plugin] [ORPHAN] chh_related_articles

uli wrote:

Odd! I wish you the same magic fingers for your keywords problem.

Thank you. But I fear it will be a little bit more difficult, as I don’t even know where i should start. Php code seems like chinese to me… :)


Happily served with Txp: Strampelli.net, Brain Essence, NicolaTranfaglia.com

Offline

#72 2007-10-26 05:28:56

dreamer
Member
Registered: 2007-06-08
Posts: 242

Re: [plugin] [ORPHAN] chh_related_articles

I tried using this plugin. I used the folowing code;

<txp:chh_related_articles relation="keyword" />	

and inserted it into my page.

I then inserted matching keywords for a couple of articles but nothing happened. I didn’t see any of those related articles spew out.

I installed both the chh_related_articles plugin and the chh_article_lib plugin

What did I do wrong?

Offline

#73 2007-12-07 15:34:59

rad
New Member
Registered: 2007-12-07
Posts: 1

Re: [plugin] [ORPHAN] chh_related_articles

BUG FIXED
as a reply to the numerous post about the error messages this pluging creates.

Here instruction how to fix:

go edit

chh_article_lib. about halfway through the code you will find the “lAtts” function. This function gives an array of variables default values. The problem is that in this code not all the variables of the array are listed. you find the right bit of code in chh_related_articles (open as edit): the same funciton (lAtts) appears at the very beginning of the code. copy-paste the full array of variables into chh_article_lib, and thereby replace the partial array in the code.

good luck ;)

Offline

#74 2007-12-07 18:13:51

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,207

Re: [plugin] [ORPHAN] chh_related_articles

rad, you must be some kind of an angel ;))
Yesterday I thought of asking someone for the adoption of this wonderful plugin.
This works for 4.0.5, you mean?


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#75 2007-12-07 18:21:41

renobird
Member
From: Gainesville, Florida
Registered: 2005-03-02
Posts: 786
Website

Re: [plugin] [ORPHAN] chh_related_articles

I’m following along with great anticipation.

This one really gets my vote for inclusion in the TXP core.
I’m sure that will never happen…but I’ve been Christmas shopping this week and have “wishlists” on my mind.

)


Tom

Offline

#76 2007-12-07 19:39:38

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,207

Re: [plugin] [ORPHAN] chh_related_articles

rad, if I do as you advise, the breakclass attribute will be gone. Is this OK?

When I was looking for “breakclass”, I found the line beginning with $atts = array_intersect_key at the very bottom of the plugin code. What about this attribute list, does it also have to reflect the changes?


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#77 2008-04-08 07:26:47

derola
Member
Registered: 2006-03-09
Posts: 21

Re: [plugin] [ORPHAN] chh_related_articles

Thank you for this great plugin.

I use the plugin and works fine and show me all the related articles in a list but I’m trying to show the related articles separated by category (by example)

Now
Race 1 article
…. hotel 1
…. hotel 2
…. restaurant 1

Desired
Race 1 article
…. hotels
……….. hotel 1
……….. hotel 2
…. restaurants
……….. restaurant 1

Each articles has a Category (hotel or restaurant) and custom fields “carrera_directorio” (example: marathon) and “tipo_directorio” (example: restaurant).

Who are the correct way to show related articles as desired.

Thanks

Offline

#78 2008-04-08 08:19:49

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,207

Re: [plugin] [ORPHAN] chh_related_articles

As far as I know the only way to achieve this is to use several instances of the tag, each one restricted to one category.


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#79 2008-04-08 08:24:28

derola
Member
Registered: 2006-03-09
Posts: 21

Re: [plugin] [ORPHAN] chh_related_articles

uli dijo:

As far as I know the only way to achieve this is to use several instances of the tag, each one restricted to one category.

I try to do this but don’t works :( Can you put an example?

Thank you

Offline

#80 2008-04-08 09:23:16

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,207

Re: [plugin] [ORPHAN] chh_related_articles

derola, I’m afraid I was too quick. By its nature any related article tag takes only the category of the current article, compares it to the list of existing articles and displays just those ones matching the criterion. Even txp:related_articles does so.

Have you tried something like …

Hotels
<txp:related_articles match=“Category1”/>

Restaurants
<txp:related_articles match=“Category2”/>

…with both categories being a subcategory of the current article’s category?

CAN NOT WORK! Sorry I couldn’t help you any further. But they have an excellent “How do I …” forum here ;)

Last edited by uli (2008-04-08 09:35:56)


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

Board footer

Powered by FluxBB