Adding header to UI Page

ahaz86
Mega Guru

Im wondering is there a way to add a header to a UI Page? I am working with the kb_view UI Page and I am trying to give it the same feel as the rest of our CMS.

6 REPLIES 6

Hi Alex,


thank you for reply.   Unfortunately the link does not take me directly to the article. it takes me to   the ess page. In demo i created a page kb.do and added the header and footer.


I am trying to modify the ui macro " kb_article_footer" to open with header and footer but it doesn't work. Here is my code.


<script>


                                var len = location.href.indexOf("ess") + 3;


                                var   base = location.href.substring(0,len);


                         


  var urlpath = base + "/" + "kb.do?uri=kb_view.do" + "?sysparm_article=$[URL:kb.number]";



  gel("permalink").href = urlpath;


  gel("permatext").innerHTML = urlpath;


</script>



Do you know how i can modify the url so it can open the article instead of the just sending me to ess/kb.do ?


thanks,



Magdalena


nathanfirth
Tera Guru

I just got done writing a tutorial on how to do just this. I have knowledge and service catalog with matching templates running in CMS without iframes, and without impacting the main interface.



Check it out and let me know if this works for you: Using UI Pages in a CMS Site without iFrames - ServiceNow Content Management - ServiceNow CMS