Foren
asset publisher image + content
esther abeijon, geändert vor 10 Jahren.
asset publisher image + content
New Member Beiträge: 21 Beitrittsdatum: 13.05.13 Neueste Beiträge
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.
Manish Yadav, geändert vor 10 Jahren.
RE: asset publisher image + content
Expert Beiträge: 493 Beitrittsdatum: 26.05.12 Neueste Beiträgeesther 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, geändert vor 10 Jahren.
RE: asset publisher image + content
New Member Beiträge: 21 Beitrittsdatum: 13.05.13 Neueste Beiträge
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, geändert vor 10 Jahren.
RE: asset publisher image + content
Liferay Legend Beiträge: 1228 Beitrittsdatum: 14.04.08 Neueste Beiträge
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.
esther abeijon, geändert vor 10 Jahren.
RE: asset publisher image + content
New Member Beiträge: 21 Beitrittsdatum: 13.05.13 Neueste Beiträge
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, geändert vor 10 Jahren.
RE: asset publisher image + content
Liferay Legend Beiträge: 1228 Beitrittsdatum: 14.04.08 Neueste Beiträge
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).
esther abeijon, geändert vor 10 Jahren.
RE: asset publisher image + content
New Member Beiträge: 21 Beitrittsdatum: 13.05.13 Neueste Beiträge
Ok, thank you very much!
shima shima, geändert vor 9 Jahren.
RE: asset publisher image + content
Junior Member Beiträge: 46 Beitrittsdatum: 14.04.14 Neueste Beiträge
hi 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?