留言板
asset publisher image + content
Hi, I'm new to liferay and i need to know how to show in an asset publisher an image and content from a web content display. Something like this: http://www.bbc.co.uk/news/.
Any ideas?
Thanks a lot.
Any ideas?
Thanks a lot.
esther abeijon:
Hi, I'm new to liferay and i need to know how to show in an asset publisher an image and content from a web content display. Something like this: http://www.bbc.co.uk/news/.
Any ideas?
Thanks a lot.
You have to use structure template with repeatable fields please check below post to know working of structure template in web content
https://www.liferay.com/documentation/liferay-portal/6.1/user-guide/-/ai/lp-6-1-ugen03-advanced-content-creation-0
http://liferayui.blogspot.in/2011/10/structure-template-with-repeatable-in.html
Thanks & Regards
Manish Banwari lal Yadav
Thank you very much for your answer, but that is not the problem.
I need to show an image in an asset publisher abstract type. I've already done the hook for the asset , and the structure and template for the content display but I don't know how to display in the asset the content display image.
Thanks again!
I need to show an image in an asset publisher abstract type. I've already done the hook for the asset , and the structure and template for the content display but I don't know how to display in the asset the content display image.
Thanks again!
Victor Zorin,修改在10 年前。
RE: asset publisher image + content
Liferay Legend 帖子: 1228 加入日期: 08-4-14 最近的帖子
The simplest approach is when you edit Web Content, to go to Abstract and:
1. type the abstract (which is optional)
2. upload or define the URL of the 'Small Image' for web content.
Once article is done, deploy the Asset Publisher portlet to your page and in Configuration:
1, make asset selection, Dynamic or Manual
2. if Manual, add this article to Asset Publisher
3. set Display Style to 'abstracts'
4. click 'Save'
The Asset Publisher portlet shall display the abstract and the specified image, abstract on the left side and image on the right.
Using css you can modify image size.
No custom hook is required if you work with Web Content.
1. type the abstract (which is optional)
2. upload or define the URL of the 'Small Image' for web content.
Once article is done, deploy the Asset Publisher portlet to your page and in Configuration:
1, make asset selection, Dynamic or Manual
2. if Manual, add this article to Asset Publisher
3. set Display Style to 'abstracts'
4. click 'Save'
The Asset Publisher portlet shall display the abstract and the specified image, abstract on the left side and image on the right.
Using css you can modify image size.
No custom hook is required if you work with Web Content.
Thanks a lot! I have done that, but the image is not displayed.
Any idea Why is this happening?
Any idea Why is this happening?
Victor Zorin,修改在10 年前。
RE: asset publisher image + content
Liferay Legend 帖子: 1228 加入日期: 08-4-14 最近的帖子
go to Control Panel > Web Content, edit article
go to abstracts, tick 'use small image', upload image or provide URL.
Asset Publisher will display this image (if it is made available using steps described above).
go to abstracts, tick 'use small image', upload image or provide URL.
Asset Publisher will display this image (if it is made available using steps described above).