掲示板
Resource importer Images
6年前 に Massimo Bevilacqua によって更新されました。
Resource importer Images
Regular Member 投稿: 210 参加年月日: 16/12/27 最新の投稿
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?
6年前 に Olaf Kock によって更新されました。
RE: Resource importer Images
Liferay Legend 投稿: 6403 参加年月日: 08/09/23 最新の投稿
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)
6年前 に Massimo Bevilacqua によって更新されました。
RE: Resource importer Images
Regular Member 投稿: 210 参加年月日: 16/12/27 最新の投稿
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
6年前 に Massimo Bevilacqua によって更新されました。
RE: Resource importer Images (回答)
Regular Member 投稿: 210 参加年月日: 16/12/27 最新の投稿
I solved it by setting
in liferay-plugin-package.properties
resources-importer-developer-mode-enabled=false
in liferay-plugin-package.properties
3年前 に Aravinth Kumar によって更新されました。
RE: Resource importer Images
Regular Member 投稿: 152 参加年月日: 13/06/26 最新の投稿
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>