How can I create a landing page for my user, indiviually? For instance, with a personal greeting. The page should be updated frequently.
How to create a landing page
-
- User
- Posts: 11761
It seems you want to display the welcome message just right after a user has successfully logged in and redirect him/her to the certain page. If so, then you may simply put the following code in "User_LoggedIn" server event:
$this->setSuccessMessage("Welcome, " . CurrentUserName()); // display welcome message to current user
$this->Page_Terminate("orderslist.php"); //assume redirect to Orders page
-
- User
- Posts: 11761
Try this:
$this->setSuccessMessage("Welcome, " . CurrentUserName()); // display welcome message to current user
if (CurrentUserLevel() == "1") { // assume 1 = sales
$this->Page_Terminate("sales.php");
} elseif (CurrentUserLevel() == "2") { // assume 2 = finance
$this->Page_Terminate("finance.php");
} else { // default
$this->Page_Terminate("index.php"); // default, redirect to index.php
}