I am trying to build a tree with categories and articles in a module, so I could show it next to a blog or item view. I found your Form & List Pack field plugin and played a little with it to see if I could achieve what I just described with. First I followed this tutorial (Create a dynamic list within a list item) and I got a list with all categories and the deepest level categories showed a nested list with their articles. Then I tried to nest the categories, but I did not succeed so far.
After following the mentioned tutorial, I added an extra List & Search type (category) and added the Category ID field and you field plugin to the List view. I added the CCK parent ID field to the search view of the previous Category list. In the feld plugin I added a field with "cck_parent_id=cat_id" and I pointed to the previous List & search type. Then I changed the List & Search type for the module to the second type. The result was:
Category1
Category2
Category1
Category3
Category1
Category2
So my question is can it be done with your field plugin and how? OPr would you suggest another approach?
Thanks for your reply, I checked it twice, but both category searches Object fields are set to category. I followed these steps (using _jrmo's tutorial as inspiration)
Create a Subcategories Search / List (set Object to category) and make sure you have the "Category ID" field in your Item View (along with any other fields you want to display)
Create an Articles Search / List type (set Object to Article) and in your Search Form view, make sure you have the “Article Category ID” field.
Go back to your Subcategories Search / List Type and create a new SEBLOD List field (using the field plugin).
In the field List & Search Type fill in Articles
In the "fields" options, fill in art_catid=cat_id.
Create a Category Search / List Type (set Object to category) and make sure you have the "Category ID" field in your Item View
Go to the Subcategory Search / List and in your Search Form view, make sure you have the “CCK Parent ID” field.
Go back to your Categories Search / List Type and create a new SEBLOD List field (using the field plugin).
In the field List & Search Type, fill in Subcategories.
In the "fields" options, fill in cck_parent_id=cat_id and save it
If I select the subcategories as the Search Type, I get a list of categories with their articles properly nested. But when I set the Search Type to categories, the articles are not shown, but the categories are ordered this way:
If you're struggling with this I really recommend taking out a VIP membership and downloading the Intranet app, where this has been implemented already. That way you can pull it apart, analyse how it's done and then make your changes to suit your needs.
Hi folks. Old thread, but still this is a struggle to setup. I've searched and searched, tested and tested, and no matter what I do I can not create a blog app that works well. Anyone managed to solve this?