Open Auto-Mark opened 7 years ago
Let me take a look into this. @sjka Are you guys working here with Assigness, or are the issues floating?
Unfortunately only committers can assign people - github doesn't allow such fine-grained permissions. Therefore leaving a comment that you are working on it would be fully sufficient.
@sjka Ok, thanks for clarification. Github newbie here :)
So, I'm working on this.
Current implementation is as following.
If a label is defined, it is shown.
sitemap demo label="Main Menu" {
results in:
If no label is defined, the name of the sitemap is shown.
sitemap demo {
results in:
I think this is good and should not be changed.
We can add a attribute header=true/false
or hideHeader
or something like this:
sitemap demo header=false {
results in:
But there are a few concerns:
Any opinions about this?
It may be interesting to know why title bar should be hidden for some of your sitemaps. If this is for example because it looks better on a tablet (but could be still shown on a PC), that might actually be a browser session property (configured through URL), not a sitemap property.
Such situation is in habpanel with kiosk mode that hides the menu that is inconvenient on kiosk type devices but useful elsewhere. Then you add kiosk=on to the URL to hide it.
Yes, that would be interesting to know. Maybe habpanel is anyway the better solution for @Auto-Mark to achieve his goals.
For some of my sitemaps it would be nice not to have a title bar displayed. Maybe an option can be introduced to ommit the title bar.
So instead of
sitemap demo label="My home automation" {...
it could besitemap demo nolabel {...
or even justsitemap demo {...
Example screenshot taken from http://docs.openhab.org/configuration/sitemaps.html