Skip to content

Commit

Permalink
only render cms sidebar content if page published; refs #26762
Browse files Browse the repository at this point in the history
  • Loading branch information
Keelhaul committed Feb 24, 2025
1 parent 6adc36b commit 07b67b4
Showing 1 changed file with 18 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,32 +16,30 @@

<composite:implementation>

<!-- CUSTOM SIDEBAR -->
<c:if test="#{!cmsPage.useDefaultSidebar}">
<h:panelGroup binding="#{cmsSidebarWidgetsBean.sidebarGroup}"></h:panelGroup>
</c:if>

<!-- DEFAULT SIDEBAR -->
<c:if test="#{cmsPage.useDefaultSidebar}">

<!-- GLOBAL -->
<c:if test="#{!cmsBean.relatedWorkLoaded}">
<c:if test="#{browseBean.browsingMenuEnabled}">
<widgetComponent:widget_browsing />
</c:if>
<c:if test="#{cmsPage.published or userBean.hasAdminBackendAccess}">

<!-- CUSTOM SIDEBAR -->
<c:if test="#{!cmsPage.useDefaultSidebar}">
<h:panelGroup binding="#{cmsSidebarWidgetsBean.sidebarGroup}"></h:panelGroup>
</c:if>

<!-- WORK -->
<c:if test="#{cmsBean.relatedWorkLoaded}">
<!-- DEFAULT SIDEBAR -->
<c:if test="#{cmsPage.useDefaultSidebar}">

<viewerComponent:record_sidebar/>
<!-- GLOBAL -->
<c:if test="#{!cmsBean.relatedWorkLoaded}">
<c:if test="#{browseBean.browsingMenuEnabled}">
<widgetComponent:widget_browsing />
</c:if>
</c:if>

<!-- WORK -->
<c:if test="#{cmsBean.relatedWorkLoaded}">
<viewerComponent:record_sidebar />
</c:if>

</c:if>

</c:if>



</composite:implementation>
</ui:composition>

0 comments on commit 07b67b4

Please sign in to comment.