Hi Jonathan...
I generally just make the cell invisible which means that it's available
when:
- the users logs out
- I'm blocking the session because of inactivity
- the user blocks the session (going to lunch and not wanting anybody to
mess with your work in progress anybody?)then needs to relogin to unblock it
But if you don't want that, you can always:
- have your login in a separate page and display it when needed using
pageDisplayDialog
-OR-
- have your login in a separate page and display it in a empty cell
containing an iframe. you can use the same cell to display numbers of
things, and as it's just a placeholder, it doesn't weight much on the page
Best regards
--
Fabrice Harari
International WinDev, WebDev and WinDev mobile Consulting
More information on [
www.fabriceharari.com]
Jonathan Buckland wrote:
> I am really struggling with this one.
> I have a sidebar that needs to be dynamically created depending if the user is logged into the website.
> For example I don't want to show the registration cell if they are logged in.
> I can't work out how to do this. Obviously the simplest way is to make the cell invisible, but that's really yuck.
> What I am really after is a way that I can prevent the code for the cell from being generated based on certain criteria (i.e. if user has logged in).
> Any suggestions?
> Thanks
> Jonathan
>
Message forwarded from pcsoft.us.windev