留言板

"Add to Any Website" Option Not Working for Calendar Portlet

Brett Parsons,修改在6 年前。

"Add to Any Website" Option Not Working for Calendar Portlet

New Member 帖子: 2 加入日期: 17-5-4 最近的帖子
Hi Everyone,

I have deployed Liferay 7 CE (Tomcat bundle) and wanted to display the Calendar portlet on a non-Liferay webpage (e.g., static HTML page). I performed the following steps:

- Logged into Liferay as the Admin user
- Added the Calendar portlet to my page
- Selected "Configuration" for the Calendar portlet
- Selected "Sharing" and turned on the option "Allow users to add Calendar to any website"
- I then copied the code displayed on this page and embedded it into my webpage

Unfortunately, the result is that my webpage displays a blank page. I have tried manually entering the URL into my browser (http://localhost:8080/widget/web/guest/test/-/calendar) and get the same result (a blank page). Note that this same functionality seems to work fine with other portlets, such as Wiki and Message Boards. For example, the URL "http://localhost:8080/widget/web/guest/test/-/wiki" correctly displays the wiki contents.

Am I missing something obvious as to why this will not work? Is anyone else noticing the same behavior?

Thanks,

Brett
thumbnail
Jaydip Lakhatariya,修改在6 年前。

RE: "Add to Any Website" Option Not Working for Calendar Portlet

Junior Member 帖子: 53 加入日期: 13-4-18 最近的帖子
Hi,

Make sure your calendar portlet is accessible publicly and have enough permission to access through external web pages. Also please check the browser console logs through Inspect Elements.

Regards,
Jaydip
Brett Parsons,修改在6 年前。

RE: "Add to Any Website" Option Not Working for Calendar Portlet

New Member 帖子: 2 加入日期: 17-5-4 最近的帖子
Hi Jaydip,

Thanks for the reply. I did confirm that my calendar portlet is set up to be accessible publicly and that enough permissions have been assigned to access through external web pages. I also checked the browser console logs, but there are no errors or warnings appearing.

I have attached the HTML response I get when accessing the URL:

http://localhost:8080/widget/web/guest/test/-/calendar

Please note that I get a blank page when accessing this URL, but the page source does contain some HTML/scripts.

I hope someone can offer some insight as to why this is not working.

Regards,

Brett


Jaydip Lakhatariya:
Hi,

Make sure your calendar portlet is accessible publicly and have enough permission to access through external web pages. Also please check the browser console logs through Inspect Elements.

Regards,
Jaydip