In OH 2.0 I configured a text item outside of the frame which gives me the possibility to put a label with formated text on top of the frame.
In OH 2.1 this is working but logs an error and the site looks bad. How to fix it?
Way in OH2.0 which causes an text label “Aktuelle Uhrzeit: Mittwoch 10.10.2017 12:00” left aligned!
sitemap haus label=“menue”
{
Text item=NTP_Date label=“Aktuelle Uhrzeit [%1$tA, %1$td.%1$tm.%1$tY %1$tH:%1$tM]”
Frame label="" {
Now (OH2.1) I have to do:
Frame label="" {
Text item=NTP_Date label=“Aktuelle Uhrzeit [%1$tA, %1$td.%1$tm.%1$tY %1$tH:%1$tM]”
Which is no longer the label just a text inside the frame:
And it is not left aligned it is like a the normal format “(left aligned) Aktuelle Uhrzeit: … (right aligned) Mittwoch 10.10.2017 12:00”
What error do you get und what do you mean with looks bad? First I have had problems with the quote signs in your example.
My test works well (2.2.0 Snapshot #1059)
sitemap _ label="_" {
Webview url="http://free.timeanddate.com/clock/i5takz9r/n309/tlde3/tt0/ta1"
Text item=CurrentDate label="Aktuelle Uhrzeit [%1$tA, %1$td.%1$tm.%1$tY %1$tH:%1$tM]"
Frame{
Webview url="http://free.timeanddate.com/clock/i5takz9r/n309/tlde3/tt0/ta1"
Text item=CurrentDate
Text item=Weather_Temperature ...
So this has always been “wrong”. The only thing that changed is that OH now reports it in the logs. It has always been marked as a problem in Designer back as far as OH 1.7. I don’t think there is any going back to “the old way” because the old way was never really supported in the first place.
The “correct” way would be to add the Item to the Frame: