Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-23554

ADD button on Webcontent Portlet points to URLs in control_panelwe

    Details

      Description

      Put the Portlet Webcontent on a normal layout eg /web/guest/home (this can be done by putting portletId 15 inside liferay-display.xml in visible category

      <display>
      	<category name="category.cms">
      		<portlet id="15" />		
      
      • press Add Button
        >>>>>> you are redirected to the 'control panel'
      • Add Structure 'FooStructure' and Template
      • press Add and add new Webcontent 'FooStructure'
        >>>>>> you are redirected to the 'control panel'

      This is due to the usage of addArticleURL = assetRendererFactory.getURLAdd(liferayPortletRequest, liferayPortletResponse); inside add_article.jspf (r78)

      JournalArticleAssetRendererFactory.getURLAdd uses getControlPanelPlid

      		PortletURL portletURL = PortletURLFactoryUtil.create(
      			request, PortletKeys.JOURNAL, getControlPanelPlid(themeDisplay),
      			PortletRequest.RENDER_PHASE);
      

      i think this should be themeDisplay.getPLid();

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                7 years, 51 weeks ago

                Packages

                Version Package
                --Sprint 11/12
                6.2.0 CE M2