dqsong2010 2014-10-06 15:25
浏览 139
已采纳

如何在另一个网站上显示存储在Liferay数据库中的数据?

I'm developing a WordPress website in which I have to show data/information stored inside a Liferay database. I am new to Liferay, so I don't know the best practices to access data stored into Liferay's DB and show them to my website.

I want to know if there are some guides or documentation that can explain to me how I can access data, in the same way that I access a MySQL DB with PHP. I also took a look at the official Liferay documentation, but it only describes accesses through the usage of PHP portlets.

Is there another way to connect to database and get back data from a query, or do I have to perform a sort of "middleware" translation from data in Liferay to my website?

My CMS contains data formatted in XML, so have I to do a translation from XML to PHP-style variables? Also, do I need to create a sort of correspondence from XML objects to PHP variables?

  • 写回答

2条回答 默认 最新

  • doujie1917 2014-10-07 07:03
    关注

    I can think of three ways you can get data from Liferay to display in your website:

    1. Directly through Liferay database, if you have access.

      But to get data directly from the Database tables of liferay you should have a fair amount of understanding as to what each table is for. Liferay DB schema would have been helpful but I think Liferay likes providing puzzles to its users ;-). Still the tables and columns are not so complex to understand if you can give some time. Or post a specific query and will answer if I know about it.

    2. Another recommended way of accessing liferay's data is through Liferay web-services, all the assets, users, organizations and sites are available as services. So you can build web-service clients and consume the data.

    3. Another way is through Sharing of Portlets. The User-guide will help you understand this. You can directly embed portlets in your site just like we can embed video player from youtube in any site with youtube's embed script.

    Hope I have understood what you require and hope this helps.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 随身WiFi网络灯亮但是没有网络,如何解决?
  • ¥15 gdf格式的脑电数据如何处理matlab
  • ¥20 重新写的代码替换了之后运行hbuliderx就这样了
  • ¥100 监控抖音用户作品更新可以微信公众号提醒
  • ¥15 UE5 如何可以不渲染HDRIBackdrop背景
  • ¥70 2048小游戏毕设项目
  • ¥20 mysql架构,按照姓名分表
  • ¥15 MATLAB实现区间[a,b]上的Gauss-Legendre积分
  • ¥15 delphi webbrowser组件网页下拉菜单自动选择问题
  • ¥15 linux驱动,linux应用,多线程