- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-23-2020 12:53 AM
Hi All,
Is there a way where I can clone the complete OOTB Service Portal page from Developer instance and move it to my client environment? The client has modified OOTB pages/widgets and wants one for Portal with OOTB capabilities.
Instead of building it from scratch, I thought there must be a way to just clone and move it but that is not the case. You can clone pages and widgets but it won't work unless you make code-level changes in them since widgets will have URLs to redirect users to specified pages etc.
So, is there a guide or help which I can use for cloning OOTB SP which can explain me what all changes needs to be done and in which all pages/widgets?
Please help me with this.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-24-2020 11:09 AM
For that I have tried hard I can't find but here is what I have understood is there is a code in breadcrumb which is
var deregister = $rootScope.$on("sp.update.breadcrumbs", function(e, list) {
c.breadcrumbs = list;
});
I can't find the list array from where exactly it is updating if you can crack that I am sure you will get your answer.
here is few link this might help you crack.
https://community.servicenow.com/community?id=community_question&sys_id=00ab464fdb1cd74c0e58fb651f9619e6

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-24-2020 08:47 AM
Here is the Solution.
Remember when we clone any OOTB page the widgets will be not be clone only the page structure will be clone so widget you have clone manually.
Like in the above I have clone the User_Profile page but widget which is inside that page did not cloned. widgets was like Breadcrumb & user_profile. So I cloned these two widget as well.
After cloning the breadcrumb you have to change single line code i.e. line no 3
<span><a ng-href="?id={{portal.homepage_dv}}">${Home}</a>
id=portal.homepage_div this was redirecting to the you homepage of the portal.
You have to replace this {{portal.homepage_dv}} with your custom page name from where you were redirecting to the clone page. like this
<span><a ng-href="?id=test_clone_page">${Home}</a>
{Home} this will show Home on breadcrumb just change Home to anything which you want to show like ${Home} to Test
To get update on breadcrumb link remember one more thing in the breadcrumb links are the page title. So suppose you have cloned the page User_Profile with the name or ID Copy_of_User_Profile But the Title of the page can be different like Custom User Profile So in the breadcrumb the ID will not get update Page title will get updated.
So the conclusion is whenever you are cloning the page Page ID can be anything but Title should be something Specific which you want to show in the Breadcrumb links.
This is how you can achieve.
Here is few Screen Shot for more clarity.
Cloned Breadcrumb:
Cloned OOTB Page:
In your case change the title name of the cloned page & change breadcrumb script.
Hope This will help you a lot.
If the above code helps then please mark my answer Correct and Helpful.
Thanks and Regards:
Siddhnath Pandey
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-24-2020 09:28 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-24-2020 11:09 AM
For that I have tried hard I can't find but here is what I have understood is there is a code in breadcrumb which is
var deregister = $rootScope.$on("sp.update.breadcrumbs", function(e, list) {
c.breadcrumbs = list;
});
I can't find the list array from where exactly it is updating if you can crack that I am sure you will get your answer.
here is few link this might help you crack.
https://community.servicenow.com/community?id=community_question&sys_id=00ab464fdb1cd74c0e58fb651f9619e6
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-25-2020 03:09 AM
Thank you, marked your answer as correct as it solved my issue.
Thank you so much for all the help 🙂