# Display navigation tile based on setting value

**URL:** <https://forum.sambapos.com/t/display-navigation-tile-based-on-setting-value/22074>\
**Category:** V5 Question\
**Created:** [April 28, 2020, 9:16pm UTC](https://forum.sambapos.com/t/display-navigation-tile-based-on-setting-value/22074 "2020-04-28T21:16:21Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![Memo](https://forum.sambapos.com/user_avatar/forum.sambapos.com/memo/32/55443_2.png) [@Memo](https://forum.sambapos.com/u/Memo)\
**Post date:** [April 28, 2020, 9:16pm UTC](https://forum.sambapos.com/t/display-navigation-tile-based-on-setting-value/22074/1 "2020-04-28T21:16:21Z")

</div>

Example: If Work Period is open show ‘Close Work Period’ tile. If Work Period is closed show ‘Open Work Period’ tile.

Is this possible?

---

<div class="post-metadata">

**Author:** ![JTRTech](https://forum.sambapos.com/user_avatar/forum.sambapos.com/jtrtech/32/21270_2.png) [@JTRTech](https://forum.sambapos.com/u/JTRTech)\
**Post date:** [April 28, 2020, 9:58pm UTC](https://forum.sambapos.com/t/display-navigation-tile-based-on-setting-value/22074/2 "2020-04-28T21:58:46Z")

</div>

Yes, its on forum somewhere, dig up the origional custom nave screen examples.  
It would be a single tile with a dynamic display format using a ternary expression.

---

<div class="post-metadata">

**Author:** ![Memo](https://forum.sambapos.com/user_avatar/forum.sambapos.com/memo/32/55443_2.png) [@Memo](https://forum.sambapos.com/u/Memo)\
**Post date:** [April 28, 2020, 10:18pm UTC](https://forum.sambapos.com/t/display-navigation-tile-based-on-setting-value/22074/3 "2020-04-28T22:18:42Z")

</div>

I know that tutorial.

I was wondering if it is possible to display different physical tiles based on a constraint.

I have two tiles: one to start a work period, one to end. The relevant tiles are as follows:

Start: `{"Alignment":"Right","ButtonHeader":"START\u000d\u000aWork Period","IsFlowBreak":false,"Size":"Small","VisibleIndex":0}`

End: `{"Alignment":"Right","ButtonHeader":"END\u000d\u000aWork Period","IsFlowBreak":false,"Size":"Small","VisibleIndex":1}`

Is it possible to have something like this:

`[=('{SETTING:ISCURRENTWORKPERIODOPEN}'=='FALSE' ? 'SHOW START WORK PERIOD TILE' : 'SHOW END WORK PERIOD TILE')]`

---

<div class="post-metadata">

**Author:** ![JTRTech](https://forum.sambapos.com/user_avatar/forum.sambapos.com/jtrtech/32/21270_2.png) [@JTRTech](https://forum.sambapos.com/u/JTRTech)\
**Post date:** [April 28, 2020, 10:45pm UTC](https://forum.sambapos.com/t/display-navigation-tile-based-on-setting-value/22074/4 "2020-04-28T22:45:51Z")

</div>

Not really because mappings available wouldn’t fit. No ticket etc available for states etc.  
It doesn’t need to be seperate tiles though. Tiles are pretty much automation commands, so use a single tile flrmatted to display as if it was two, then in your automation for the command have your two automation flows based on constraints you used in the display ternary.  
You one button, regardless of its display can trigger different actions based on constraints within the rule, rather than needing two buttons for two rules, have one or even two rules both on same command but with additional constraints based on work period being open or not.

---

<div class="post-metadata">

**Author:** ![Memo](https://forum.sambapos.com/user_avatar/forum.sambapos.com/memo/32/55443_2.png) [@Memo](https://forum.sambapos.com/u/Memo)\
**Post date:** [April 28, 2020, 11:55pm UTC](https://forum.sambapos.com/t/display-navigation-tile-based-on-setting-value/22074/5 "2020-04-28T23:55:56Z")

</div>

I didn’t think of that. Thanks!

I’ll need a bit of guidance if I may. I can’t seem to get the text centred.

![28-04-2020_18;01_1588118466_Samba.Presentation](https://forum.sambapos.com/uploads/default/original/3X/a/7/a75451d063e44be4970252d1ffdcfb58487c3f2f.png)

```
<size 46><sym>[=('{SETTING:ISCURRENTWORKPERIODOPEN}'=='TRUE' ? '' : '')]</sym></size>
<block alignment=center>[=('{SETTING:ISCURRENTWORKPERIODOPEN}'=='TRUE' ? 'END' : 'START')]
Work Period</block>
```

---

<div class="post-metadata">

**Author:** ![Muzzargh](https://forum.sambapos.com/user_avatar/forum.sambapos.com/muzzargh/32/55913_2.png) [@Muzzargh](https://forum.sambapos.com/u/Muzzargh)\
**Post date:** [April 29, 2020, 4:49am UTC](https://forum.sambapos.com/t/display-navigation-tile-based-on-setting-value/22074/6 "2020-04-29T04:49:33Z")

</div>

`Could it something as simple as <block center>?`

---

<div class="post-metadata">

**Author:** ![RickH](https://forum.sambapos.com/user_avatar/forum.sambapos.com/rickh/32/51960_2.png) [@RickH](https://forum.sambapos.com/u/RickH)\
**Post date:** [April 29, 2020, 5:09am UTC](https://forum.sambapos.com/t/display-navigation-tile-based-on-setting-value/22074/7 "2020-04-29T05:09:35Z")

</div>

There’s an orange settings bar at the bottom of the nav screen, think you need to right click for it to appear, then select the tile you want the text to centre on, click the centre format button from the orange bar and then click save on the right hand side

Tile should refresh and text centre, if not log out and back in for changes to take effect

It’s this same orange bar where you can change the size of the buttons too

---

<div class="post-metadata">

**Author:** ![Memo](https://forum.sambapos.com/user_avatar/forum.sambapos.com/memo/32/55443_2.png) [@Memo](https://forum.sambapos.com/u/Memo)\
**Post date:** [April 29, 2020, 6:05am UTC](https://forum.sambapos.com/t/display-navigation-tile-based-on-setting-value/22074/8 "2020-04-29T06:05:27Z")

</div>

Tried `<block center>` with no change.

THe justification buttons on the orange strip never seemed to change any display of the tiles when I played with it.

Thanks for the replies, guys. I’ll keep playing and update if I find anything.

---

<div class="post-metadata">

**Author:** ![RickH](https://forum.sambapos.com/user_avatar/forum.sambapos.com/rickh/32/51960_2.png) [@RickH](https://forum.sambapos.com/u/RickH)\
**Post date:** [April 29, 2020, 6:55am UTC](https://forum.sambapos.com/t/display-navigation-tile-based-on-setting-value/22074/9 "2020-04-29T06:55:17Z")

</div>

Orange strip buttons definitely work I use them, you may need to log out and back in to see changes

---

<div class="post-metadata">

**Author:** ![Memo](https://forum.sambapos.com/user_avatar/forum.sambapos.com/memo/32/55443_2.png) [@Memo](https://forum.sambapos.com/u/Memo)\
**Post date:** [April 29, 2020, 2:03pm UTC](https://forum.sambapos.com/t/display-navigation-tile-based-on-setting-value/22074/10 "2020-04-29T14:03:22Z")

</div>

There I go expecting instant results, again. Thanks Rick!

I did find a thread and found enclosing in \<block 1,0,0,0 #5ffffff center 150\> works but aside from the center part of the block quote I have no idea what the other stuff is and why it worked.

---

<div class="post-metadata">

**Author:** ![Bob\_be](https://forum.sambapos.com/letter_avatar_proxy/v4/letter/b/e480ec/32.png) [@Bob\_be](https://forum.sambapos.com/u/Bob_be)\
**Post date:** [April 29, 2020, 3:28pm UTC](https://forum.sambapos.com/t/display-navigation-tile-based-on-setting-value/22074/11 "2020-04-29T15:28:47Z")

</div>

Try this in the template

```
[=('{SETTING:ISCURRENTWORKPERIODOPEN}'=='TRUE' ? '<panel red center><sym>^</sym><br/><font Comic Sans MS><block 0,0,0,0 #FF0099 center><size 36><color #FFFF00><b>E</b></color></size></block><block 0,0,0,0 #00FF00 center><size 20><color #FF00FF><extrabold>n</extrabold></color></size></block><block 0,10,0,0 #9D00FF center><size 21><color #E6FB04><i>D</i></color></size></block><br/><block 0,0,0,0 #0033FF center><size 26><color #FF6600><i>W</i></color></size></block><block 0,0,0,0 #FFFF33 center><size 22><color #CC00FF><i>o</i></color></size></block><block 0,0,0,0 #00FFFF center><size 25><color #FF0000><i>R</i></color></size></block><block 0,0,0,0 #00FF00 center><size 20><color #FF00FF><extrabold>k</extrabold></color></size></block><block 0,0,0,0 #FF0099 center><size 36><color #FFFF00><b>p</b></color></size></block><block 0,10,0,0 #9D00FF center><size 26><color #E6FB04><i>E</i></color></size></block><block 0,0,0,0 #0033FF center><size 24><color #FF6600><i>r</i></color></size></block><block 0,0,0,0 #FFFF33 center><size 27><color #CC00FF><i>i</i></color></size></block><block 0,0,0,0 #00FFFF center><size 20><color #FF0000><i>0</i></color></size></block><block 0,0,0,0 #FF0099 center><size 36><color #FFFF00><b>D</b></color></size></block></font></panel>' : '<panel Green center><sym>@</sym><br/><font Comic Sans MS><block 0,10,0,0 #00FFFF center><size 25><color #FF0000><i>s</i></color></size></block><block 10,0,0,0 #00FF00 center><size 20><color #FF00FF><extrabold>T</extrabold></color></size></block><block 0,0,0,10 #FF0099 center><size 16><color #FFFF00><b>A</b></color></size></block><block 0,0,10,0 #9D00FF center><size 26><color #E6FB04><i>r</i></color></size></block><block 0,5,0,0 #FF0099 center><size 16><color #FFFF00><b>T</b></color></size></block><br/><block 0,0,0,0 #00FF00 center><size 20><color #FF00FF><extrabold>w</extrabold></color></size></block><block 10,0,10,0 #9D00FF center><size 21><color #E6FB04><i>o</i></color></size></block><block 0,0,0,10 #00FF00 center><size 20><color #FF00FF><extrabold>R</extrabold></color></size></block><block 0,0,0,0 #0033FF center><size 26><color #FF6600><i>k</i></color></size></block><block 0,10,0,0 #9D00FF center><size 26><color #E6FB04><i>P</i></color></size></block><block 0,0,0,0 #FFFF33 center><size 22><color #CC00FF><u>e</u></color></size></block><block 0,0,5,0 #0033FF center><size 24><color #FF6600><b>r</b></color></size></block><block 0,0,0,10 #FFFF33 center><size 27><color #CC00FF><i><b>i</b></i></color></size></block><block 0,0,0,0 #00FFFF center><size 20><color #FF0000>0</color></size></block><block 10,10,10,10 #FF0099 center><size 16><color #FFFF00><b>D</b></color></size></block></font></panel>')]

```

I think you will find this is exactly what you are looking for. 😉

---

<div class="post-metadata">

**Author:** ![Memo](https://forum.sambapos.com/user_avatar/forum.sambapos.com/memo/32/55443_2.png) [@Memo](https://forum.sambapos.com/u/Memo)\
**Post date:** [April 29, 2020, 3:47pm UTC](https://forum.sambapos.com/t/display-navigation-tile-based-on-setting-value/22074/12 "2020-04-29T15:47:45Z")

</div>

Comic Sans? Really? Y’all need jesus.

I kinda like it, though. I would recommend studying your colour wheel a little better when selecting complementary colours.

And go for a walk, or something. Clearly you’ve too much free time.

---

<div class="post-metadata">

**Author:** ![Bob\_be](https://forum.sambapos.com/letter_avatar_proxy/v4/letter/b/e480ec/32.png) [@Bob\_be](https://forum.sambapos.com/u/Bob_be)\
**Post date:** [April 29, 2020, 3:50pm UTC](https://forum.sambapos.com/t/display-navigation-tile-based-on-setting-value/22074/13 "2020-04-29T15:50:06Z")

</div>

lol. I wondered if font was going to be a giveaway.

> [@Memo](#):
>
> And go for a walk, or something. Clearly you’ve too much free time.

This is true. 🤣

For those wondering, here is what the button looks like with the above code:  
 ![KO1Vvl0h7Y](https://forum.sambapos.com/uploads/default/original/3X/c/b/cb1af464e85ece2c63600f9691861bd86d82a0d9.png)

---

<div class="post-metadata">

**Author:** ![Bob\_be](https://forum.sambapos.com/letter_avatar_proxy/v4/letter/b/e480ec/32.png) [@Bob\_be](https://forum.sambapos.com/u/Bob_be)\
**Post date:** [April 29, 2020, 3:53pm UTC](https://forum.sambapos.com/t/display-navigation-tile-based-on-setting-value/22074/14 "2020-04-29T15:53:46Z")

</div>

For real, this link might be of some help:

> [@v V5 Feature Compilation](https://forum.sambapos.com/t/v5-feature-compilation/4136/14):
>
> 5.1.17 Added: Ticket Lister will remember selected items while refreshing. Automation Commands for navigations will accept module name and parameter values so we don’t need to setup a rule for common navigation needs. Possible Module Parameters (for example entity screen names for Entity Module) can be selected through combobox. Automation Command’s execute command navigation setting removed as it is not needed with new settings. Leave Navigation module setting blank to execute it as an automa…

The first post in this thread is also useful…actually the whole thread is useful.
