Issues configuring a sitemap

I’d like to have a sitemap that has at the top level several floors, then in each floor several rooms, and in each room several frames, but I just can’t make it work.

I think a text node is required to allow the “drill down” I want but I can’t get it to work properly when the parent node is also a text node.

sitemap name label="Sitemap Label" {
    // Using an Item as the parent
    Text item=MyFloorItem {
        Frame {
            Frame label="Room 1" {
                ...
            }
            Frame label="Room 2" {
                ...
            }
        }
    }
    // Using a Frame as the parent
    Frame label="Floor 2" {
        Frame label="Room 1" {
            ...
        }
        ...
    }
}

Based on the wiki page I think this will work.

OK, so I can’t have a text in the frame - I didn’t realize a frame in a frame provides a drill down - thanks!

This didn’t work :frowning:

Any other clues?

Well, Designer is clearly telling you there is something wrong with those lines. What does it say when you hover over the error lines?

Both errors say “Frame must not contain other frames”.

Welp, looks like I thought wrong.

The best you can do is

Text item=ItemOne {
    Frame {
        Text item=ItemTwo {
            Frame {
                // items
            }
        }
        Text item=ItemThree {
            Frame {
                // items
            }
        }
    }
}

The usual way to do this is with Groups isn’t it? Items grouped by room, room groups rhemselves grouped by floor etc.

I thought groups were sort of automatic, but using frames and text gives you more control? @rlkoshak’s suggestion did the trick for me however.

You can do it using Groups but like @rossdargan said, Groups don’t give you much control. For example, let’s say you want to put a garage door opener switch on your sitemap. If you let a group do it you will get a slider but let’s say all you want is a single button. In that case you have to put the switch on the sitemap directly and add a mappings clause. This is impossible to do with Groups.

I’ve found that almost everyone who starts using Groups on their sitemap quickly abandon them because of this lack of control.