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

Avoid rendering unused journal article templates in content pages or display pages

Details

    Description

      By default if you have a web content article that is being used on a display page, any view requests to that display page, will render ALL of the templates of the structure of the article so they can be added as display page fields.

      https://github.com/liferay/liferay-portal/blob/de1f8d46156f7d073bc65187b7fa655edc4905a6/modules/apps/journal/journal-web/src/main/java/com/liferay/journal/web/internal/info/item/provider/JournalArticleInfoItemFieldValuesProvider.java#L138-L151

      Since this is not very visible, this could have very surprising effects. For example in our case we had some older templates that are not used any more which were failing, and we kept seeing those freemarker errors in our logs, even though we are not using the templates anywhere. In addition rendering all of the templates will have a performance impact.

      Would you consider adding an opt in or opt out option for this processing per template so it is more visible and it could be turned off if it is not wanted?

      Or only render the template fields that are actually being used for rendering a display page?

      Attachments

        Issue Links

          Activity

            People

              lourdes.fernandez Lourdes Fernandez Besada
              lourdes.fernandez Lourdes Fernandez Besada
              Kiyoshi Lee Kiyoshi Lee
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Packages

                  Version Package