This site uses cookies and similar technologies.

If you don't change browser settings, you agree to it.

I understand
103 Posts
shubhaanshu
3 years ago
Topic

Hello Friends!

Is there any way to list related content type's fields in main content type's list?

I created 2 content types "content1" & "content2" with multiple fields in each. In "content2" I am using select dynamic to add relation with content1.

in content2's list & search I want to show some fields from the related rows of content 1.

Thanks.

Get a VIP membership
4229 Posts
Kadministrator
3 years ago
1
Level 1

Using list field you can pass stored related ids to the child search and use those ids in child to show only items matching those ids.

103 Posts
shubhaanshu
3 years ago
0
Level 2

Thanks for your reply Klas, I am trying but it is not working. Even a blank page displayed.

4229 Posts
Kadministrator
3 years ago
3
Level 1

To find out why your results are not showing turn on debugging to see which parameters are used in the query, you probably need to adjust matching.

This tutorial explains how to pass parameters, it si written for list in list but content to list should work in the same way https://www.seblod.com/resources/tutorials/create-a-dynamic-list-within-a-list-item

103 Posts
shubhaanshu
3 years ago
2
Level 2

Thank you very much Klas! After a long struggle, finally as per your guidance I got to accomplish it. I needed to update forms & list pack manually by uploading the latest zip (seblod updater was not detecting it to update) I found the error in list pack regarding this required file "components/com_cck/helpers/helper_define.php

I am grateful to you!

Best Regards!

4229 Posts
Kadministrator
3 years ago
1
Level 3

Hi,

which error did you find?

103 Posts
shubhaanshu
3 years ago
0
Level 4

some error about required helper not found "components/com_cck/helpers/helper_define.php" in "cck_list.php" 

The error gone after re-installation of "forms & list pack 1.5.1"

Get a Book for SEBLOD