Fórumok
selecting image form "Doc. and media" on custom portlet.!!!
Ashwani Kumar, módosítva 11 év-val korábban
selecting image form "Doc. and media" on custom portlet.!!!
Junior Member Bejegyzések: 26 Csatlakozás dátuma: 2012.10.19. Legújabb bejegyzések
Hi All,
In my Cutom Portet...I am having a Browse button for selecting a file(that could be images), my requirement is, Once i click on Browse button..it should allow me to select the images from the "Document and Library" of Liferray.
Similary , How i can store the path of selected image in my custom table.
Thanks in advance.
Regards,
Ashwani
In my Cutom Portet...I am having a Browse button for selecting a file(that could be images), my requirement is, Once i click on Browse button..it should allow me to select the images from the "Document and Library" of Liferray.
Similary , How i can store the path of selected image in my custom table.
Thanks in advance.
Regards,
Ashwani
David H Nebinger, módosítva 11 év-val korábban
RE: selecting image form "Doc. and media" on custom portlet.!!!
Liferay Legend Bejegyzések: 14916 Csatlakozás dátuma: 2006.09.02. Legújabb bejegyzések
You do not store a path. Store the ID from the entity. That ID would be used to access the entity at a later time.
Browsing would just be a matter of invoking the API method to get the entities. You can use the keys returned to access the binary data of the content, then stream that back to the portlet for display.
You can reference the current source for the IG portlet to see how it's displaying the images inline for an example.
Browsing would just be a matter of invoking the API method to get the entities. You can use the keys returned to access the binary data of the content, then stream that back to the portlet for display.
You can reference the current source for the IG portlet to see how it's displaying the images inline for an example.
Ashwani Kumar, módosítva 11 év-val korábban
RE: selecting image form "Doc. and media" on custom portlet.!!!
Junior Member Bejegyzések: 26 Csatlakozás dátuma: 2012.10.19. Legújabb bejegyzésekDavid H Nebinger:
You do not store a path. Store the ID from the entity. That ID would be used to access the entity at a later time.
Browsing would just be a matter of invoking the API method to get the entities. You can use the keys returned to access the binary data of the content, then stream that back to the portlet for display.
Hi David,
What APIs, I can invoke for selecting the image from "Doc and Media" for my browse button in custom portlet.??
Regards,
Ashwani
Daniel Aschauer, módosítva 11 év-val korábban
RE: selecting image form "Doc. and media" on custom portlet.!!!
Junior Member Bejegyzések: 39 Csatlakozás dátuma: 2012.10.22. Legújabb bejegyzések
I need to do the same. Did you finally implement a solution for this requirement?
Thanks, Daniel
Thanks, Daniel
Aravinth Kumar, módosítva 8 év-val korábban
RE: selecting image form "Doc. and media" on custom portlet.!!!
Regular Member Bejegyzések: 152 Csatlakozás dátuma: 2013.06.26. Legújabb bejegyzések
Hi,
Can someone guide me to achieve this functionality.
Thanks in advance.
Can someone guide me to achieve this functionality.
Thanks in advance.
Hitoshi Ozawa, módosítva 11 év-val korábban
RE: selecting image form "Doc. and media" on custom portlet.!!!
Liferay Legend Bejegyzések: 7942 Csatlakozás dátuma: 2010.03.24. Legújabb bejegyzésekOnce i click on Browse button..it should allow me to select the images from the "Document and Library" of Liferray.
You're mixing David up. You probably mean "Document and Media" library. IG portlet in David's reply means Image Gallery portlet but that's just "Document and Media" portlet in the current version.
David H Nebinger, módosítva 11 év-val korábban
RE: selecting image form "Doc. and media" on custom portlet.!!!
Liferay Legend Bejegyzések: 14916 Csatlakozás dátuma: 2006.09.02. Legújabb bejegyzésekHitoshi Ozawa:
IG portlet in David's reply means Image Gallery portlet but that's just "Document and Media" portlet in the current version.
I'm still on the Xmas/New Years holiday, so I'm kinda answering w/o looking at the code