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

Template Cannot Reference Fields from Structure

    Details

    • Fix Priority:
      3

      Description

      Steps to Reproduce:

      1. Create a structure with the following fields:
        1. Field 1
          • Item: Text
          • Name: Head
        2. Field 2
          • Item: Textarea
          • Name: Content
      2. Create a template for the structure
      3. Enter the following in the script editor:
        <div>
        <h1>$Head.getData()</h1>
        <p>$Content.getData()</p>
        </div>
        
      4. Add a web content based on the structure/template
      5. Add a web content display portlet
      6. Display the web content
        • Assert the following displays:
          $Head.getData()
          
          $Content.getData()
          

      Within the web content display portlet, what should be displayed is the values entered when creating the web content. The Head text should also be formatted to h2.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  7 years, 27 weeks, 5 days ago

                  Packages

                  Version Package
                  6.2.0 CE M4