how to embed ui page in service portal widget?

ochiengboniface
Giga Contributor

Hallo Community,

i am trying to improve my understanding and knowledge of service portal widgets. I was trying to embed the knowledge homepage (knowledge_home_launcher.do) in a widget.

I used the type as url but that just opened it outside the portal. Is there a way i can make it open within the portal?

Best Regards,

Boni

1 ACCEPTED SOLUTION

lomouhamadou
Kilo Guru

Hi Boniface Ochieng,



It is not possible. Ui page and Ui macro are not handled with the new serf-service portal because of the fact they use jelly and servicenow is getting rid of jelly and starting to use angular.



The only way, if you really want it (not recommended) is to create a cms page then on the self-service portal you can create a page or widget with a link sending to that cms page you created. But you will have the fancy self service look and when sending to the Iframe the look will be as before.



Hope this helps you out. If so, please hit the "Correct answer" button so other user can profite of your question and my answer.


If usefull, the same hit the usefull link.



have a good day and do not hesitate to ask if you still need info.



Regs,



Lô Mouhamadou


View solution in original post

9 REPLIES 9

lomouhamadou
Kilo Guru

Hi Boniface Ochieng,



It is not possible. Ui page and Ui macro are not handled with the new serf-service portal because of the fact they use jelly and servicenow is getting rid of jelly and starting to use angular.



The only way, if you really want it (not recommended) is to create a cms page then on the self-service portal you can create a page or widget with a link sending to that cms page you created. But you will have the fancy self service look and when sending to the Iframe the look will be as before.



Hope this helps you out. If so, please hit the "Correct answer" button so other user can profite of your question and my answer.


If usefull, the same hit the usefull link.



have a good day and do not hesitate to ask if you still need info.



Regs,



Lô Mouhamadou


Haallo Mouhamadou,



Thanks for the information.


I ended making a page and a widget. In the widget i used an iframe to redirect and put the widget on the ui page.



Best Regards,


Boniface


Cool.



Can you share your solution, please?



Le lundi 29 août 2016, ochiengboniface <community-no-reply@servicenow.com>


a écrit :



ServiceNow Community


<https://community.servicenow.com/?et=watches.email.thread>


how to embed ui page in service portal widget?



réponse de Boniface Ochieng


<https://community.servicenow.com/people/ochiengboniface?et=watches.email.thread>


dans Developer Community - Afficher la discussion complète


<https://community.servicenow.com/message/993113?et=watches.email.thread#993113>



1. I made under Service Portal -> pages a new page with a one container.



2. I made a simple widget with the following body HTML template:


<div>


<!-- your widget template -->


    <iframe src="sp/knowledge_home_launcher.do" height="800" width="1200"></iframe>


</div>



3. I placed the widget on the page i created in step 1.



4. I created a widget with type page, redirecting to my newly created page.