Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
esther abeijon
asset publisher image + content
June 13, 2013 10:07 PM
Answer

esther abeijon

Rank: New Member

Posts: 21

Join Date: May 13, 2013

Recent Posts

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.
Manish Yadav
RE: asset publisher image + content
June 14, 2013 12:03 AM
Answer

Manish Yadav

Rank: Expert

Posts: 384

Join Date: May 26, 2012

Recent Posts

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
RE: asset publisher image + content
June 14, 2013 1:37 AM
Answer

esther abeijon

Rank: New Member

Posts: 21

Join Date: May 13, 2013

Recent Posts

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!
Victor Zorin
RE: asset publisher image + content
June 15, 2013 3:29 AM
Answer

Victor Zorin

Rank: Liferay Legend

Posts: 1176

Join Date: April 14, 2008

Recent Posts

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
RE: asset publisher image + content
June 16, 2013 1:41 PM
Answer

esther abeijon

Rank: New Member

Posts: 21

Join Date: May 13, 2013

Recent Posts

Thanks a lot! I have done that, but the image is not displayed.
Any idea Why is this happening?
Victor Zorin
RE: asset publisher image + content
June 16, 2013 10:01 PM
Answer

Victor Zorin

Rank: Liferay Legend

Posts: 1176

Join Date: April 14, 2008

Recent Posts

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
RE: asset publisher image + content
June 17, 2013 12:13 AM
Answer

esther abeijon

Rank: New Member

Posts: 21

Join Date: May 13, 2013

Recent Posts

Ok, thank you very much!
shima shima
RE: asset publisher image + content
August 17, 2014 5:37 AM
Answer

shima shima

Rank: Junior Member

Posts: 41

Join Date: April 13, 2014

Recent Posts

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?