Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-08-13 21:36:26

nemozob
Member
Registered: 2008-04-15
Posts: 36

How to associate one article with another?

I’m building a site that will have 5 Venues, 10 Events (2 per Venue), and 20 Speakers (two per Event).

For example, when I click on an Event it would go to its single Event page. On that page I would first display the Event title and body of the that article, no problem there. But I would also like to display the Speakers (with links to their pages) and the Venue (again, with a link to the Venue page) associated with that Event.

What’s the best way to establish relationships between all these different entries?

Offline

#2 2008-08-14 00:39:47

joebaich
Member
From: DC Metro Area and elsewhere
Registered: 2006-09-24
Posts: 507
Website

Re: How to associate one article with another?

Use 3 Custom Fields containing the links to Speaker 1, Speaker 2 and the Venue pages for each event. For example, where John Doe is Speaker 1 for the event and his article ID is 25, the entry in the Speaker 1 Field would be

<txp:permlink id="25">John Doe</txp:permlink>

In the page template, possibly using a form, the basic code would be something like:

Speakers: <txp:custom1/> and <txp:custom2/><br/>Venue: <txp:custom3/>

Offline

Board footer

Powered by FluxBB