Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#111 2015-10-07 07:07:10
- gilibaus
- Member
- From: Milan, Italy
- Registered: 2013-08-14
- Posts: 73
- Website
Re: [plugin] [ORPHAN] chh_related_articles
Thank you colak, but I’ll leave native tags as a last option. I am looking for something more flexible out-of-the-box, I mean something to list related articles based on section, category, keyword or relevance. I cannot find a tool like that, so I was wondering if there is an updated version of chh_related_articles that can fit nicely into Txp 4.5.7
Offline
#112 2015-10-07 09:20:26
- etc
- Developer
- Registered: 2010-11-11
- Posts: 4,076
- Website
Re: [plugin] [ORPHAN] chh_related_articles
gilibaus wrote #295430:
I am looking for a plugin for related articles, something more flexible than the txp:related_articles tag. … maybe there is a more recent (and not orphan) plugin with same features?
It’s not exactly (nor only) for related articles, but etc_search
is more recent and yet not orphan. :) If you install it, go to “Extensions->Search settings” and create a search form (say, 1) with the article-context query
ID!=<txp:article_id /> AND {/^[\w\s\-]+$/::Keywords;/#(.+)/::Section='$1'} ORDER BY Title
Then calling
<txp:etc_search_results id="1" form="some_article_form"
query='(<txp:keywords />) #<txp:section />' />
within an article (form) will output the keywords-related articles from the same section. You can add more chunks to the query for targeting by categories, author and so on.
Or switch to 4.6, where <txp:article_custom />
accepts exclude
attribute:
<txp:article_custom exclude='<txp:article_id />' keywords='<txp:keywords />' ... />
Offline
#113 2015-10-07 19:05:36
- gilibaus
- Member
- From: Milan, Italy
- Registered: 2013-08-14
- Posts: 73
- Website
Re: [plugin] [ORPHAN] chh_related_articles
Got it: one way or another I will have to get my hands dirty with native tags and/or database queries ;) Thank you all for your suggestions.
Offline
#114 2017-03-06 05:33:49
- alicson
- Member
- Registered: 2004-05-26
- Posts: 465
- Website
Re: [plugin] [ORPHAN] chh_related_articles
Is there an update to this? chh_related_articles was really great because it covered many options of fields including custom fields.
(And thanks for the etc_search mention — won’t replace what I need for related articles, however I needed a live_search replacement :)
textpattern.org :: find and share Textpattern resources
docs.textpattern.io :: Textpattern user documentation
Offline
#115 2017-03-06 08:44:08
- etc
- Developer
- Registered: 2010-11-11
- Posts: 4,076
- Website
Re: [plugin] [ORPHAN] chh_related_articles
alicson wrote #304420:
Is there an update to this? chh_related_articles was really great because it covered many options of fields including custom fields.
IIRC, we have extended match
attribute in 4.6 to author, keywords, custom fields… Try something like
<txp:related_articles match="Category1, My_Custom_Field" />
(And thanks for the etc_search mention — won’t replace what I need for related articles, however I needed a live_search replacement :)
I’m sure it can replace what you need, just say what :-)
Offline
#116 2017-03-06 09:31:41
- alicson
- Member
- Registered: 2004-05-26
- Posts: 465
- Website
Re: [plugin] [ORPHAN] chh_related_articles
Oh yay! I’ll try txp:related_articles again, that will hopefully cover it.
Thanks!
**update: <txp:related_articles />
is perfect.
Last edited by alicson (2017-03-06 10:18:55)
textpattern.org :: find and share Textpattern resources
docs.textpattern.io :: Textpattern user documentation
Offline