Site structure
Version 7.x > Site structure > Segmenting categories View modes: 
User avatar
Member
Member
mnorton - 5/7/2013 10:35:05 AM
   
Segmenting categories
Let's say I have a category at the first level named Exercise Equipment. At the second level I have subcategories: Treadmills, Ellipticals, Pulleys, Benches, etc.

For display purposes only, I would like to segment the Exercise Equipment category into two sections/groups: Cardio and Strength. These two segments would only display in the menu to visually separate the subcategories. They should not be clickable nor have there own pages.

All of my main categories need to be segmented in a similar fashion. Should I use the Menu Group control for this? Or should the segments be second level sections that cannot be navigated to?

User avatar
Kentico Legend
Kentico Legend
Brenden Kehren - 5/7/2013 10:49:47 AM
   
RE:Segmenting categories
So you want to have 2 items per row? In your transformation you can simply use the Mod operator and perform this action:
// three up
<%# ((DataItemIndex + 1) % 3 == 0 ? "</div><div class=\"row\">" : "") %>

// two up
<%# ((DataItemIndex + 1) % 2 == 0 ? "</div><div class=\"row\">" : "") %>

User avatar
Member
Member
mnorton - 5/7/2013 11:01:20 AM
   
RE:Segmenting categories
No, I'm really just trying to find out if its better structure my category segments using the Menu Group or just sections. The number of items in a row will depend on how many subcategories are assigned to a segment.

User avatar
Kentico Customer Success
Kentico Customer Success
kentico_martind2 - 5/10/2013 4:31:43 AM
   
RE:Segmenting categories
Hi,

I think it depends just on your preferences... I would rather go to structute it into sections.. due to better segmentation of content, maybe more intuitive orientation.

Best regards,
Martin Danko