DescriptionAdvanced Portal Configuration (Host Inventory)
ScopeVersion: 7.2.x and greater
SolutionVERSION:
7.2.x and greater
DESCRIPTION:
Create a login page to access Host Inventory from the main login menu
PROCEDURE:
To modify the Custom Login, Anonymous Authentication, or Guest Login page to redirect to the Host Inventory portal
NOTE:
The below steps assume that you have already configured Host Inventory per the instruction from Solution 1728. See Solution
1728 for steps to configure Host Inventory.
STEPS:
1. Choose an unused login page to modify for Host Inventory redirection (Custom Login, Anonymous Authentication, and Guest Login are all good choices) from the Registration > Login Menu page
2. Set the unused login page Title: Host Inventory<hr>
3. Check the enable box next to the login page you have chosen
4. Verify that none of your Link Text fields (field below title) contains hyperlinks. If your Link fields contain hyperlinks, you may need assistance from support.
5. Insert the following script into the Login Menu > Left Column Content: field
<script type="text/javascript">
(function() {
var onload = window.onload;
window.onload = function() {
if(onload) {
onload();
}
var anchors = document.getElementsByTagName("a");
for(var i = 0; i < anchors.length; i++) {
if(anchors[i].href.indexOf("CustomLogin.jsp") > -1) {
anchors[i].href = "/registration/ValidUserLogin.jsp?portalName=Host_Inventory";
}
else {
anchors[i].href+="?portalName=Portal";
}
}
}
})();
</script>
Red Fields = Names of your default portal page and Host Inventory portal page
Green Field = page that was chosen for your unused login page
Custom Login = CustomLogin.jsp
Anonymous Authentication = AnonymousAuth.jsp
Guest Login = GuestLoginGCS.jsp
6. Apply the changes
7. Perform steps 1-6 to your Host Inventory page so both portals match
Related Articles
Technical Note: Enable Host Inventory Management