117 Posts
deralex
4 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
1279 Posts
Bucklash
4 years ago
2
Level 1

Hi

Have you tried the List Field

117 Posts
deralex
4 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.

1279 Posts
Bucklash
4 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
4 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 VIP membership