for( itm=1; itm lte listLen(attributes.pageIDList); itm=itm+1 ) { page = listGetAt(attributes.pageIDList, itm); // check to see if this page is a promoted parent if( application.ohsuNav.navElementService.isPromotedToParent(page) ) application.ohsuNav.navElementController.removePromotedParent(page); // check to see if this page is a start point else if( application.ohsuNav.navElementService.isStartPoint(page) ) application.ohsuNav.navElementController.removeStartPoint(page); else // this is just a regular page { // get this subsites navigation subsiteNav = application.ohsuNav.navElementDAO.getBySubsiteID(application.ohsuNav.csData.getSubsiteIDByPageID(page)); if( arrayLen(subsiteNav) and listFind(subsiteNav[1].values.childList, page) ) results = application.ohsuNav.navElementController.removeFromChildList(page, subsiteNav[1].values.uniqueID); } }