Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: Resource importer Images
Massimo Bevilacqua, modified 8 Years ago.
Regular Member
Posts: 210
Join Date: 12/27/16
Recent Posts
Hi,
I am trying to use the resource importer and I have this problem, if I create an article with an image the images is not displayed.
In the documentation I have found this example:
but it doesn't work. Using chrome dev tool I have discovered that images are added with version:
If I delete the version, the images shows up
How can I prevent liferay to insert image version when it creates the image URL?
I am trying to use the resource importer and I have this problem, if I create an article with an image the images is not displayed.
In the documentation I have found this example:
<p><img alt="" src="[$FILE=avatar.png$]"></p>
but it doesn't work. Using chrome dev tool I have discovered that images are added with version:
<img alt="" src="/documents/50703/0/avatar.png/5e9fbbd2-bfde-9ef2-6817-257b7e36b43f?t=1502702797064&version=7.0">
If I delete the version, the images shows up
<img alt="" src="/documents/50703/0/avatar.png/5e9fbbd2-bfde-9ef2-6817-257b7e36b43f?t=1502702797064&">
How can I prevent liferay to insert image version when it creates the image URL?
It might rather be a double-encoding of the "& "(in the form of "&") - try replacing it in the URL (not sure if you're encoding the URL yourself or how you end up with this escaped character)
Massimo Bevilacqua, modified 8 Years ago.
Regular Member
Posts: 210
Join Date: 12/27/16
Recent Posts
Hi Olaf,
thank you for your reply.
I just add this to my article
And then it will be parser by liferay and it create the URL, I can't modifiy it
thank you for your reply.
I just add this to my article
<p><img alt="" src="[$FILE=avatar.png$]"></p>
And then it will be parser by liferay and it create the URL, I can't modifiy it
Massimo Bevilacqua, modified 8 Years ago.
RE: Resource importer Images
(Answer)
Regular Member
Posts: 210
Join Date: 12/27/16
Recent Posts
I solved it by setting
in liferay-plugin-package.properties
resources-importer-developer-mode-enabled=false
in liferay-plugin-package.properties
Hi All,
Regarding liferay theme resource importer, For normal basic web content type, we are importing image by placing the image in document_library folder and call it in article xml file as
How can we call the images in our custom created structures. For ex we have a structure with a field as image type. Thanks in Advance.
Regarding liferay theme resource importer, For normal basic web content type, we are importing image by placing the image in document_library folder and call it in article xml file as
<p><img alt="" src="[$FILE=avatar.png$]"></p>
and its works as expected. How can we call the images in our custom created structures. For ex we have a structure with a field as image type. Thanks in Advance.
<dynamic-element name="Image" type="image" index-type="text" instance-id="jimj">
<dynamic-content language-id="fr_FR"> [b]---How to Call here --[/b] </dynamic-content>
</dynamic-element>
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™