Please Note This forum exists for community support for the Mango product family and the Radix IoT Platform. Although Radix IoT employees participate in this forum from time to time, there is no guarantee of a response to anything posted here, nor can Radix IoT, LLC guarantee the accuracy of any information expressed or conveyed. Specific project questions from customers with active support contracts are asked to send requests to support@radixiot.com.
Page button jumps, public and logged in views...
-
hi,
just been playing with public views... which i can see being advantageous for casual users wanting a quick look see...
however, within my project i have page jumps...
<FORM>
<INPUT TYPE="BUTTON" VALUE=" site overview " ONCLICK="window.location.href='/views.shtm?viewId=19'">
</FORM>which i'm looking to change to....
<FORM>
<INPUT TYPE="BUTTON" VALUE=" site overview " ONCLICK="window.location.href='/public_view.htm?viewId=19'">
</FORM>so that as long as a public view has been allowed, the guest can navigate using the buttons...
thing is, i'd like to jump to look if the user is logged in...
a logged in user should get the shtml page so they get the editing menu...
can i make the html code logged in aware?
would it become a serverside button jump instead?
thanks
Neil
-
There isn't a way to do that within the regular graphical views, but you would be able to do this in the custom views. (See customViewExample.jsp.) These are JSP files, so they have access to the request context, and you can query it like any of the other JSP files.
For example, page.tag has the following code:
<c:if test="${empty sessionUser}"> ... </c:if>