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

Getting Field name from Document and Media using Structure

    Details

      Description

      Hi All,

      Currently i am using Liferay 6.1 and i am facing issue in getting the file path from Document and media through WebContent/structure.

      I have Created a Structure named "Document and media" as field name. I have created the VM template as below in getting the file path from Document and media.

      VM:

      <html>
      <head>
      
      <body>
      <img src="$file.data">
      
      </body>
      
      </head>
      </html>
      

      But when we select the path from Document and Media, it shows the link as below.

      /portal/portal/documents/1044044/1044057/marketing_image_connect2.jpg/a2ee40c3-55be-4661-b58e-6490aa73691f?t=1400590602524
      

      But it should be as below

      /ec_developer_workarea/myfolder/marketing_image_connect2.jpg
      

      Could you please help on this to retrieve the value as such. Thanks in advance.

        Attachments

        1. 1.png
          1.png
          5 kB
        2. 2.png
          2.png
          41 kB

          Activity

            People

            • Assignee:
              jared.zimmerman Jared Zimmerman (Inactive)
              Reporter:
              dheenab4u Deenadhayalan (Inactive)
              Participants of an Issue:
              Recent user:
              Esther Sanz
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                5 years, 28 weeks, 2 days ago

                Packages

                Version Package
                6.1.1 CE GA2