67 Posts
Mario Adrian
8 years ago
9
Topic

Hello, how to create a list that shows another article that's created by the same author of the current article you view? How to get the current article's author user id and use it for seblod list?

Thank You

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

This tutorial is for list in list, but for list in article you need to follow the same principle, you can pass values from parent article to the child search using Fields setting - it has this pattern: child_item_search_field=parent_item_search_value

67 Posts
Mario Adrian
8 years ago
0
Level 2

Do you have example of this? I'm having quite hard time understanding the guide as english isnt my native language and there are no pictures guiding it step by step

Any suggestion?

4229 Posts
Kadministrator
8 years ago
1
Level 1

I don't think there is another guide that will do exactly what you would like to do - but it is just a matter of inserting a child list with the right values passed to it and used for search.

67 Posts
Mario Adrian
8 years ago
0
Level 2

Hello

I want to ask whether i have done it right or not because some field doesnt show up like the one in the guide

Context : User can create albums, in profile page it will show user's created album

1. I created Article Properties List to get the article's properties, in this case i want the "created by variable"

Here is the search form

Here is the configure form

Here is the item

2. After that i created List Album

Then i created a seblod list field

And call the list i created before

3. After that i ended in "there is no results"

In your guide there is a field where i need to set the created_by to be matched with the one in the list but i cant see it in my list field properties. Any suggestion? Am i doing it wrong?

4229 Posts
Kadministrator
8 years ago
1
Level 1

If you wish to pass value from parent article to the child list you first need to have field to be passed present on the article (e.g. created_by). Then you need to have search field on the list and search that will receive this value and search by it. In the list field you just specify parent_field_name=child_field_name and list field will pass value of field in the parent to the field in the child search.

If you still can't make things work you can use Seblod services to get things done for you.

67 Posts
Mario Adrian
8 years ago
0
Level 2

I just want clarification, the seblod list field in your guide is this one right?

and

it's different with the one in your guide because the one in your guide have a construction field in it

am i using the wrong field?

4229 Posts
Kadministrator
8 years ago
1
Level 1

Your are obviously using some old version of seblod list field, update your field to get more options.

67 Posts
Mario Adrian
8 years ago
0
Level 2

Hello

I have updated the plugin and now it shows the field

i tried with art_created_by[parent]=art_created_by[child] but it shows no result

am i doing it right?

4229 Posts
Kadministrator
8 years ago
0
Level 1

If you have art_created_by both in content tab of the form&conent type and in search tab of the search&list this should work. 

Please note that this can't work if you use list field on the form as form fields only get values after they are saved.

Get a Book for SEBLOD