xCP2.1 setting page title with variables?
Our customer wants to show their client case number within the title of the browser tab. At the moment we do not have the option within xCP Designer to configure the page title with dynamic/calculated information.
We already created a support ticket and it's now handled as a feature request.
But does somebody found a solution to do this using customization's?
Kind regards, Marcus
Comments
-
Hi ,
I may qualify this as a quick&dirty approach to solve your issue but if you have no choice you may try the following
- Creating a form input widget (you can do this quickly by inheriting the exiting core widgets)
- Update or override the setValue java Scrip method by adding document.title = Args
- add this widget to your page and map the default value to your text widget.
you may need to do some testing regarding the order of loading of component in XCP pages or in page fragments
I only did a test in a simple page and it worked for me.
I used the demo toolbox Xcelerator and updated its setValue method of the dtb.button widget
NOTE : i guess a more fancy solution can be done using xcp.util.Utils.updateBrowserTitle
method that you can override and use session variables.
Hope This can help
Otman
0 -
This sounds like a good way to solve this until the Feature request is finished and released.
So basically we have to create a custom widget if I understand correct?
Or a custom Javascript function that is included within a widgets expression?
I can give that a try, thanks.
0 -
Hi,
more the first Option ( Widgets that you can hide in your UI)
but the second option may also be good it is the order of evaluation of your function againt the core javaScript function that may be an issue.
otman
0 -
Hi,
I hope the methods explained in the thread worked for you. Do you still have an opinion on which method is the best?
I tried to find xCelerator, but couldn't find it.
We got a similar requirement where we need to update title according to the Application Page.
Do you know if this feature is now available in xCP 2.2?
Thanks
Regards,
Amit
0
Categories
- All Categories
- 109 Developer Announcements
- 49 Articles
- 100 General Questions
- 122 IM Services
- 40 OpenText Hackathon
- 31 Developer Tools
- 20.6K Analytics
- 4.1K AppWorks
- 8.9K Extended ECM
- 897 Cloud Fax and Notifications
- 77 Digital Asset Management
- 9.3K Documentum
- 29 eDOCS
- 121 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management