Rendering assets via javascript

Jamie Sammons, modified 2 Years ago. Regular Member Posts: 110 Join Date: 3/10/11 Recent Posts

Hi

Im trying to do a portlet which renders other portlets via assetrenderer in Liferay 7.4.43. I´ve done all the work for asset publisher to find and display all the assets, but now i need to render and append the assets content via ajax. I´ve found stuff like <liferay-ui:display-asset> and such, but that wont work as the content is added on the fly. I cant find anywhere how to use the jsp of an asset to render its content. I can get the summary and title, but the complete render of the asset via the getJspPath does not seem to be available.

Could anybody help me with this?