Display Page title in header of Service Portal

scottstahr
Giga Contributor

My client would like to display the page the user is currently on in the Service Portal header when they navigate to different pages in the portal.  If the are on the home page, they would like the title to display "Home".  If they navigate to the "Knowledge Base" page, they would like the title to display "Knowledge base"

find_real_file.png

I've made a copy of the stock header and added the following code to it:

find_real_file.png

This displays the page name after you refresh the page.  It appears the header does not refresh on page load and the title remains it's previous value unless the page is refreshed.  Is there a way to make title display the current page without having to refresh?

1 ACCEPTED SOLUTION

Just try removing "::" before page.title in html body Thanks, Satheesh

View solution in original post

5 REPLIES 5

SatheeshKumar
Kilo Sage
Hi, It seems you have used one way binding, did you tried without that. Note: I am not sure about this but adding my suggestions! Thanks, Satheesh

Thanks for the reply Satheesh,

How would I remove the one way binding?

Just try removing "::" before page.title in html body Thanks, Satheesh

Artemis15
Kilo Guru

You have to modify Header widget. Remove "::" from template. It is one-way binding, so it will not fetch data until it's full refresh. Remove "::" and it will work.