121 Posts
deralex
7 years ago
4
Topic

Hello everyone,

I have a content type "products". Every product has its supplier. The supplier is another content item. To link a supplier to a product, the id of the supplier content item is saved to the product table.

In the product list I'd like to show some details of the product's supplier, e.g. phone number or email address. But: I don't want to "copy" these details to the product's table. I want to link suppliers dynamically. So if the phone number of a supplier changes, it should be shown correctly in all the products.

I know I can solve this by creating requests in a beforerender field. Isn't there a better way?

Greez

Alex

Get a VIP membership
1283 Posts
Bucklash
7 years ago
2
Level 1

Hi

Have you tried the List Field

121 Posts
deralex
7 years ago
1
Level 2

Yes, I know that field. Using a list field in a list view means requesting and processing one list for each list item. I don't want to slow down the site that way.

1283 Posts
Bucklash
7 years ago
0
Level 3

Hi

What options are there?

List  Field

Before Render

Search Join

Free Query

I think that's it isn't it?

4229 Posts
Kadministrator
7 years ago
0
Level 1

You can use Join field and/or Search query in append mode to add necessary data into the view

Get a Book for SEBLOD