Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions ui/sitemaps.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ This page is structured as follows:

[[toc]]

Sitemaps are text files with the `.sitemap` extension, and are stored in the `$OPENHAB_CONF/sitemaps` directory.
Sitemaps are text files with the `.sitemap` or `.sitemaps` extension, and are stored in the `$OPENHAB_CONF/sitemaps` directory.
They can now contain any number of sitemap definitions.
Sitemaps follow the syntax described in this article.

For easy editing of sitemap definition files, we suggest to use one of the [openHAB supporting editors]({{base}}/configuration/editors.html).
Expand Down Expand Up @@ -111,13 +112,13 @@ The `sitemap` element is **mandatory** in a Sitemap definition.
This element shall be the first line in the sitemap file, and the following code block comprises the entire Sitemap definition.

```java
sitemap <sitemapname> label="<title of the main screen>" {
sitemap <sitemapname> [label="<title of the main screen>"] {
[all sitemap elements]
}
```

- `sitemapname` shall always be equal to the Sitemaps file name, e.g. the `sitemapname` in a sitemap file named `demo.sitemap` must be "demo"
- `label` is free text and will be shown as the title of the main screen.
- `sitemapname` is the identifier of the Sitemap definition.
Comment thread
lolodomo marked this conversation as resolved.
- `label` is an optional free text and will be shown as the title of the main screen.
Comment thread
lolodomo marked this conversation as resolved.

(Note that the element `sitemap` is written with a lower case "s".)

Expand Down