Multiple sidekicks displayed on the page


one of components has line

<%@include file="/libs/wcm/core/components/init/init.jsp"%>

added in .jsp.  when component added page sidekick duplicated.  issue same component deployed 2 different environments - on 1 sidekick displayed, on other duplicated sidekicks.  can solution displaye 1 sidekick. init.jsp used display sidekick should removed component's .jsp?

yes init.jsp added add sidekick in page. so, yoou need have 1 include jsp in component.

below code inside init.jsp launches sidekick in page.

 

<script type="text/javascript">

        cq.wcm.launchsidekick("<%= currentpage.getpath() %>", {

            propsdialog: "<%= dlgpath == null ? "" : dlgpath %>",

            locked: <%= currentpage.islocked() %>

        });

    </script>



More discussions in Archived Spaces


adobe

Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support