# Categories and Sub Categories

**URL:** <https://community.glideapps.com/t/categories-and-sub-categories/12611>\
**Category:** Feature Requests\
**Created:** [July 16, 2020, 6:11pm UTC](https://community.glideapps.com/t/categories-and-sub-categories/12611 "2020-07-16T18:11:23Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tecmall](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/tecmall/32/6069_2.png) [@Tecmall](https://community.glideapps.com/u/Tecmall)\
**Post date:** [July 16, 2020, 6:11pm UTC](https://community.glideapps.com/t/categories-and-sub-categories/12611/1 "2020-07-16T18:11:23Z")

</div>

Hi Gliders,

I’m sure this has been touched on before but I can’t seem to find the solution. I have an catalog/store app i’m working on and have categories and sub-categories for each product. I have the category style setup fine (// images attached) but I would like when you click on the category the sub categories could be sorted and scrolled horizontally (for the moment I get everything in one big section that would make no sense in scrolling horizontally //images attached) and even be able to go to another level of search inside certain sub categories (just like the top level category section).

I will attach images of what i am talking about,

Thanks for your help.

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/2X/e/e882e27cefafc3c736a8f01741cb0ff7f0c52a8d.jpeg)  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/2X/0/04f80f10f40d0521b605106cdd07059d4fef06ef.jpeg) ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/2X/c/cd964d89f86ad8fe886425e2de61da02343e9798.jpeg)

Copy of current spreadsheet [https://docs.google.com/spreadsheets/d/1D8W9DBlJOF1aEmdjcD1XyxGk74cd-qpWuMX0qV9ukWk/edit?usp=sharing](https://docs.google.com/spreadsheets/d/1D8W9DBlJOF1aEmdjcD1XyxGk74cd-qpWuMX0qV9ukWk/edit?usp=sharing)

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/2X/d/da2df310b8e488cc7a1a9502a5cae30c73f4b5d5.png)  
Link to glideapp:  
[https://tecmall-ec.glideapp.io/](https://tecmall-ec.glideapp.io/)

---

<div class="post-metadata">

**Author:** ![Lucas\_Pires](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/lucas_pires/32/64863_2.png) [@Lucas\_Pires](https://community.glideapps.com/u/Lucas_Pires)\
**Post date:** [July 16, 2020, 9:35pm UTC](https://community.glideapps.com/t/categories-and-sub-categories/12611/2 "2020-07-16T21:35:44Z")

</div>

[![](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/1/c/1c8601c76ad56a2ac563d7c1b709a3b0d2fc362c.jpeg "Multiple Categories | Glide Apps Tutorial") ](https://www.youtube.com/watch?v=SL-GekJLtTA)

---

<div class="post-metadata">

**Author:** ![Tecmall](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/tecmall/32/6069_2.png) [@Tecmall](https://community.glideapps.com/u/Tecmall)\
**Post date:** [July 16, 2020, 10:58pm UTC](https://community.glideapps.com/t/categories-and-sub-categories/12611/3 "2020-07-16T22:58:50Z")

</div>

I have seen this but how would I go about this in my current situation, do I make multiple sub category columns for each category row or make two columns with all the categories and sub categories listed side by side?

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/2X/a/a8ecd9b85901ad32c8e748dbf2e27d635907bc87.png)  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/2X/c/cd20fa37727c6ba53e9ba9bec9cd6d74765c7c5d.png)

I cant seem to get this right thanks for any help…

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [July 16, 2020, 11:48pm UTC](https://community.glideapps.com/t/categories-and-sub-categories/12611/4 "2020-07-16T23:48:14Z")

</div>

You make multiple rows for that, for example:

| Category | Sub-category |
| --- | --- |
| Case, Fuentes de Poder, Cables | Case |
| Case, Fuentes de Poder, Cables | Cable |
| Case, Fuentes de Poder, Cables | Fuente |
| Case, Fuentes de Poder, Cables | Hub |

---

<div class="post-metadata">

**Author:** ![Tecmall](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/tecmall/32/6069_2.png) [@Tecmall](https://community.glideapps.com/u/Tecmall)\
**Post date:** [July 17, 2020, 1:17am UTC](https://community.glideapps.com/t/categories-and-sub-categories/12611/5 "2020-07-17T01:17:16Z")

</div>

I have done this in a new sheet like the example here, but I make a relation to my product sheet and it does not make seperate sections that I can make independant.

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/2X/a/a8ecd9b85901ad32c8e748dbf2e27d635907bc87.png)

I think I am confusing the relations or maybe not putting this in the right sheet

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [July 17, 2020, 1:22am UTC](https://community.glideapps.com/t/categories-and-sub-categories/12611/6 "2020-07-17T01:22:27Z")

</div>

What is your current relation settings?

---

<div class="post-metadata">

**Author:** ![Tecmall](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/tecmall/32/6069_2.png) [@Tecmall](https://community.glideapps.com/u/Tecmall)\
**Post date:** [July 17, 2020, 1:29am UTC](https://community.glideapps.com/t/categories-and-sub-categories/12611/7 "2020-07-17T01:29:57Z")

</div>

I have seperate sheet subcategory to subcategory products sheets relation

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/2X/0/0dddd62b00a45695a24a5381e0272c98aac72f84.png)

and vice versa on product page

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/2X/5/53163548acbdb93e3160976d068f856d5108b1a3.png)

Neither one is letting me sort items through sub categories

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [July 17, 2020, 1:40am UTC](https://community.glideapps.com/t/categories-and-sub-categories/12611/8 "2020-07-17T01:40:47Z")

</div>

Seems like you’re setting the right relations. What do you mean:

> [@Tecmall](#):
>
> neither one is letting me sort items through sub categories

Is it not showing the right way on your screen? Are you using a details view or a link to screen view?

---

<div class="post-metadata">

**Author:** ![Tecmall](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/tecmall/32/6069_2.png) [@Tecmall](https://community.glideapps.com/u/Tecmall)\
**Post date:** [July 17, 2020, 1:54am UTC](https://community.glideapps.com/t/categories-and-sub-categories/12611/9 "2020-07-17T01:54:33Z")

</div>

I got it with the other method, using this method

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/2X/c/cd20fa37727c6ba53e9ba9bec9cd6d74765c7c5d.png)

Using this relation.

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/2X/b/b264193d442de8fbeab9bab7239df2946acee1fa.png)

And filtering with the subcategory rows

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/2X/7/7dbfcb6318bf0fde03f1fa44a1d70a9f4f030ccf.jpeg)

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [July 17, 2020, 1:55am UTC](https://community.glideapps.com/t/categories-and-sub-categories/12611/10 "2020-07-17T01:55:21Z")

</div>

That’s not really scalable. You can choose “Link to screen” and set the relation to be your value from your original way, if I understand it right.

---

<div class="post-metadata">

**Author:** ![Tecmall](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/tecmall/32/6069_2.png) [@Tecmall](https://community.glideapps.com/u/Tecmall)\
**Post date:** [July 17, 2020, 2:41am UTC](https://community.glideapps.com/t/categories-and-sub-categories/12611/11 "2020-07-17T02:41:21Z")

</div>

Can you elaborate a bit on this I dont know what is Link to screen and what the cababilities would be for this?

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [July 17, 2020, 2:53am UTC](https://community.glideapps.com/t/categories-and-sub-categories/12611/12 "2020-07-17T02:53:48Z")

</div>

Let’s say I have categorie, sub-categories and items like you.

In the first screen for categories I set it up like this.

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/2X/f/fd3cf338bc0f88dfef9076b5f81a89eb79e77e7f.jpeg)

In the second screen for sub-categories I set it up like this.

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/2X/9/93d6bdc78f9c29f2ea9d4253c033ef54635f9dc9.jpeg)

The sub-categories and items will automatically follow their “parent” category & sub-category via the relation.
