Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-09-29 21:28:45

squaredeye
Member
From: Greenville, SC
Registered: 2005-07-31
Posts: 1,495
Website

best method for making articles related.

There are numerous ways for making articles relate to one another.
currently I am using Wilshire’s rss_unlimited_categories to output categories that help users search through related articles.

However, I’d like to add a second type of definition for searching and I am trying to figure out if I should use keywords or custom_fields or if I have missed something and there is a way to do this with Wilshire’s plugin?

Articles now are categorized by topic: culture, friendship, power, etc.
I would like to have a separate list of books that the articles are based off of: ie: Matthew, Mark, Luke, John… etc.

I want to keep these lists separate.

I had in mind, throwing the book that the article is based on into a custom field, and then outputting those articles in a list restricted to articles that have that custom field.

Are there better ways?
Ideas?

Thanks,

Matthew


Offline

#2 2006-10-03 14:48:20

jordi
Member
From: Barcelona
Registered: 2005-09-14
Posts: 94
Website

Re: best method for making articles related.

Have you tried chh_related_articles?

Offline

#3 2006-10-03 15:32:19

squaredeye
Member
From: Greenville, SC
Registered: 2005-07-31
Posts: 1,495
Website

Re: best method for making articles related.

I landed on chh_keywords instead. It works well. Although I now need it to output the number of articles that use that keyword ie:
  • dogs (2)

Thanks for the thought though:

Here’s how I’m using it:

the page:

<code>
<txp:if_category>
<txp:rss_unlimited_categories_article_list section=“sermons” form=“sermon-list” />
<txp:else />
<txp:if_individual_article>
<txp:article_custom section=“sermons” status=“live” form=“sermons” limit=“1” />
<txp:else />
<txp:chh_if_keywords>
<txp:chh_keywords_articles form=“sermon-list” section=“sermons” />
<txp:else />
<txp:article_custom section=“sermons” limit=“1” status=“sticky” />
<txp:article_custom section=“sermons” limit=“10” pageby=“10” form=“sermon-list” status=“live” /> </txp:chh_if_keywords>
</txp:if_individual_article>
</txp:if_category>
</code>

in the article forms

<code>
<ul class=“tagged-bible”>
<txp:chh_keywords_list field=“bible-book” section=“sermons” break=“li” />
</ul>
</code>

Last edited by ma_smith (2006-10-03 15:32:38)


Offline

Board footer

Powered by FluxBB