28 Posts
pabro
6 years ago
9
Topic

Hi,

I am using SEBLOD Form & List Pack and it works so far. 

But now i get any errors trying to get a list in list and in child list also a list (list > list > list).

I have a list to display category description, in this list is insert a list to display descriptions of child categories, in list for child categories is a list to display articles related to these (child)categories.

Now i get only first child category and related articles and for each other only notice below (36 is id of child-category)

Notice: Undefined offset: 36 in …/libraries/cck/rendering/rendering.php on line 709 
Notice: Trying to get property of non-object in …/libraries/cck/rendering/rendering.php on line 709
Notice: Undefined offset: 36 …/libraries/cck/rendering/rendering.php on line 711
Notice: Trying to get property of non-object in…/libraries/cck/rendering/rendering.php on line 711


If i use menu to link direct to list #2 all works. if i remove list #3 list #1 shows all child categories. 

So, is this a bug or does anything go wrong?

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

Check if you have made any errors in the configuration, most common one is to add extra space before/after field names in list field configuration. 

Otherwise I don't think multiple levels of nesting are supported.

28 Posts
pabro
6 years ago
7
Level 2

Hi Klas, 

all lists works separately or without third nested list, so i think its seems not to be supported or a bug. Extra spaces are also checked ;)

Is there a other solution or work around to get the view i need? 


I want to show first fields of the parent category, below fields of child categories each followed by fields of related articles.

4229 Posts
Kadministrator
6 years ago
6
Level 3

You would need to add code to beforeRender and render those fields using JCckContent classes.

28 Posts
pabro
6 years ago
5
Level 4

Can you give me a hint how to render fields related to a special cat_id via beforeRender and JCckContent classes? E.g. i am on list for child categories and want to display the category description and other fields of parent category. I have read some posts but found no solution for this. 

4229 Posts
Kadministrator
6 years ago
4
Level 5

You gotta know mysql/php for this, first query for records in database then render them using Seblod. Basically you would need to do the same as your nested list that doesn't work.

28 Posts
pabro
6 years ago
3
Level 6

Thank you, is there a documentation or example what i need to render for this issue or how use JCckContent classes?

4229 Posts
Kadministrator
6 years ago
2
Level 7

A word of warning - tutorial was written before latest changes to JCckContent classes, not all information is up to date - now every storage object has it's own implementation of this class, some more info is available if you search the forum.

28 Posts
pabro
6 years ago
1
Level 8

I dont want to record data, i want do get already recorded value of fields which are not related to actual list!? I can use simple sql statement but than i get the seblod tags inserted in description field to. I have searched on forum but did not get any helpfully example/infos. Maybe i should use module, but this is very uncomfortable and confusing.

4229 Posts
Kadministrator
6 years ago
0
Level 9

Using JcckContent you can load records as well, not only store. There is also JCckDev class to help you render fields.

Get a VIP membership