留言板

asset publisher image + content

esther abeijon,修改在10 年前。

asset publisher image + content

New Member 帖子: 21 加入日期: 13-5-13 最近的帖子
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.
thumbnail
Manish Yadav,修改在10 年前。

RE: asset publisher image + content

Expert 帖子: 493 加入日期: 12-5-26 最近的帖子
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
esther abeijon,修改在10 年前。

RE: asset publisher image + content

New Member 帖子: 21 加入日期: 13-5-13 最近的帖子
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!
thumbnail
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.
esther abeijon,修改在10 年前。

RE: asset publisher image + content

New Member 帖子: 21 加入日期: 13-5-13 最近的帖子
Thanks a lot! I have done that, but the image is not displayed.
Any idea Why is this happening?
thumbnail
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).
esther abeijon,修改在10 年前。

RE: asset publisher image + content

New Member 帖子: 21 加入日期: 13-5-13 最近的帖子
Ok, thank you very much!
shima shima,修改在9 年前。

RE: asset publisher image + content

Junior Member 帖子: 46 加入日期: 14-4-14 最近的帖子
hi emoticon would you plz explain, how show a text filed of content in asset publisher by using ftl and else show only abstract of content not full of that?