Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only to registered users.

Move Breadcrumb Topic is solved

Questions related to customising nuBuilder Forte with JavaScript or PHP.
Post Reply
hinermat
Posts: 2
Joined: Thu Mar 31, 2022 9:37 pm

Move Breadcrumb

Unread post by hinermat »

Is it possible to move the breadcrumb list from it's location in the header bar? We would like to move it onto our form as we are using a custom header. I can't seem to find any nuBuilder functions or hash variables that contain this information.

Thanks!
kev1n
nuBuilder Team
Posts: 4297
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 445 times
Contact:

Re: Move Breadcrumb

Unread post by kev1n »

Hi,

Example, to move the "nuBreadcrumbHolder" above the tabs:

Code: Select all

function nuOnLoad() {

    moveBreadcrumbHolder();

    if (nuFormType() == 'edit') {
        // Edit Form loaded
    } else
    if (nuFormType() == 'browse') {
        // Browse Form loaded
    }

}

function moveBreadcrumbHolder() {

    let bc = $('#nuBreadcrumbHolder');
    bc.clone()
        .prop("id", "holder2")
        .insertAfter('#nuActionHolder')
        .css({height: 26})
		
    bc.remove();
		
}


hinermat
Posts: 2
Joined: Thu Mar 31, 2022 9:37 pm

Re: Move Breadcrumb

Unread post by hinermat »

Perfect, Thanks!
Post Reply