Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#25 2006-02-13 05:54:56

rbe
Member
Registered: 2006-02-12
Posts: 27
Website

Re: [plugin] [ORPHAN] chh_related_articles

Hmmm… I tried the <code>relation=“piano”</code> and it didn’t pan out either… Thanks for the quick response! I really appriciate the help; let me know if there is anything I can do to make it easier on your side to track it down. Thanks again!

Offline

#26 2006-02-13 15:32:36

takshaka
Archived Plugin Author
From: Below the Manson-Nixon line
Registered: 2004-06-02
Posts: 97
Website

Re: [plugin] [ORPHAN] chh_related_articles

Okay. Fixed by version 1.04 of chh_article_lib.

Offline

#27 2006-02-13 22:32:44

rbe
Member
Registered: 2006-02-12
Posts: 27
Website

Re: [plugin] [ORPHAN] chh_related_articles

THANK YOU takshaka… That worked perfectly! I really appriciate it. You are on top of it!

Offline

#28 2006-03-01 22:41:57

psimsy
Member
From: Londinium
Registered: 2004-12-27
Posts: 13

Re: [plugin] [ORPHAN] chh_related_articles

Hi
I am using your plugin in a form to return a list on related articles but it seems to be ignoring the category=“cuttings” and section=“press-releases”

I want to build 2 lists 1 related articles of a cat and one related to a section. eg..
<code><txp:chh_related_articles category=“cuttings” label=“Cuttings” />
<txp:chh_related_articles section=“press-releases” label=“Press releases” /></code>

Is it possible to use it twice in a article form and why would it be ignoring the cat /sect?

any help would …well help. p

Offline

#29 2006-03-03 00:17:26

takshaka
Archived Plugin Author
From: Below the Manson-Nixon line
Registered: 2004-06-02
Posts: 97
Website

Re: [plugin] [ORPHAN] chh_related_articles

psimsy wrote:
I want to build 2 lists 1 related articles of a cat and one related to a section. eg..

Maybe there is a misunderstanding. If you just want to list some articles in the category “cuttings”, then all you need is <txp:article_custom category="cuttings" form="whatever" />. The same goes for the section.

With chh_related_articles (or txp:related_articles for that matter), you don’t specify a category in the tag, it is chosen based on the category or categories of the current article.

Offline

#30 2006-04-01 11:26:41

vesam
New Member
Registered: 2005-08-14
Posts: 4

Re: [plugin] [ORPHAN] chh_related_articles

Hi,

to make short story even shorter: I’m in progress of making multilinual site and as I need a two level navigation and have section to work as language selection I’m looking at having chh_related_articles to work as 2nd level of navigation.

Now only caveat is that the current article is not shown in the related list (naturally) and I was wondering if there would be a way / quick hack to have it to display in the list? (together with glx_hl_current_article and custom list form I would get a list of articles in the same category as the one displayed with current article hilighted in it).

Thanks

  • * * * Edit: this woks like lighting a smoke while waiting a bus. Right after posting this I took another look on the plugin code and changed line 178 to:

$where = “Status = ‘4’” .

After the change it works like I wnt to. Now all I need is a plugin that would output a list of categories, hilight the current category by the one you are currently viewing and would print a link to the “first” article in the category…

Last edited by vesam (2006-04-01 12:32:39)

Offline

#31 2006-04-05 20:49:51

tinyfly
Member
From: Dallas, Texas
Registered: 2004-05-10
Posts: 462
Website

Re: [plugin] [ORPHAN] chh_related_articles

Coke,

I need to output related articles for only category2 is that possible or could you add that? Often I don’t want articles to match both categories only one or the other.

Last edited by tinyfly (2006-04-05 20:52:04)

Offline

#32 2006-04-06 05:11:52

Shaliza
Member
Registered: 2006-01-22
Posts: 59

Re: [plugin] [ORPHAN] chh_related_articles

Great plugin!

Offline

#33 2006-04-09 23:03:35

nardo
Member
From: tuvalahiti
Registered: 2004-04-22
Posts: 741

Re: [plugin] [ORPHAN] chh_related_articles

on a Windows server, always getting this error when installing the plugin:

<code>PHP has encountered an Access Violation at 01334802 <?php
function chh_related_articles($atts) { global $thisarticle, $pretext; require_plugin(‘chh_article_lib’);

$atts = lAtts(array( // inherited attributes ‘label’ => ‘’, ‘break’ => br, ‘wraptag’ => ‘’, ‘limit’ => 10, ‘class’ => </code>

I had the server restarted but no change. I understand this is likely a Windows-PHP issue, but thought I’d bring it to your attention … other plugins (including chh_article_custom) load fine

edit to get around the prob, installed the plugin via the plugin cache dir (refer to Zem’s plugin tutorials) and it works fine

Last edited by nardo (2006-04-12 00:09:10)

Offline

#34 2006-04-12 00:07:50

nardo
Member
From: tuvalahiti
Registered: 2004-04-22
Posts: 741

Re: [plugin] [ORPHAN] chh_related_articles

would it be possible to add reference to an article’s title when checking relationships?

relation="title->keywords"

as an example: if you had main events, each with satellite programs, the latter could just add their respective main event’s title in the keywords … there wouldn’t be a need to add the main event’s title to its own keywords as well

(I realise there’s workarounds, e.g. using categories, but in one case, this wasn’t possible)

Offline

#35 2006-04-20 08:41:11

skoggy
Member
From: Westcoast of Sweden
Registered: 2005-03-27
Posts: 209
Website

Re: [plugin] [ORPHAN] chh_related_articles

Thanks for this plugin!

But I can´t figure out how to use it on my frontpage (article list). The thing(?) is that I have the related articles in a different div than the article content. You can see it in the middle of the header on my site (piece of paper with clip)

As allways, it seems like a simple thing to do, but I´m lost in the dark…

Offline

#36 2006-05-19 10:35:08

advertizer
New Member
Registered: 2006-03-03
Posts: 7
Website

Re: [plugin] [ORPHAN] chh_related_articles

Thanks for this plugin!
This plugin supporting pagination? Article on page… Standart TXP tag navigation </txp:newer> not working :(

Offline

Board footer

Powered by FluxBB