Fórumok

asset publisher image + content

esther abeijon, módosítva 10 év-val korábban

asset publisher image + content

New Member Bejegyzések: 21 Csatlakozás dátuma: 2013.05.13. Legújabb bejegyzések
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, módosítva 10 év-val korábban

RE: asset publisher image + content

Expert Bejegyzések: 493 Csatlakozás dátuma: 2012.05.26. Legújabb bejegyzések
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, módosítva 10 év-val korábban

RE: asset publisher image + content

New Member Bejegyzések: 21 Csatlakozás dátuma: 2013.05.13. Legújabb bejegyzések
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, módosítva 10 év-val korábban

RE: asset publisher image + content

Liferay Legend Bejegyzések: 1228 Csatlakozás dátuma: 2008.04.14. Legújabb bejegyzések
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, módosítva 10 év-val korábban

RE: asset publisher image + content

New Member Bejegyzések: 21 Csatlakozás dátuma: 2013.05.13. Legújabb bejegyzések
Thanks a lot! I have done that, but the image is not displayed.
Any idea Why is this happening?
thumbnail
Victor Zorin, módosítva 10 év-val korábban

RE: asset publisher image + content

Liferay Legend Bejegyzések: 1228 Csatlakozás dátuma: 2008.04.14. Legújabb bejegyzések
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, módosítva 10 év-val korábban

RE: asset publisher image + content

New Member Bejegyzések: 21 Csatlakozás dátuma: 2013.05.13. Legújabb bejegyzések
Ok, thank you very much!
shima shima, módosítva 9 év-val korábban

RE: asset publisher image + content

Junior Member Bejegyzések: 46 Csatlakozás dátuma: 2014.04.14. Legújabb bejegyzések
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?