This question is locked. New answers and comments are not allowed.
I have a page footer which I want to show on all views other than the "home" view when I am asking the user to login (so don't want to show the navigation options). Is this possible using a layout and views?
The code I have for the layout section is as follows, where you can see I use "data-bind="visible: isLoggedIn" - which works correctly in views, but doesn't work here. Any suggestions, please?
<!--Layout-->
<div id="tabstrip-home"
data-role="layout"
data-id="tabstrip-layout"
data-model="app.loginService.viewModel">
<!--Header-->
<div data-role="header" style="background-color: white">
<div data-role="navbar">
<span data-role="view-title"></span>
</div>
</div>
<!--Footer-->
<div data-role="footer" data-bind="visible: isLoggedIn">
<div data-role="tabstrip">
<a href="#tabstrip-wall" data-icon="contacts">Wall</a>
<a href="#tabstrip-agenda" data-icon="contacts">Agenda</a>
<a href="#tabstrip-workshops" data-icon="search">Workshops</a>
<a href="#tabstrip-hospitality" data-icon="globe">Hospitality</a>
<a href="#tabstrip-home" data-icon="globe">Log out</a>
</div>
</div>
</div>
Thanks!
Stewart
The code I have for the layout section is as follows, where you can see I use "data-bind="visible: isLoggedIn" - which works correctly in views, but doesn't work here. Any suggestions, please?
<!--Layout-->
<div id="tabstrip-home"
data-role="layout"
data-id="tabstrip-layout"
data-model="app.loginService.viewModel">
<!--Header-->
<div data-role="header" style="background-color: white">
<div data-role="navbar">
<span data-role="view-title"></span>
</div>
</div>
<!--Footer-->
<div data-role="footer" data-bind="visible: isLoggedIn">
<div data-role="tabstrip">
<a href="#tabstrip-wall" data-icon="contacts">Wall</a>
<a href="#tabstrip-agenda" data-icon="contacts">Agenda</a>
<a href="#tabstrip-workshops" data-icon="search">Workshops</a>
<a href="#tabstrip-hospitality" data-icon="globe">Hospitality</a>
<a href="#tabstrip-home" data-icon="globe">Log out</a>
</div>
</div>
</div>
Thanks!
Stewart