Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-03-01 18:21:30

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

Creating relationships between articles

I have been working with textpattern for a while now and it’s great. But I have one recurring problem that i just can’t seem to solve. Having worked with lots of cat/section plugins nothing seems to do what i need…It’s a bit more of a cms use than plain blogging, but surely not impossible…

Here is an outline of my requirement

I have a section called ‘projects’ – in that section 4 Cat’s ‘Museum’, ‘Interior’, ‘Exhibition’, ‘Installation’

Alongside this is a series of section ‘Article’ – categories ‘Awards’, ‘Bibliography’ etc

It’s a simple portfolio structure. Now the issue that I have is..I want to call a list of related articles into individual project pages.

ie. section ‘Project’ – cat ‘Museum’ – title ‘Some Museum’ has ‘Awards’, ‘Bibliography’ links to other related articles.

I have set up cat’s for all the project names, but short of hardcoding a page every single project there seems to be nothing that will build a tightly defined list of related articles.

I have tried loads of nice plugins that work well eg.
chh_article_custom
rss_suparchive

If anyone can shed a little light, i could stop scratching my head.

Offline

#2 2006-03-01 18:43:52

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

Re: Creating relationships between articles

Did you have a look at chh_keywords?

Offline

#3 2006-03-01 19:29:42

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

Re: Creating relationships between articles

Thanks doggiez. I have had a look at chh_keywords. If i am using it correctly it creates a link on the page to a default page with links to all the articles with that keyword?

The issue i have with that is it doesn’t display a simple list of related articles on the page. Also it feels odd to categorise AND keyword with the same information.

Conceptually this is what i am doing, it doesn’t work but perhaps it expresses better my aims.

<code><?php
$category1 = ‘<txp:category1 />’;
?>

<txp:article_custom form=“list” category=”<?php echo “$category1”; ?>” section=“article” sortby=“Posted” sortdir=“desc” listform=“list” />
</code>

So if category1 is the cat that shares the relationships – this would build a list of articles that related exactly to this cat.

Last edited by psimsy (2006-03-01 19:31:58)

Offline

#4 2006-03-01 20:33:47

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

Re: Creating relationships between articles

Offline

#5 2006-03-01 20:49:52

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,330
Website Mastodon

Re: Creating relationships between articles

We had a similar puzzle yesterday: Use php to nest tags.

Offline

Board footer

Powered by FluxBB