The CreatorCon Call for Content is officially open! Get started here.

My Team Widget

ar1
Kilo Sage

Hi All,

 

I would like to add My Team widget to on the SC_Item page to display the current user's manager.

Any help would be really appreciated..

Thanks in advance

 
2 REPLIES 2

Andrew Albury-D
Mega Guru

Hey Arjun,

I've had a bit of a look at this, and unfortunately it's not a simple drag-and-drop.

The My Team widget is part of the Profile page, and expects an event to be fired from the parent widget which includes a bunch of data about your team so it knows what to render. 

This is definitely doable, however you will need to clone the widget, and rebuild the data objects that it's looking for in the Server Side script.

There are a few "ng-if" directives that are checking if it received the data which may need to be disabled.

I'd be interested to know how you go!

Thanks,

Andrew

eadler
Tera Expert

I took the "User Profile" widget, cloned it, and then removed all of the HTML that displayed the things I didn't want.  The result was an HTML body that looked like this:

find_real_file.png

With all of the other HTML stripped away, that left only the "Team" part.

Good luck!