Cloning the Header Menu Widget

bbarber9
Giga Expert

Has anyone successfully cloned the header menu widget in the new service portal? I cloned it, but when I put it in a page, things seem to get really glitchy.

EDIT: Figured this out. Turns out cloning the header menu widget is probably a bad idea. If you want to customize the navbar etc, you are probably better off cloning the stock header under Headers & Footers and then including it in a custom theme.

15 REPLIES 15

I cloned the header widget and also created a new template for spDropdownTreeTemplate   and associated it with my new header widget but header menu does not render.


Do not know how to make it working if spDropdownTreeTemplate is getting called from a directive which we cannot access / edit


mandle
Mega Guru

I agree Nathan.



1) Every component of a widget must be accessible to developers.



2) If there are directives used by a widget that are so private they have to be locked away in the file system then those widgets should not be able to be cloned.



I am rooting for 1)



rsadhula
Mega Contributor

Anyone got this working ?


Im struggling with this too.


I just want to force the scripted lists to appear all the time even when the count is zero.


Ive tried cloning the header menu (and its ng templates) but things stop rendering properly.. =\


rsadhula
Mega Contributor

Any workaround to clone header menu or do we have only option to clone stock header ?