We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

related entries plugin?

Development and Programming

Paul Cripps (Nine Four)'s avatar
Paul Cripps (Nine Four)
104 posts
16 years ago
Paul Cripps (Nine Four)'s avatar Paul Cripps (Nine Four)

I’m building a simple “tips” site allowing the editors to add a Race and list the horses they think will do well.

So we have two weblogs / sections:

1.Race details a. Race name b. Going / ground conditions c. Length of race d. Type of Race e. etc

2.Horses a. Name b. Age c. Jockey d. Trainer e. Etc

I have tried using the related field and the test results are here: http://www.luckyjo.co.uk/index.php my issue or problem is that the Race details are repeated for every horse.

I want it to work so that you have the Race details then ALL horses listed. There could be a single horse or multiple for each race.

What is the best way to achieve this? Do I need and could anyone recomend a plugin?

p.s. I’d like to point out this is NOT A BETTING SITE, just a simple means to give advice and monitor results.

       
Boyink!'s avatar
Boyink!
5,011 posts
16 years ago
Boyink!'s avatar Boyink!

Which weblog has the relationship field?

I’m thinking you want to have the relationship field in the horse weblog - so add a horse, choose the race that it’s in.

Then your template would run a weblog:entries tag pulling from the Races weblog, and use reverse_related_entries to pull in the horses that are in that race.

       
Paul Cripps (Nine Four)'s avatar
Paul Cripps (Nine Four)
104 posts
16 years ago
Paul Cripps (Nine Four)'s avatar Paul Cripps (Nine Four)

I like the soun of that I’ll give it a go.

Failing that I thin the plugins “playa” or the sol space “Related Entries 1.0.4” will also help.

       
Boyink!'s avatar
Boyink!
5,011 posts
16 years ago
Boyink!'s avatar Boyink!

Fair enough - just for what you’ve specified so far (assigning and displaying horses to a race) I don’t think you need a plugin, but those do offer some advanced features that might appeal to you.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.