I just want to share a little code to clean up the breadcrumb of custom home forms.
I created some access groups for different tables and made custom home forms for them.
Example:
username: projekteRW
access group: projekteRW
user home: projekte_home
When the user logged in there were a several items in the breadcrumb:
Breadcrumb after click on Projekte:
I looked into the source and found the breadcrumb elements: nuBreadcrumb0 (Home), nuBreadcrumb1, nuBreadcrumb2, nuBreadcrumb3
So I put a code to before edit of the custom home form:
Code: Select all
//nuMessage(nuAccessLevelCode());
var myEle = document.getElementById("nuBreadcrumb3");
if(myEle != null && nuAccessLevelCode() == 'projekteRW'){
nuGetBreadcrumb(0);
}
is executed to go to Home:
When the user now logs in it looks like that:
and after click on Projekte:
Hope, this is useful

Best wishes
Andrea