xpages how to set title to be displayed in browser window

594 Views Asked by At

Is there any chance to set a title (for a XPiNC application) to be displayed in the browser window - title?

Currently, the title is changing while the users navigate from one xpage to another xpage. Is it possible to put a constant title?

Thanks for your time!

2

There are 2 best solutions below

4
On BEST ANSWER

Add a title to your XPage at Properties tab "XPage". You can add a string there or calculate a title.

enter image description here

The title is visible in XPiNC and browser.

If you want to set the same title to all XPages then define it in a theme: https://stackoverflow.com/a/11802089/2065611.

2
On

You can set the page title globally using a theme. Just add the following your theme (which will then only set the page title if not individually set):

<control override="false">
    <name>ViewRoot</name>
    <property override="false">
        <name>pageTitle</name>
        <value>My title</value>
    </property>
</control>

Read more about themes at xpageswiki.com.