-
Type:
Bug
-
Status: Closed
-
Resolution: Won't Fix
-
Affects Version/s: Master
-
Fix Version/s: None
-
Component/s: Fragment Administration
-
Labels:None
-
Fix Priority:4
Steps to Reproduce:
- Add a basic web content and insert an image into the content section
- Create a fragment with an itemSelector configuration. Ex:
{ "fieldSets": [ { "fields": [ { "name": "itemSelector1", "type": "itemSelector", "label": "Web Content", "typeOptions": { "itemType" : "com.liferay.journal.model.JournalArticle" } } ] } ] }
- Add html to display the content. Ex:
<div class="fragment_wc"> [#if configuration.itemSelector1.content??] ${itemSelector1Object.getContent()} [/#if] </div>
- Add a new page and add your created fragment to the page
- Click on the fragment configuration
- Select your created web content
Expected Results:
The image is displayed(When creating the same fragment but with an itemType for a blogs entry, and there exists a blogs entry with an image in the content, the image is displayed)
Actual Result:
The html text of the image is shown like "<p><img src="/documents/20118/0/test-image/77b6eca1-30e4-3727-a6c8-20ed7b391efc?t=1576871464860" /></p> <p> </p>"
Reproduced on:
Tomcat 9.0.17 + MySQL 5.7 Portal Master GIT ID: 013790a50cbb32218faa89fd071366ed0b8ae0fc
- Discovered while testing
-
LPS-101249 As a Fragment developer I can specify which type of content that will be selectable by page authors when using the "itemSelector" configuration field
-
- Closed
-