Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
Creating a Header in LiveSite
curious_sam
In LiveSite, I want to design a Header component,which shows a Welcome mesaage to the user looged in(eg. Welcome XYZ!). How to do this?
Find more posts tagged with
Comments
magikandrea
I think to achieve this, you must do two things:
1- Implement the LiveSite login. When your user logs into your web site, the java code should put an attribute in the "user" LiveSite object (ExternalUserIfc). This attribute should contain for example the user name.
2- You must build a header component associated to an external object. The External object java code should get the user attribute a give it back to the component's xml.
AlexC
The above applies to 2.2.x, for 3.0 you will need to create a login controller, attach it to the header component and when user logs in the header component will render the information correctly or the controller will redirect to a login page. (this is one way, there are several other ways)