Sitemaps , Display two Text items on one line

Openhab 2.4

Been browsing around the forum to find an answer some similar but I can’t find an answer

I want my sitemap to display an Items state and the last Date Time that item changed on ONE line

I currently have it working on two … but it would be so much Neater

I’m using the Network binding to check presence on my iPhone, currently, this works well, I can show if my phone is online via a presence Icon, and I have the last seen date coming over from the network binding as well

Items :

Switch network_pingdevice_10_1_1_251_online "Greg's Iphone" <network>
DateTime GIPLastSeen "Last Seen [%1$td/%1$tm %1$tH:%1$tM]" { channel="network:pingdevice:c05af83e:lastseen" }

sitemap:

Frame label="Presense Information" {
        Text label="Who's Online" icon="presence" {
            Frame label="WIFI" {
            Text item=network_pingdevice_10_1_1_251_online
            Text item=GIPLastSeen }

Like I said it works well but is not visually appealing, having the device show online and the last seen date on one lie would be nice

Is it possible ??

Thx
Greg

Any Takers here ? still looking for a solution

There are multiple solutions in the thread I pointed you to. Perhaps that is what is confusing.

Maybe if we do literally what you asked for there

Text item=myTimestamp label="Phone X" icon="phone-online" visibility=[mySwitchItem==ON]
Text item=myTimestamp label="Phone X" icon="phone-offline" visibility=[mySwitchItem!=ON]

Perfect , apologies i took your reply as a “question” tacked onto mine … not as a answer :slight_smile:

Another trick

Text item=myTimestamp label="Phone X" icon="phone-online" visibility=[mySwitchItem==ON] valueColor=["green"]
Text item=myTimestamp label="Phone X" icon="phone-offline" visibility=[mySwitchItem!=ON] valueColor=["red"]

great , ive implemented it :slight_smile: works a charm

Thx Rossko57 :slight_smile: