Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#91 2008-06-20 10:28:56
- gomedia
- Plugin Author
- Registered: 2008-06-01
- Posts: 1,373
Re: [plugin] [ORPHAN] chh_related_articles
rad wrote:
BUG FIXED
and Uli questioned replacing the breakclass attribute.
To fix all the errors, follow rad’s instructions and then re-insert the line:
'breakclass' => '',
into the list of attributes (I put it after class).
Adi
Offline
#92 2008-06-20 12:46:35
- uli
- Moderator

- From: Cologne
- Registered: 2006-08-15
- Posts: 4,316
Re: [plugin] [ORPHAN] chh_related_articles
Thanks for posting, Adi!
Have you applied kemie’s patch too? Or is that one just a fix for the same problem in a different place?
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
#93 2008-06-20 13:02:09
- gomedia
- Plugin Author
- Registered: 2008-06-01
- Posts: 1,373
Re: [plugin] [ORPHAN] chh_related_articles
uli wrote:
Have you applied kemie’s patch
Hi, Uli.
The short answer is no. The long answer is: I don’t think I need to because
- All the error messages have now disappeared
- I’m not sure what it actually fixes anyway
But I’ll bear it in mind if things go pear-shaped again.
Thanks,
Adi
Offline
#94 2008-06-20 15:49:00
- redbot
- Plugin Author
- Registered: 2006-02-14
- Posts: 1,410
Re: [plugin] [ORPHAN] chh_related_articles
Sorry for the intrusion but I think every feature of this plugin (and lots more) can be achieved now with smd_query.
The same with chh_article_custom
Last edited by redbot (2008-06-20 15:51:35)
Offline
Re: [plugin] [ORPHAN] chh_related_articles
… if you know SQL :-)
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Hire Txp Builders – finely-crafted code, design and Txp
Offline
#96 2008-06-20 15:57:00
- uli
- Moderator

- From: Cologne
- Registered: 2006-08-15
- Posts: 4,316
Re: [plugin] [ORPHAN] chh_related_articles
redbot wrote:
Sorry for the intrusion but I think every feature of this plugin (and lots more) can be achieved now with smd_query.
The same with chh_article_custom
Yes this is something for wimps who like guard-rails ;)
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
#97 2008-06-20 16:46:11
- redbot
- Plugin Author
- Registered: 2006-02-14
- Posts: 1,410
Re: [plugin] [ORPHAN] chh_related_articles
uli wrote:
Yes this is something for wimps who like guard-rails ;)
For the record I’m a certified ignorant with sql but nonetheless, with a little effort, I’ve managed to elaborate some simple query. So I think everybody can.
Anyway you’re right, I didn’t think about that and didn’t want to sound like a bragger ;)
Offline
#98 2008-06-20 16:54:34
- uli
- Moderator

- From: Cologne
- Registered: 2006-08-15
- Posts: 4,316
Re: [plugin] [ORPHAN] chh_related_articles
Np :)
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
Re: [plugin] [ORPHAN] chh_related_articles
I’ve found this plugin quite handy on a number of sites. It’s easy to use to relate articles via something other than categories. I’d second adding its functionality to txp’s core. You’ve already got the <txp:related_articles /> tag, its functionality just needs to be expanded (easier said than done, I know!).
Thank you for posting this fix, by the way.
Offline
#100 2009-08-17 07:59:02
Re: [plugin] [ORPHAN] chh_related_articles
hello
i need a wrapper for the related posts like <p> or <div>. my actualy code:
<p><txp:chh_related_articles relation="keywords" label="Verwandte Artikel: " labeltag="strong" limit="5" break=", " /></p>
the problem: if no related post exist, the wrapper is empty and invalid. what i need is someting like <txp:chh_if_related_articles />.
has everyone a solution for my problem?
greets
andi
Last edited by ronan (2009-08-17 07:59:35)
Offline
#101 2009-08-17 10:05:08
- uli
- Moderator

- From: Cologne
- Registered: 2006-08-15
- Posts: 4,316
Re: [plugin] [ORPHAN] chh_related_articles
wraptag="p"?
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
#102 2009-08-17 11:53:32
Re: [plugin] [ORPHAN] chh_related_articles
wraptag don’t include the label. but thanks for your input.
Offline
#103 2009-08-17 16:36:59
- uli
- Moderator

- From: Cologne
- Registered: 2006-08-15
- Posts: 4,316
Re: [plugin] [ORPHAN] chh_related_articles
ronan wrote:
wraptag don’t include the label.
Sorry, I obviously still don’t understand.
Do you mean labeltag="p"? If this is not helpful, there’s chh_if_data in order to remove empty <p>s from your code example …
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
#104 2009-08-17 16:45:00
- els
- Moderator

- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: [plugin] [ORPHAN] chh_related_articles
Or variable and if_variable :)
<txp:variable name="hasarticles" value='<txp:chh_related_articles relation="keywords" limit="1" />' />
<txp:if_variable name="hasarticles" value="">
<txp:else />
<p><txp:chh_related_articles relation="keywords" label="Verwandte Artikel: " labeltag="strong" limit="5" break=", " /></p>
</txp:if_variable>
Last edited by els (2009-08-17 16:45:55)
Offline
#105 2009-08-17 18:20:57
Re: [plugin] [ORPHAN] chh_related_articles
uli labeltag wrap the label only, wraptag the article-output. i need a solution to wrap both in a element. the was, when no articles exist, the p-element was empty.
els your awesome, it works like a charme :)
thanks!
Offline