Application Display Template not displaying events for guest users in LiferApplication Display Template not displaying events for guest users in Liferhttps://liferay.dev/en/c/message_boards/find_thread?p_l_id=119785333&threadId=829715062024-03-28T14:42:39Z2024-03-28T14:42:39ZRE: Application Display Template not displaying events for guest users in LAndrew Jordanhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=881924302017-04-10T19:06:37Z2017-04-10T19:06:37ZRevisited this after some time. <br /><br />I found that if I removed the tags I was using to filter events the AP allowed the events to viewed by the Guest user. Not sure why this is the case.Andrew Jordan2017-04-10T19:06:37ZRE: Application Display Template not displaying events for guest users in LAndrew Jordanhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=831818152016-12-05T17:27:57Z2016-12-05T17:27:57ZHello Eduardo, <br /><br />Thank you for your assistance. <br /><br />No, the asset publisher does not display any events as guest, even without the ADT. I'm thinking it is a permission issue, as I have tested in my local instance of Liferay, preprod instance, and a different prod instance of Liferay. I think it is specific to this Liferay instance. My ADT code displays the events to guest users in those other instances, so I know it's not the code I wrote or the Asset Publisher. <br /><br />In comparing permissions for the Guest user in this instance of Liferay and the others that display the events, I see a permission that I am unable to set. It appears that the Guest Summary permissions listing lists "Calendar: Add to Page", but this option is not listed in the instance that is not displaying the events. Do you know why this permission is NOT listed or where I can adjust the settings to readd it? All of my other instance that the code works in have this permission listed, by default in the Summary. I don't even see the option "Add to Page" when I view the calendar's permissions under Site Administration > Applications > Calendar. <br /><br />I think it is also worth noting that when I do try to change the Guest Permissions in Administration > Applications > Calendar, I'm getting a "Role currently unavailable" error when I click save. <br /><br />Thanks again!Andrew Jordan2016-12-05T17:27:57ZRE: Application Display Template not displaying events for guest users in LEduardo P. Garcíahttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=831781412021-02-24T16:58:44Z2016-12-05T15:56:29ZHi Andrew,<br /><br />Are your calendar events displayed in the Asset Publisher as a guest <strong>without</strong> using your ADT? I want to determine whether this is an issue with the Asset Publisher or with ADT.<br /><br />ThanksEduardo P. García2016-12-05T15:56:29ZApplication Display Template not displaying events for guest users in LiferAndrew Jordanhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=829715052016-11-30T03:01:41Z2016-11-30T03:01:41Z<html><head></head><body>I've created an Application Display Template (ADT) in Liferay 6.2. I'm using the Asset Publisher functionality to display calendar events on a webpage. When I'm logged in as an admin I can see the events. However, when I'm logged out as a guest, It doesn't display any of them. <br><br>I'm thinking this is not a code issue, but more of a 'permissioning' issue. <strong>What am I missing?</strong><br><br> 1. I've checked the ADT's permissions and have the guest view selected.<br> 2. The calendar portlet is set to guest view.<br> 3. The individual calendars within the calendar portlet are set to have<br> guest w/ view and view event details<br> 4. The events have the invitation set to 'Guest - [calendar name]' and<br> it has been accepted<br><br>Please use this code and see if you can view events when you are logged out/as a guest. <br><br> <pre><code>#set ($calService = $utilLocator.findUtil("calendar-portlet", "com.liferay.calendar.service.CalendarBookingLocalService"))
#if (!$entries.isEmpty())
#foreach ($entry in $entries)
#set ($calBookingEntry = $calService.getCalendarBooking($entry.getAssetRenderer().getClassPK()))
<ul>
<li>Title: $calBookingEntry.getTitle($locale)</li></ul>
<li>Start: $dateTool.format($calBookingEntry.getStartTime())
</li></code><li><code>End: $da