Skip to content

Commit

Permalink
feat: Delete Deprecated Usage of JS Tag Manager Definition in Generic…
Browse files Browse the repository at this point in the history
…DispatchedViewPortlet - Meeds-io/MIPs#175

This change will delete rendering of JSManager Tag when a single Portlet Application is requested to be displayed. This strategy isn't used anymore since the layout rendering is deferred and loaded using Ajax.
  • Loading branch information
boubaker authored and exo-swf committed Feb 6, 2025
1 parent fefd989 commit f44f7aa
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,8 @@
</div>
</div>
</div>
<script type="text/javascript">
require(['PORTLET/gamification-portlets/PopularSpaces'], app => app.init());
</script>
</div>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,8 @@
</div>
</div>
</div>
<script type="text/javascript">
require(['PORTLET/gamification-portlets/UsersLeaderboard'], app => app.init());
</script>
</div>
</div>
25 changes: 2 additions & 23 deletions portlets/src/main/webapp/WEB-INF/portlet.xml
Original file line number Diff line number Diff line change
Expand Up @@ -84,20 +84,7 @@ Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
<portlet-class>org.exoplatform.commons.api.portlet.GenericDispatchedViewPortlet</portlet-class>
<init-param>
<name>portlet-view-dispatched-file-path</name>
<value>/WEB-INF/jsp/popularSpaces/index.jsp</value>
</init-param>
<init-param>
<name>use-js-manager</name>
<value>true</value>
</init-param>
<init-param>
<name>js-manager-jsModule</name>
<value>PORTLET/gamification-portlets/PopularSpaces</value>
</init-param>
<init-param>
<description>List of profiles that can be used to enable this portlet</description>
<name>exo.profiles</name>
<value>gamification,social</value>
<value>/WEB-INF/jsp/popularSpaces.jsp</value>
</init-param>
<supports>
<mime-type>text/html</mime-type>
Expand All @@ -112,15 +99,7 @@ Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
<portlet-class>org.exoplatform.commons.api.portlet.GenericDispatchedViewPortlet</portlet-class>
<init-param>
<name>portlet-view-dispatched-file-path</name>
<value>/WEB-INF/jsp/usersLeaderboard/index.jsp</value>
</init-param>
<init-param>
<name>use-js-manager</name>
<value>true</value>
</init-param>
<init-param>
<name>js-manager-jsModule</name>
<value>PORTLET/gamification-portlets/UsersLeaderboard</value>
<value>/WEB-INF/jsp/usersLeaderboard.jsp</value>
</init-param>
<init-param>
<name>preload.resource.rest</name>
Expand Down

0 comments on commit f44f7aa

Please sign in to comment.