Made a copy of my items widget and links stopped working

cchacha
Mega Guru

Hi All,

 

So I made a copy of a widget and now I see the links on the widget don't work anymore. I tried this with another widget that has links and the same thing happens. What is going on here?

 

Thanks,

Carol

1 ACCEPTED SOLUTION

Community Alums
Not applicable

Hey @cchacha 

 

My guess would be that when you cloned the My Items widget, you did not go manually copy the 2 "Angular ng-templates" that go with it. These types of records do not get copied when you clone a widget since the template name must be unique. Without them, I would bet your page is erroring out causing links to break. What you'll need to do is:

 

1. Go to the original My Items widget and manually copy the 2 "Angular ng-templates" by giving them some unique name (like "u-activity-template" and "u-card-template"), updating the widget to be your copy, and then doing an Insert and Stay

2. In your copy of the My Items widget, find the places where these templates are referenced and update those references:

Line 10 of the HTML

Line 25 of the HTML

Line 57 of the HTML

Line 70 of the HTML

 

Then hopefully you should be good to go.

 

Hope this helps!

~Nick

View solution in original post

2 REPLIES 2

Community Alums
Not applicable

Hey @cchacha 

 

My guess would be that when you cloned the My Items widget, you did not go manually copy the 2 "Angular ng-templates" that go with it. These types of records do not get copied when you clone a widget since the template name must be unique. Without them, I would bet your page is erroring out causing links to break. What you'll need to do is:

 

1. Go to the original My Items widget and manually copy the 2 "Angular ng-templates" by giving them some unique name (like "u-activity-template" and "u-card-template"), updating the widget to be your copy, and then doing an Insert and Stay

2. In your copy of the My Items widget, find the places where these templates are referenced and update those references:

Line 10 of the HTML

Line 25 of the HTML

Line 57 of the HTML

Line 70 of the HTML

 

Then hopefully you should be good to go.

 

Hope this helps!

~Nick

Thank you so much this worked! 🙂