# Category tree field in administration

**URL:** <https://forum.shopware.com/t/category-tree-field-in-administration/103858>\
**Category:** Shopware 6 (English)\
**Tags:** administration, programming\
**Created:** [26. April 2024 um 10:44 UTC](https://forum.shopware.com/t/category-tree-field-in-administration/103858 "2024-04-26T10:44:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ordi.timmer](https://avatars.discourse-cdn.com/v4/letter/o/74df32/32.png) [@ordi.timmer](https://forum.shopware.com/u/ordi.timmer)\
**Post date:** [26. April 2024 um 10:44 UTC](https://forum.shopware.com/t/category-tree-field-in-administration/103858/1 "2024-04-26T10:44:38Z")

</div>

Hi,  
I have developed a plugin, that has also a administration part. I have created a page to be able to add some categories. I used „sw-category-tree-field“ tag and it actually works very well. I just realized that I can choose as many categories as I want , but when I save it and store it in database, it saved only 25 of the categories and cuts the rest and does not save them on database. I have checked if there is a limit for this filed on database, and the result is no, there is no limit for the field.  
Is there any way to limit / or set it to unlimit this filed in Shopware 6?

---

<div class="post-metadata">

**Author:** ![Max\_Shop](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@Max\_Shop](https://forum.shopware.com/u/Max_Shop)\
**Post date:** [26. April 2024 um 11:02 UTC](https://forum.shopware.com/t/category-tree-field-in-administration/103858/2 "2024-04-26T11:02:50Z")

</div>

> <https://github.com/shopware/shopware/blob/trunk/src/Core/Framework/Resources/config/packages/shopware.yaml>

Might be a limit in the API.

---

<div class="post-metadata">

**Author:** ![ordi.timmer](https://avatars.discourse-cdn.com/v4/letter/o/74df32/32.png) [@ordi.timmer](https://forum.shopware.com/u/ordi.timmer)\
**Post date:** [30. April 2024 um 10:03 UTC](https://forum.shopware.com/t/category-tree-field-in-administration/103858/3 "2024-04-30T10:03:43Z")

</div>

Thanks for your answer. I checked it so, that I manually write 51 ids in the field in database and Printed out the result of the API in Browser’s Console and I can actually get all 51 items in console but it shows 5 items in Categories Filed in Admin panel and one 20+ item. I think the component that Shopware use for selecting multiple Categories has this limit. This component I mean: „sw-category-tree-field“.  
What do you think? Any Idea?
