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>