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

Web content template editor not generating correct code for field type Web Content (ddm-journal-article)

    Details

      Description

      The web content template editor is not providing working code for the field type ddm-journal-article. It's generating an invalid URL, since  getFriendlyUrl() is not working.

      It's generating this:

      <#assign<#assign webContentData =      jsonFactoryUtil.createJSONObject(DirectionsArticle.getData())/>
      <a href="${DirectionsArticle.getFriendlyUrl()}"> ${webContentData.title}</a>

       

      Ideally, the getData should provide not only a valid URL but also the articleId, so that we could use the <@liferay_journal["journal-article"] taglib macro. Currently it's only providing className, classPK and title, wich makes it harder to display the content.

       

       

       

        Attachments

          Activity

            People

            Assignee:
            support-lep@liferay.com SE Support
            Reporter:
            ferdez Fernando Fernandez
            Participants of an Issue:
            Recent user:
            Nilo Rodrigues (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              19 weeks, 5 days ago

                Packages

                Version Package