How to change Pentaho after login page

空扰寡人 提交于 2019-12-21 22:07:58

问题


After login to Pentaho BI server as a user, the Pentaho shows a default page.

I need to redesign that page to match look at feel of a company website. What files do I need to edit and how to give links from that page to dashboards in Pentaho?


回答1:


Instead of redesigning the Pentaho screens create a "central dashboard" with links to all of your "sub-dashboards". This central place can be created as an another Pentaho CDE dashboard and you can make it look and feel as company website, because you can attach any HTML, CSS, JavaScript code and image files to the dashboard. You don't need to use any component (chart, etc.) or datasource. Just edit the layout of the dashboard.

So, the central dashboard will be accessible on e.g.:

http://localhost:8080/pentaho/api/repos/:home:CentralDashboard.wcdf/generatedContent

When a user navigates to the above URL (he did not used Pentaho Login Screen to log in = http://localhost:8080/pentaho/Home), he is prompted to log in by a dialog. He fills the dialog, logs in and see the central dashboard. So provide the user only a link to central dashboard instead of Pentaho Login Screen.

When you create a central dashboard you need to have a links to your sub-dashboards. To get the links navigate through the Browse Files in Pentaho to a particular dashboard, click on CDE file of the dashboard and choose Open in a new window to open the dashboard. This opens the dashboard in a new browser window. So you can copy the URL of it and then paste this link to the central dashboard.

This way users do not need to use the Pentaho Login screen but they directly access the central dashboard page where they choose concrete sub-dashboard they want to work with.




回答2:


Similar to the example above, but I wouldnt necessarily re-implement the login process (as you could well introduce security flaws etc). I would instead use CST - Community Startup Tabs - that does exactly what you're asking for.

Details here: http://www.webdetails.pt/ctools/cst/




回答3:


I don't know what's the version of Pentaho BI server you are using.

In my case with Pentaho 5.3

  • If you want to change the login page, just modify the jsp file under biserver-ce/tomcat/webapps/pentaho/jsp/PUCLogin.jsp

  • If you want to change the home page after login, just modify this jsp file biserver-ce/tomcat/webapps/pentaho/mantle/Mantle.jsp



来源:https://stackoverflow.com/questions/29361268/how-to-change-pentaho-after-login-page

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!