Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-09-28 20:20:35

makason
Member
From: Hilo, Hawaii
Registered: 2005-01-23
Posts: 34
Website

How to link articles on a one way relationship?

I need a way to link a related article to a article on a one way relationship.
I would like to set a custom field to and assign related articles. For now I was working with the thm_if_article plugin in a page template but this is impractical for more than a few of these conditionals.

Obviously I cannot call a article within a article form.
How can this be set in a article custom field?

page template:
<code>
<!— 2 combo (homes & museum) —>
<txp:thm_if_article article=“265”> <txp:article_custom id=“159” form=“article_full” />
<txp:article_custom id=“237” form=“article_full” />
</txp:thm_if_article>
</code>

Offline

#2 2006-09-28 21:41:46

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: How to link articles on a one way relationship?

Did you have a look at chh_keywords?

Offline

#3 2006-09-28 23:03:10

makason
Member
From: Hilo, Hawaii
Registered: 2005-01-23
Posts: 34
Website

Re: How to link articles on a one way relationship?

Thanks, Els

Yes I did. I’m also using chh_related _articles in other areas. Both plugins build relationships that work both directions, which is intended.

Lets say if article 10 is displayed I also want to display article 15 as a combo. But when viewing article 15, 10 should not be displayed. So I want to link an article directly to an article.

I could use categories, but I already have a lot and it doesn’t make sense to create a category just to connect 2 articles…

for example:
http://www.parkerranch.com/Activities-Public/237/visit-historic-puuopelu

when article 237 is called I also pull in article 216:
http://www.parkerranch.com/Activities-Public/216/puuopelu-gardens

since they are offred as a combo, but also seperate.

I’m using this plugin for this in a page template

<code>
<!— link garden & homes articles —>
<txp:thm_if_article article=“237”> <txp:article_custom id=“216” form=“article_full” />

</txp:thm_if_article>
</code>

Going from here I thought it would be nice if could have a custom field in an article to do this.

Offline

Board footer

Powered by FluxBB