Service Portal apply UI Script to "Page"

xiaix
Tera Guru

I've read the following: Add css to service portal pages.   and UI Script not working in new Service Portal

I have created the following Service Portal "Theme":

find_real_file.png

I do not want this applied to the entire Service Portal.   I want this theme only applied to a specific SP Page

Any way to pull in UI Scripts to either a specific SP Page or SP Widget?

(tagging nathanfirth as he's provided a ton of insight to SP design)

1 ACCEPTED SOLUTION

xiaix
Tera Guru

Actually, Service Portal Widget Dependencies is the best option     Widget dependencies


View solution in original post

4 REPLIES 4

xiaix
Tera Guru

This works:



find_real_file.png


xiaix
Tera Guru

Actually, Service Portal Widget Dependencies is the best option     Widget dependencies


Looks like you already answered your own question. For CSS you can obviously just apply the styles to the page, and for JavaScript you create a dependency and associate it with a widget that is on that page.



However looking at your list of libraries above, I can tell you that Moment is already available in Service Portal (see the Cool Clock widget), and I would encourage you to try using an Angular Directive version of a calendar instead of jQuery version. Angular already has it's own lite version of jQuery included so by including jQuery again plus the additional calendar library, it's a lot of unnecessary overhead.


Thanks, Nathan.   Unfortunately, due to this calendar using jQuery, I can't use it.   It seems to be conflicting with SN's jQuery.   I tried a ton of tricks (jQueryUI.noConflict();), etc etc, to no avail.   Yeah, Download | FullCalendar   just won't work in a SP widget  



I digress.   Thanks for your input, as always.